Click here to Skip to main content
15,896,726 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# WinForms: Is putting a Form inside a Form a "Bad Thing" ? Pin
GuyThiebaut23-Oct-13 2:02
professionalGuyThiebaut23-Oct-13 2:02 
GeneralRe: C# WinForms: Is putting a Form inside a Form a "Bad Thing" ? Pin
N8tiv23-Oct-13 13:04
N8tiv23-Oct-13 13:04 
AnswerRe: C# WinForms: Is putting a Form inside a Form a "Bad Thing" ? Pin
Richard MacCutchan23-Oct-13 3:27
mveRichard MacCutchan23-Oct-13 3:27 
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 
BillWoodruff wrote:
"One can set a new parent, and could choose to set the apps' parent to a button,"
SetParent[^].

BillWoodruff wrote:
give an example of why you would implement this, and how you would use this type of relationship ?
Most simple scenario would be to put MS Access Runtime (free version of Access) (or the Foxit PDF reader) in a Panel; nice reports, no extra code. Added bonus; no dependencies, making it easy for someone else to write a replacement.

BillWoodruff wrote:
I also fail to see how using a Form within a Form inherently promotes "Encapsulation and re-use" in a way that a Form that is not contained in another Form does not.
It doesn't "promote" it. Given that you need to display a bunch of controls in two separate area's, one of them as a dialog; would you put it in a user-control and use a dedicated form to display that control? Isn't the UserControl overhead? And yes, as long as it's a SOLID control, it'd be possible to re-use the code. Both as a form and a control.

BillWoodruff wrote:
Using a Form within a Form in WinForms means you sacrifice the ability to do design-time layout of the Form's position in its containing Form.
Yup, but it also means that I only see the controls for that form, and not all other crap.

BillWoodruff wrote:
Another thing a Form in a Form offers is ... if it has a TitleBar ... instant movability, but WinForms provides no "easy" way to constrain a contained Form's location in its Parent Form.
Movability is usually disabled when the form is used as a control.

BillWoodruff wrote:
he ad hominem argument that it's a "skin deep" point-of-view on my part, I assert that MDI architecture has the effect of diminished productivity compared to other multi-window management strategies, and I do not believe there's any inherent "efficiency" in MDI compared to managing multi-documents with a Tabbed UI (TDI).
It wasn't an attack on the person. What is your "belief" based on? It's more efficient than SDI for multiple documents in an XP-environment, where the taskbar-button can not yet be used to switch to the correct document. It saves space on the taskbar by limiting the open taskbarbuttons, and it'd be only logical to have multiple documents in a single application. That is, for anything but the people used to a phone-UI.

BillWoodruff wrote:
the "kicker" being that if you regard a tabbed multi-window management application as a form of MDI: well, then MDI is going strong.
Well, it is a multiple document interface, even if the interface changed. Still, I prefer MDI in XP - think Microsoft Word.

BillWoodruff wrote:
I suspect one thing you and I could completely agree on would be the idea that one cannot make any absolute rule about application design Smile | :)
Precisely; it pays more to be pragmatic than pedantic.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

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 
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 

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.