|
-
Aug 6th, 2003, 05:10 AM
#1
Thread Starter
Addicted Member
Forms *Resolved*
I am stuck I have 2 forms Form1 and Form2. Form1 is an mdichild
what is happening is depending on what item is selected from a combobox on Form1 will open Form2 so that info can be entered. the problem is form2 keeps going behind Form1 and the forms freak out a bit.
I have tried
Code:
Form2.show
Form2.setfocus
and i keep gting errors. Should form2 be and Mdichild or what.
oh on form2 i am enabled =false some frames depending on the item in the combobox
can anyone help.
Last edited by Mage; Aug 7th, 2003 at 09:31 AM.
-
Aug 6th, 2003, 05:20 AM
#2
Thread Starter
Addicted Member
um i fixed it i found a in the lostfocus of the combox i had it combobox.setfocus feel pretty stupid now.
but i still ahve a question. I am getting an error on the form2.show , form1 why??
-
Aug 6th, 2003, 05:30 AM
#3
Member
why don't you use a normal form.
-
Aug 6th, 2003, 05:31 AM
#4
Thread Starter
Addicted Member
I have a whole lot forms and they are all contained in an MDIForm
-
Aug 6th, 2003, 05:34 AM
#5
if you aint using Form2 as an mdi child , you can do this...
but the window will stay on top of the parent untill you close it.
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
-
Aug 6th, 2003, 05:35 AM
#6
Member
MSDN
An MDIForm object can't bemodal.
-
Aug 6th, 2003, 09:41 AM
#7
When does Form2 go behind Form1? When it is first shown or later? What do you mean when you say "the forms freak out a bit"?
-
Aug 6th, 2003, 09:59 AM
#8
Fanatic Member
-
Aug 6th, 2003, 11:05 AM
#9
Thread Starter
Addicted Member
Form2 went be hind form1 cos i had the combobox seting focus to itself in the lostdfocus (dont ask me i i did that) so that problem has been solved changing form2 from Mdichild = true to False and VBmodal go that problem sorted.
thanks for the help guys... to hot here today not concerntrating wnat to be out in the sun...
-
Aug 7th, 2003, 07:57 AM
#10
Thread Starter
Addicted Member
Ok I have it working now but i need to send some of the info in the text boxes in Form2 back to the Form1 but now that Form2 is no longer a mdichild i cant reference Form1. I am i going to have to use Global variables to pass the information back??
-
Aug 7th, 2003, 09:26 AM
#11
Originally posted by Mage
Ok I have it working now but i need to send some of the info in the text boxes in Form2 back to the Form1 but now that Form2 is no longer a mdichild i cant reference Form1. I am i going to have to use Global variables to pass the information back??
You should still be able to reference anything that is Public on Form1 by doing Form1.MyVar or Form1.MyControl.
-
Aug 7th, 2003, 09:29 AM
#12
Thread Starter
Addicted Member
Thanks I will have a look
-
Aug 7th, 2003, 09:31 AM
#13
Thread Starter
Addicted Member
most odd went back to it and everything is there
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|