I would like to force a click on a window in my menu's windowlist. Can I do that.
Printable View
I would like to force a click on a window in my menu's windowlist. Can I do that.
You could use the sendkeys function to send it, jst make sure you have all of the shortcuts set up for your menu, it might be problematic because windows would be coming and going and the count would get screwed up.
Ok but can I reference those menu created like i dont know mnuWindowlist(1), etc.. Do they have a name??
couldn't you just bring the desired window to the front?
using frmMyForm.SetFocus
I don't think so, is this an MDI application? When you make the MDI Child windows you could have the form be a public variable that way you can access it from another sub. Like this:
VB Code:
'in declarations Dim Childs(100) as new frmChild, CurrentNew as integer sub command1_click() 'make the new child if currentnew = 100 then msgbox "Already opened 100, out of memory" exit sub end if childs(currentnew).show currentnew=currentnew+1 end sub sub command2_click() 'call up child #42 childs(42).show end sub
Is that what you wanted?
See thats my problem if you see my other post from today(here and in API) everything is all f****d up ; nothing is working must be sometyhing somewhere in my code like
VB Code:
If WorksGood Then DontWork
Well not exactly numtel but your form array gives me an idea and yes it is MDI
i've gotten so worked into a program before where I had things contradicting eachother
I'm just wondering about the form array should I set the the form to nothing when it closes