Click here to Skip to main content
15,914,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: multiple entries in Add/Remove Programs Pin
Heath Stewart14-Apr-04 9:03
protectorHeath Stewart14-Apr-04 9:03 
GeneralP/Invoke Pin
Dominik Reichl14-Apr-04 6:58
Dominik Reichl14-Apr-04 6:58 
GeneralRe: P/Invoke Pin
Heath Stewart14-Apr-04 7:41
protectorHeath Stewart14-Apr-04 7:41 
Generalconvert unicode to ascii Pin
eranas14-Apr-04 6:57
eranas14-Apr-04 6:57 
GeneralRe: convert unicode to ascii Pin
Heath Stewart14-Apr-04 7:24
protectorHeath Stewart14-Apr-04 7:24 
GeneralScrolling and background image Pin
Flack14-Apr-04 6:53
Flack14-Apr-04 6:53 
GeneralRe: Scrolling and background image Pin
Heath Stewart14-Apr-04 7:26
protectorHeath Stewart14-Apr-04 7:26 
GeneralMultiple Forms\Views Pin
SanShou14-Apr-04 6:17
SanShou14-Apr-04 6:17 
Hey All,

I am looking for some advice. I am pretty new to C# with a little experience making form based windows applications that are pretty quick and dirty just to get them done (such as my psudeo translator that allows me to replace characters in a resource file with Japanese characters to test localization of products.) However I am trying to do something new which is to create an application that has multiple forms, however I am not a big fan of having several different windows open on the screen free floating when they could be wrapped in a single window. I would like a cleaner solution than closing one window with form1 and opening a new window with form2 on it.

After looking at my options I came up with several ways of doing this:

1) Instead of creating several forms, just use several panels that hide the controls based on a view switch. This seems cumbersome to do with the form designer, but seems possible if I hand write everything. I think this would work the way I want it to. Also I am a little afraid that this might mean all the code is in the form1 class which would be hard to maintain.

2) Not sure if I could just create a custom control that mimics the functionality that I looking for and then hide and show these based on views. This would allow me to create different elements of each control and re-use some other external controls such as listviews for displaying drag and drop elements. Not sure what I just said or if I can accurately express what I was thinking.

3) Rewrite the MFC Formview architecture in C#. Sounds like a lot of work but it may be worth it in the long run. Then I can feel like I accomplished something. Just not sure that it would be any better than a simplier idea though....

Any advice from someone that knows a bit more... Am I missing something (other than my own sanity)?

Thanks,
Brian

If you start a fire for a man, he will be warm for a day. If you start that same man on fire, he will be warm for the rest of his life.
GeneralRe: Multiple Forms\Views Pin
CWIZO14-Apr-04 6:42
CWIZO14-Apr-04 6:42 
GeneralRe: Multiple Forms\Views Pin
14-Apr-04 8:17
suss14-Apr-04 8:17 
GeneralDistributing Application Pin
Jason Pyke14-Apr-04 5:57
Jason Pyke14-Apr-04 5:57 
GeneralRe: Distributing Application Pin
Heath Stewart14-Apr-04 7:31
protectorHeath Stewart14-Apr-04 7:31 
GeneralRe: Distributing Application Pin
Anonymous14-Apr-04 8:40
Anonymous14-Apr-04 8:40 
Generalprint a .tiff file Pin
cmarmr14-Apr-04 5:06
cmarmr14-Apr-04 5:06 
GeneralRe: print a .tiff file Pin
Mazdak14-Apr-04 6:05
Mazdak14-Apr-04 6:05 
GeneralEncrypting text data to a file Pin
Jon G14-Apr-04 4:20
Jon G14-Apr-04 4:20 
GeneralRe: Encrypting text data to a file Pin
Heath Stewart14-Apr-04 4:30
protectorHeath Stewart14-Apr-04 4:30 
GeneralGUI design the way forward for MS Pin
Andy H14-Apr-04 4:07
Andy H14-Apr-04 4:07 
GeneralRe: GUI design the way forward for MS Pin
Heath Stewart14-Apr-04 4:16
protectorHeath Stewart14-Apr-04 4:16 
GeneralRe: GUI design the way forward for MS Pin
hxxbin14-Apr-04 4:21
hxxbin14-Apr-04 4:21 
GeneralRe: GUI design the way forward for MS Pin
Judah Gabriel Himango14-Apr-04 5:48
sponsorJudah Gabriel Himango14-Apr-04 5:48 
GeneralRe: GUI design the way forward for MS Pin
Michael P Butler14-Apr-04 22:41
Michael P Butler14-Apr-04 22:41 
GeneralDatabindings Pin
bertcox14-Apr-04 3:30
bertcox14-Apr-04 3:30 
GeneralRe: Databindings Pin
Heath Stewart14-Apr-04 3:36
protectorHeath Stewart14-Apr-04 3:36 
GeneralCasting problem Pin
bouli14-Apr-04 2:32
bouli14-Apr-04 2:32 

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.