Click here to Skip to main content
15,915,093 members
Home / Discussions / C#
   

C#

 
QuestionSetting the "Release" configuration for a solution - 3rd party dlls Pin
Member 391904915-May-08 16:14
Member 391904915-May-08 16:14 
AnswerRe: Setting the "Release" configuration for a solution - 3rd party dlls Pin
Christian Graus15-May-08 16:40
protectorChristian Graus15-May-08 16:40 
QuestionNeed to install a merge module Pin
Member 391904915-May-08 16:07
Member 391904915-May-08 16:07 
AnswerRe: Need to install a merge module Pin
Member 391904915-May-08 22:03
Member 391904915-May-08 22:03 
QuestionWhere to start? Pin
FyreWyrm15-May-08 15:49
FyreWyrm15-May-08 15:49 
AnswerRe: Where to start? Pin
Christian Graus15-May-08 15:58
protectorChristian Graus15-May-08 15:58 
GeneralRe: Where to start? Pin
FyreWyrm15-May-08 16:12
FyreWyrm15-May-08 16:12 
GeneralRe: Where to start? Pin
Christian Graus15-May-08 16:42
protectorChristian Graus15-May-08 16:42 
FyreWyrm wrote:
Does that sound reasonable?


Yeah, the way I'd do that is, have an enum of forms, store the enum for the form you want in the tag, then write a method that you call which hides all forms, then shows the one specified by the enum value. So, you have one menu click event, which reads the tag, then turns it into an enum and calls one method that is always responsible for setting the visible form.

You can just iterate over the controls collection to hide your controls. You could even have the controls that are the forms have the same tag values so one function checks each controls tag and works out which one to show, no switch or anything needed.

Christian Graus

Please read this if you don't understand the answer I've given you

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

GeneralRe: Where to start? Pin
FyreWyrm15-May-08 17:00
FyreWyrm15-May-08 17:00 
GeneralRe: Where to start? Pin
Christian Graus15-May-08 17:20
protectorChristian Graus15-May-08 17:20 
AnswerRe: Where to start? Pin
darkelv15-May-08 18:32
darkelv15-May-08 18:32 
GeneralRe: Where to start? Pin
Christian Graus15-May-08 19:20
protectorChristian Graus15-May-08 19:20 
GeneralRe: Where to start? Pin
darkelv15-May-08 19:40
darkelv15-May-08 19:40 
Question[Message Deleted] Pin
DharperII15-May-08 15:31
DharperII15-May-08 15:31 
AnswerRe: How to use a table variable in an inline sql statement: C# Pin
Christian Graus15-May-08 15:59
protectorChristian Graus15-May-08 15:59 
QuestionAbout String and Encoding [modified] Pin
Christophe Kamieniarz15-May-08 14:20
Christophe Kamieniarz15-May-08 14:20 
AnswerRe: About String and Encoding Pin
Tony Richards18-May-08 2:24
Tony Richards18-May-08 2:24 
QuestionC# WebBrowser Content [modified] Pin
Member 428380715-May-08 13:02
Member 428380715-May-08 13:02 
QuestionDisk Volume info (GetDiskFreeSpaceEx) Pin
mnnca15-May-08 11:24
mnnca15-May-08 11:24 
AnswerRe: Disk Volume info (GetDiskFreeSpaceEx) [modified] Pin
Giorgi Dalakishvili15-May-08 11:25
mentorGiorgi Dalakishvili15-May-08 11:25 
GeneralRe: Disk Volume info (GetDiskFreeSpaceEx) Pin
mnnca16-May-08 7:23
mnnca16-May-08 7:23 
GeneralRe: Disk Volume info (GetDiskFreeSpaceEx) Pin
Giorgi Dalakishvili16-May-08 8:19
mentorGiorgi Dalakishvili16-May-08 8:19 
GeneralRe: Disk Volume info (GetDiskFreeSpaceEx) Pin
mnnca16-May-08 11:04
mnnca16-May-08 11:04 
GeneralRe: Disk Volume info (GetDiskFreeSpaceEx) Pin
Giorgi Dalakishvili16-May-08 11:11
mentorGiorgi Dalakishvili16-May-08 11:11 
GeneralRe: Disk Volume info (GetDiskFreeSpaceEx) Pin
mnnca19-May-08 5:18
mnnca19-May-08 5:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.