Member Avatar

Hi, I have a dilema, I have an MDI app and I open new forms as [CODE] In modBas.bas: Public frmD(50) As frmDocument MDI Form Load (frmMain): Static lDocumentCount As Long lDocumentCount = lDocumentCount + 1 Set frmD(1) = New frmDocument frmD(1).Width = 320 * Screen.TwipsPerPixelX frmD(1).Caption = "Page - Home (" & lDocumentCount & ")" frmD(1).Show lDocumentCount = lDocumentCount + 1 Set frmD(2) = New frmDocument frmD(2).Width = 320 * Screen.TwipsPerPixelX frmD(2).Caption = "Page - About (" & lDocumentCount & ")" frmD(2).Show [/CODE] I can refer to each form as [CODE]frmD(Index).SetFocus[/CODE] [CODE]frmD(Index).Show[/CODE] etc. no problem. However I cannot read …

Member Avatar
0
5
Member Avatar

Hi all i'm trying to make a plugin supported windows MDI application but my brain has stopped! i can't build algorithm! First of all my program will read dll's from plugin directory which is located at the same directory of my MDI parent application, i don't know what will i use for interfaces and classes, for the moment i created an interface which has to set name and i use that name for placing a button on a panel and i created a dll with that sdk, now its working but i want to add forms to that dll and …

Member Avatar
0
3
Member Avatar

I've been having problems figuring out a way to do this. I need it so that if the user opens form a and then later on buries that form under others, and they click the menu to open the form again that it just sets focus to it instead of opening another instance... This is what I have now, is there a better, more elegant way of doing this or is this pretty much it? [CODE] //see if the form is already open, if it is, set focus to it, if not, open it foreach (Form a in MdiChildren) { …

Member Avatar
0
14

The End.