Click here to Skip to main content
15,922,015 members
Home / Discussions / C#
   

C#

 
AnswerRe: Web Scraping XML file Pin
mjackson1119-Aug-12 7:13
mjackson1119-Aug-12 7:13 
QuestionAccessing Certificates in a windows service Pin
Wolfram Steinke14-Aug-12 2:03
Wolfram Steinke14-Aug-12 2:03 
AnswerRe: Accessing Certificates in a windows service Pin
Eddy Vluggen14-Aug-12 2:24
professionalEddy Vluggen14-Aug-12 2:24 
AnswerRe: Accessing Certificates in a windows service Pin
Bernhard Hiller14-Aug-12 3:04
Bernhard Hiller14-Aug-12 3:04 
Questionhow to prevent a single MDI child form stealing focus from every other mdi child form Pin
jojoba201114-Aug-12 0:56
jojoba201114-Aug-12 0:56 
QuestionRe: how to prevent a single MDI child form stealing focus from every other mdi child form Pin
Eddy Vluggen14-Aug-12 1:20
professionalEddy Vluggen14-Aug-12 1:20 
QuestionRe: how to prevent a single MDI child form stealing focus from every other mdi child form Pin
Shameel14-Aug-12 1:42
professionalShameel14-Aug-12 1:42 
AnswerRe: how to prevent a single MDI child form stealing focus from every other mdi child form Pin
BillWoodruff14-Aug-12 8:13
professionalBillWoodruff14-Aug-12 8:13 
Are you describing a scenario where, with the MdiParentForm:

1. one or more MdiChildForms are open and visible (not "collapsed"):

... and ...

2. you then create a new MdiChildForm and 'Show it: naturally it then has "focus," and is front of all other Child Forms:

... and ...

3. then you click inside the "client area" of a visible part of one of the other MdiChildForms that were already open:

... and ...

4. that already-open MdiChildForm you clicked in the client area of: does not: then: have "focus," and is not, now, in front of all the other Child Forms ?

If that is what you are describing: then, there's something very wrong with your code: because: the standard default behavior for clicking on any open (not collapsed) MdiChidForm, in its client area, or on its TitleBar, is: to give it "focus," and bring it in front of all other child forms that are visible.

The logical question to ask, I think, is: when you create a new instance of what will be an MdiChildForm: are you immediately setting its 'MdiParent property to your MdiParent Form ?

And now, excuse me while I get on my "soapbox" and tell you why I think you should not be using Mdi architecture in the first place:

1. it's outmoded, deprecated by MS, and allows the end-user to make visually confusing UI's.

2. even if both MdiParentForm, and MdiChildForm have their 'DoubleBuffered property set to 'true: when you drag a child form around by its TitleBar: you get just an outline of the Child Form.

3. you set the BackGroundColor of your MDIParentForm to some color: that setting is ignored, and you get a dark grey background. You gotta hack around to set its BackColor.

4. It's possible to drag your Child Forms so they are only partially in view inside the MdiParentForm.

So, what's better ? I suggest you consider: independently shown secondary Forms, or you use UserControls, or Panels, that you make movable by the end-user if that's required.

good luck, Bill
"Everything we call real is made of things that cannot be regarded as real." Niels Bohr

QuestionHow to optimize the stream display ? Pin
yu-jian13-Aug-12 16:29
yu-jian13-Aug-12 16:29 
AnswerRe: How to optimize the stream display ? Pin
Dave Kreskowiak13-Aug-12 17:10
mveDave Kreskowiak13-Aug-12 17:10 
AnswerRe: How to optimize the stream display ? Pin
Pete O'Hanlon13-Aug-12 23:53
mvePete O'Hanlon13-Aug-12 23:53 
GeneralRe: How to optimize the stream display ? Pin
yu-jian14-Aug-12 15:28
yu-jian14-Aug-12 15:28 
GeneralRe: How to optimize the stream display ? Pin
Pete O'Hanlon14-Aug-12 22:46
mvePete O'Hanlon14-Aug-12 22:46 
GeneralRe: How to optimize the stream display ? Pin
yu-jian15-Aug-12 16:16
yu-jian15-Aug-12 16:16 
QuestionConverting database tables using threading Pin
Sridk13-Aug-12 9:39
Sridk13-Aug-12 9:39 
AnswerRe: Converting database tables using threading Pin
Pete O'Hanlon13-Aug-12 10:18
mvePete O'Hanlon13-Aug-12 10:18 
AnswerRe: Converting database tables using threading Pin
Eddy Vluggen13-Aug-12 23:27
professionalEddy Vluggen13-Aug-12 23:27 
AnswerRe: Converting database tables using threading Pin
Shameel14-Aug-12 1:04
professionalShameel14-Aug-12 1:04 
QuestionAdding extra parameters to events Pin
paul_b13-Aug-12 9:28
paul_b13-Aug-12 9:28 
AnswerRe: Adding extra parameters to events Pin
Liam Cairns Kelly13-Aug-12 10:02
Liam Cairns Kelly13-Aug-12 10:02 
GeneralRe: Adding extra parameters to events Pin
paul_b13-Aug-12 10:06
paul_b13-Aug-12 10:06 
GeneralRe: Adding extra parameters to events Pin
Liam Cairns Kelly13-Aug-12 10:19
Liam Cairns Kelly13-Aug-12 10:19 
GeneralRe: Adding extra parameters to events Pin
Pete O'Hanlon13-Aug-12 10:41
mvePete O'Hanlon13-Aug-12 10:41 
AnswerRe: Adding extra parameters to events Pin
SledgeHammer0113-Aug-12 10:08
SledgeHammer0113-Aug-12 10:08 
GeneralRe: Adding extra parameters to events Pin
paul_b13-Aug-12 10:16
paul_b13-Aug-12 10:16 

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.