Click here to Skip to main content
16,020,512 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionHow to hook up a VScrollBar to a control? Pin
Alan Burkhart16-Jun-09 19:00
Alan Burkhart16-Jun-09 19:00 
AnswerRe: How to hook up a VScrollBar to a control? Pin
Eslam Afifi17-Jun-09 1:03
Eslam Afifi17-Jun-09 1:03 
Questionget Operating System name using c# Pin
myms.net15-Jun-09 21:17
myms.net15-Jun-09 21:17 
AnswerRe: get Operating System name using c# Pin
Luc Pattyn15-Jun-09 23:06
sitebuilderLuc Pattyn15-Jun-09 23:06 
AnswerRe: get Operating System name using c# Pin
dan!sh 17-Jun-09 2:56
professional dan!sh 17-Jun-09 2:56 
AnswerRe: get Operating System name using c# Pin
DaveyM6917-Jun-09 5:26
professionalDaveyM6917-Jun-09 5:26 
GeneralRe: get Operating System name using c# Pin
dan!sh 18-Jun-09 6:04
professional dan!sh 18-Jun-09 6:04 
QuestionDefault TitleBar move behavior of a Form set as a child of another Form odd ? Pin
BillWoodruff15-Jun-09 20:39
professionalBillWoodruff15-Jun-09 20:39 
Scenario :

1. create a WinForms project

2. at run-time create another Form (with TitleBar) and set its Parent Property = MainForm

3. Note that you can drag the child Form around by the TitleBar and move most of it outside the Main Form's bounds. If you really "work" at it (and particularly if the child Form's FormBorderStyle is set to something like FixedToolWindow [and the child form's Text property is ""]), you can manage to get the Form so "virtually outside" the Parent's bounds that you can't recover mouse control drag-ability over the child form.

4. But in general, the end user cannot (and hopefully will not) move child forms so far outside the "bounds" they'll lose control over them.

All of which leads to this observation/question : it seems to me the design of behavior of child forms could have been to restrict their movements so all of their current visible area would remain within the bounds of the parent Form : or at least to have given the programmer the option of having them so restrained.

... edit #1 ... I meant to say that, to me, the fact that the child form will be automatically moved when the parent form is moved, keeping its relative position to the parent form's Top and Left properties : suggests that keeping the child form "in bounds" on a titlebar move would be ... uhhh ... kind of "congruent." ... /edit #1 ...

If the child form is moved by its TitleBar, you pretty well have to write a WndProc to keep its bounding rect inside the current parent Form bounding rect. And I have yet to find a "flicker free" way of doing that (but I'm working on it).

Curious what you think about this aspect of WinForm behavior.

And, while we're at it ... why have a separate 'SetParent method which duplicates the functionality of Form.Controls.Add(... someForm ...) ?

thank, Bill

"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844

Questionmail body have to display in multiple lines Pin
myms.net15-Jun-09 2:07
myms.net15-Jun-09 2:07 
AnswerRe: mail body have to display in multiple lines Pin
Dave Kreskowiak15-Jun-09 3:57
mveDave Kreskowiak15-Jun-09 3:57 
Questionhow to add multiple envelopes in word doc Pin
srimail0915-Jun-09 0:51
srimail0915-Jun-09 0:51 
QuestionContainer control inside a UserControl Pin
Bashir Magomedov14-Jun-09 22:35
Bashir Magomedov14-Jun-09 22:35 
AnswerRe: Container control inside a UserControl Pin
Bashir Magomedov14-Jun-09 22:57
Bashir Magomedov14-Jun-09 22:57 
QuestionArabic printing with "?" mark Pin
Ahamed Azeem13-Jun-09 20:35
Ahamed Azeem13-Jun-09 20:35 
AnswerRe: Arabic printing with "?" mark Pin
Mycroft Holmes14-Jun-09 19:05
professionalMycroft Holmes14-Jun-09 19:05 
GeneralRe: Arabic printing with "?" mark Pin
Ahamed Azeem14-Jun-09 20:58
Ahamed Azeem14-Jun-09 20:58 
Question[Solved partially work-around found]] VS 2010 Panel with AutoScroll=true : Horizontal Scrollbar does not appear [modified] Pin
BillWoodruff13-Jun-09 2:02
professionalBillWoodruff13-Jun-09 2:02 
AnswerRe: VS 2010 Panel with AutoScroll=true : Horizontal Scrollbar does not appear Pin
Henry Minute15-Jun-09 0:45
Henry Minute15-Jun-09 0:45 
GeneralRe: VS 2010 Panel with AutoScroll=true : Horizontal Scrollbar does not appear Pin
BillWoodruff15-Jun-09 3:52
professionalBillWoodruff15-Jun-09 3:52 
QuestionAliens stole my ToolStrip and ate it for breakfast. (Solution to previous post about a month ago) Pin
Baeltazor11-Jun-09 19:03
Baeltazor11-Jun-09 19:03 
QuestionSyntax error in query expression Pin
krinaljariwala11-Jun-09 3:44
krinaljariwala11-Jun-09 3:44 
AnswerRe: Syntax error in query expression Pin
led mike11-Jun-09 4:44
led mike11-Jun-09 4:44 
GeneralRe: Syntax error in query expression Pin
krinaljariwala11-Jun-09 4:49
krinaljariwala11-Jun-09 4:49 
QuestionVB.NET TableAdapter via Assembly loading Pin
MasterRipper11-Jun-09 0:55
MasterRipper11-Jun-09 0:55 
NewsWindows 7 Developer Training Kits Released Pin
brucedkyle10-Jun-09 6:55
brucedkyle10-Jun-09 6:55 

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.