Click here to Skip to main content
15,899,025 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# WinForms: Is putting a Form inside a Form a "Bad Thing" ? Pin
Eddy Vluggen23-Oct-13 5:12
professionalEddy Vluggen23-Oct-13 5:12 
GeneralRe: C# WinForms: Is putting a Form inside a Form a "Bad Thing" ? Pin
Ravi Bhavnani23-Oct-13 12:06
professionalRavi Bhavnani23-Oct-13 12:06 
GeneralRe: C# WinForms: Is putting a Form inside a Form a "Bad Thing" ? Pin
Eddy Vluggen23-Oct-13 20:41
professionalEddy Vluggen23-Oct-13 20:41 
GeneralRe: C# WinForms: Is putting a Form inside a Form a "Bad Thing" ? Pin
BillWoodruff23-Oct-13 18:39
professionalBillWoodruff23-Oct-13 18:39 
AnswerRe: C# WinForms: Is putting a Form inside a Form a "Bad Thing" ? Pin
Eddy Vluggen23-Oct-13 22:34
professionalEddy Vluggen23-Oct-13 22:34 
GeneralRe: C# WinForms: Is putting a Form inside a Form a "Bad Thing" ? Pin
BillWoodruff24-Oct-13 17:49
professionalBillWoodruff24-Oct-13 17:49 
AnswerRe: C# WinForms: Is putting a Form inside a Form a "Bad Thing" ? Pin
Ravi Bhavnani23-Oct-13 12:12
professionalRavi Bhavnani23-Oct-13 12:12 
GeneralRe: C# WinForms: Is putting a Form inside a Form a "Bad Thing" ? Pin
BillWoodruff23-Oct-13 18:52
professionalBillWoodruff23-Oct-13 18:52 
Hi Ravi,

As is probably clear from my post, I don't like the idea of putting a Form in a Form, in general.

But, it's interesting to note that you can do it in WinForms only if:

You set the Form to-be-contained's 'TopLevel property to 'false before you add it to the ControlCollection of its to-be-container Form: if you didn't do this, you will not receive a compile-time error, but will receive a run-time error.

MS does provide the 'ShowInTaskBar property for Forms in WinForms to control whether or not a Form appears in the TaskBar, but even if its 'ShowInTaskBar property is set to 'true, a Form contained in another Form will not show in the TaskBar, appear in the TabOrder facility, etc.

So, we're free to make a mess Smile | :)

bill

Google CEO, Erich Schmidt: "I keep asking for a product called Serendipity. This product would have access to everything ever written or recorded, know everything the user ever worked on and saved to his or her personal hard drive, and know a whole lot about the user's tastes, friends and predilections." 2004, USA Today interview

GeneralRe: C# WinForms: Is putting a Form inside a Form a "Bad Thing" ? Pin
joost.versteegen24-Oct-13 3:23
joost.versteegen24-Oct-13 3:23 
GeneralRe: C# WinForms: Is putting a Form inside a Form a "Bad Thing" ? Pin
BillWoodruff24-Oct-13 17:48
professionalBillWoodruff24-Oct-13 17:48 
AnswerRe: C# WinForms: Is putting a Form inside a Form a "Bad Thing" ? Pin
WuRunZhe30-Oct-13 14:50
WuRunZhe30-Oct-13 14:50 
Questionclosing second form without closing first form Pin
alfie.max1522-Oct-13 23:34
alfie.max1522-Oct-13 23:34 
AnswerRe: closing second form without closing first form Pin
BillWoodruff23-Oct-13 2:20
professionalBillWoodruff23-Oct-13 2:20 
GeneralRe: closing second form without closing first form Pin
alfie.max1524-Oct-13 7:21
alfie.max1524-Oct-13 7:21 
QuestionSQL Server Connection Pin
Member 1035350322-Oct-13 17:43
Member 1035350322-Oct-13 17:43 
AnswerRe: SQL Server Connection Pin
Ron Beyer22-Oct-13 18:06
professionalRon Beyer22-Oct-13 18:06 
AnswerRe: SQL Server Connection Pin
Nicholas Marty22-Oct-13 23:27
professionalNicholas Marty22-Oct-13 23:27 
QuestionC# Open Windows 8 Keyboard Pin
Kevin Marois22-Oct-13 13:15
professionalKevin Marois22-Oct-13 13:15 
AnswerRe: C# Open Windows 8 Keyboard Pin
BillWoodruff22-Oct-13 21:37
professionalBillWoodruff22-Oct-13 21:37 
QuestionParsing an XML File Pin
MarkB12322-Oct-13 9:18
MarkB12322-Oct-13 9:18 
AnswerRe: Parsing an XML File Pin
Richard Deeming22-Oct-13 9:38
mveRichard Deeming22-Oct-13 9:38 
GeneralRe: Parsing an XML File Pin
MarkB12322-Oct-13 10:03
MarkB12322-Oct-13 10:03 
GeneralRe: Parsing an XML File Pin
Richard Deeming22-Oct-13 10:59
mveRichard Deeming22-Oct-13 10:59 
GeneralRe: Parsing an XML File Pin
MarkB12323-Oct-13 6:49
MarkB12323-Oct-13 6:49 
QuestionHow to Get Site ID and site status in IIS 7 using Web Administration Pin
Member 1032854322-Oct-13 4:11
Member 1032854322-Oct-13 4:11 

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.