• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

C# static components

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.
yet another issue:

i have a class in its own file (connect.cs)

when it connects to a db, it should update a status label on the main form

again, there is an access issue. any ideas?
 
you solution is ugly and you know it. All you had to do is to create some interface or event that will allow different GUI objects to communicate with each other.
 
yah, it is ugly, and i do know it. i've been programming for all of, i dunno, 8 months? and only a few in .net. i couldnt care less if the code sucks and is sloppy, as long as it works. this is more a learning stage for me. i'm never going to be a programmer for a living so blag 😛
 
Yes, that's fine, but the problem is that as your programs grow more complicated, even within the limits set in a learning context, it will become harder and harder to add additional clunky solutions and make it all work right. You should learn the correct architectural approaches; repeating metaphors that you can use as building blocks, such as delegates, properties, and static members.
 
Back
Top