Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C#
Hi guys,
was wondering if anyone can help, i've got an issue with using multiple forms inside my main form.
tried going through with the MDI application solution , didn't quiet helped, as the forms flicker(redrawn) each time they are enabled and it's a   bit annoying.
building a user control out of each form is quiet a tedious work.
so if anyone had this kind of problem and could help, will be very gratefull...
Posted 18-Jul-11 2:47am
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Maybe this article can help you. Also look at my comment to this article: Workaround for flicker/flashing when programmatically activating MDI child forms[^]
szorik at 18-Jul-11 10:28am
thanks :-)
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Do yourself a big favor, never use MDI! Don't torture yourself and repel your customers. What you wanted to be child control could be panels of instanced of TabPanels (highly recommended: create tab UI based on TabControl).
In my past answers:
MDIContainer giving error[^],
Question on using MDI windows in WPF[^].
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

MDI or control - that's your choice. Non-MDI Forms cannot be contained within other forms, so pick one! Sorry, but those is the breaks.
szorik at 18-Jul-11 8:55am
so if you do pick one of those, how do you disable the flicker of the form (without destroying the form object)
John Simmons / outlaw programmer at 18-Jul-11 11:47am
google "winforms double buffering"
Dave Kreskowiak at 18-Jul-11 14:43pm
Yes, they can. Form inherits from Control and will work in any container that can handle Control. All you have to do is set the TopLevel property of the form instance to False, then add it to the Controls collection.
OriginalGriff at 18-Jul-11 15:09pm
Didn't know that - thanks. I'll try to remember to 5 you next time I see a post that'll take it...
szorik at 19-Jul-11 6:08am
yeah, saw that... Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
0 Sergey Alexandrovich Kryukov 472
1 sanket saxena 355
2 CPallini 205
3 thatraja 200
4 OriginalGriff 195
0 Sergey Alexandrovich Kryukov 8,784
1 OriginalGriff 5,025
2 Peter Leow 3,839
3 Maciej Los 3,535
4 Er. Puneet Goel 3,107

Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 18 Jul 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid