Click here to Skip to main content
15,904,024 members
Home / Discussions / C#
   

C#

 
GeneralRe: sql server 3.5 Pin
lankaudaranga19-Aug-08 18:25
lankaudaranga19-Aug-08 18:25 
GeneralRe: sql server 3.5 Pin
Colin Angus Mackay19-Aug-08 21:27
Colin Angus Mackay19-Aug-08 21:27 
QuestionIMAP Pin
kathiresanmoorthy18-Aug-08 20:56
kathiresanmoorthy18-Aug-08 20:56 
Questionclickonce setup - publish Pin
arkiboys18-Aug-08 20:52
arkiboys18-Aug-08 20:52 
AnswerRe: clickonce setup - publish Pin
AhsanS18-Aug-08 20:56
AhsanS18-Aug-08 20:56 
QuestionHelp!!!! Pin
Grim Re@p3r18-Aug-08 20:30
Grim Re@p3r18-Aug-08 20:30 
AnswerRe: Help!!!! Unclear post Pin
Muhammad Gouda18-Aug-08 21:18
Muhammad Gouda18-Aug-08 21:18 
QuestionMDI children instances, how to code Pin
ianhunt0118-Aug-08 20:12
ianhunt0118-Aug-08 20:12 
Hi,

I have trouble trying to find out which instance of a MDI child is active and how to adress it's properties and methods.

I have got a MDI form with child frmList that shows all the available info in a particular case, then clicking on one of the nodes should pop up an frmShow that displays the info in a grid on a background image. Adding to this is a from frmProperties with certain tools that should depict what the user can do on the frmShow window (Be it zooming in, adding lines etc).

The problem is that there must allways just be one instance of frmList and frmProperties but multiple instances of frmShow. I think I have it sorted with: (make suggestions please !)

 bool isOpen = false;
// loop through list and find if child is open
//
 for (int x = 0; x < this.MdiChildren.Length; x++)
 {
     if (this.MdiChildren[x].Name == "frmListDef")
     {
         isOpen = true;
     }
 }
// if it does not exist open it
 if (!isOpen)
 {
     Form frmList = new frmListDef();
     frmList.MdiParent = this;
     frmList.Show();
 }


Now I am trying to find out how to adress a method or property on the specific instance of a child ?

thanks

Ian
PS: any nice articles or refs to MDI programming would be nice
AnswerRe: MDI children instances, how to code Pin
AhsanS18-Aug-08 20:33
AhsanS18-Aug-08 20:33 
AnswerRe: MDI children instances, how to code Pin
DaveyM6918-Aug-08 22:52
professionalDaveyM6918-Aug-08 22:52 
AnswerRe: MDI children instances, how to code Pin
ianhunt0119-Aug-08 8:56
ianhunt0119-Aug-08 8:56 
GeneralRe: MDI children instances, how to code Pin
DaveyM6919-Aug-08 11:10
professionalDaveyM6919-Aug-08 11:10 
QuestionHow to bind hardcoded DataGridView with DataTable Pin
Piyush Vaishnav18-Aug-08 19:24
Piyush Vaishnav18-Aug-08 19:24 
AnswerRe: How to bind hardcoded DataGridView with DataTable Pin
AhsanS18-Aug-08 19:33
AhsanS18-Aug-08 19:33 
Questionsource code of scannig image from web cam in vb.net or in c# Pin
shp_ptn18-Aug-08 19:02
shp_ptn18-Aug-08 19:02 
AnswerRe: source code of scannig image from web cam in vb.net or in c# Pin
AhsanS18-Aug-08 19:24
AhsanS18-Aug-08 19:24 
QuestionLinq Noob, stuck on type inference... Pin
callingshotgun18-Aug-08 18:54
callingshotgun18-Aug-08 18:54 
AnswerRe: Linq Noob, stuck on type inference... Pin
leppie18-Aug-08 22:14
leppie18-Aug-08 22:14 
GeneralRe: Linq Noob, stuck on type inference... Pin
callingshotgun19-Aug-08 5:06
callingshotgun19-Aug-08 5:06 
GeneralRe: Linq Noob, stuck on type inference... Pin
leppie19-Aug-08 5:47
leppie19-Aug-08 5:47 
GeneralRe: Linq Noob, stuck on type inference... Pin
callingshotgun19-Aug-08 6:06
callingshotgun19-Aug-08 6:06 
QuestionPInvoke Heartburn Pin
ahfong18-Aug-08 14:33
ahfong18-Aug-08 14:33 
AnswerRe: PInvoke Heartburn Pin
leppie18-Aug-08 22:08
leppie18-Aug-08 22:08 
QuestionShould GenericQueue.Enqueue work while a different thread has LOCK(GenericQueue) ? Pin
JoeRip18-Aug-08 11:46
JoeRip18-Aug-08 11:46 
AnswerRe: Should GenericQueue.Enqueue work while a different thread has LOCK(GenericQueue) ? Pin
Colin Angus Mackay18-Aug-08 12:41
Colin Angus Mackay18-Aug-08 12:41 

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.