|
-
Aug 19th, 2008, 04:36 PM
#1
Thread Starter
Lively Member
[RESOLVED] [2008] problems with forms
HI
I am creating a project with 2 forms
the first form (the main) will appear un the taskbar
and the second one will not
I have a button in 'form1' that will show 'form2', now I want to make 'form2' "top of all" so if we select 'form1' 'form2' will be at the top , but if I minimize 'form1' 'form2' will minimize automaticly and also if I restore 'form1' 'form2' will restore
and how to keep the selected text in 'form1' highlighted while 'form2' is active
thanks
-
Aug 19th, 2008, 04:45 PM
#2
Frenzied Member
Re: [2008] problems with forms
hi,
See if this helps. I had found it on the internet but forgot the link, it might solve your problem
Last edited by angelica; Aug 20th, 2008 at 12:48 AM.
------------------------------------------------------------------------
If an answer to your question has been helpful, then please, Rate it! 
-
Aug 19th, 2008, 05:03 PM
#3
Re: [2008] problems with forms
 Originally Posted by mahammad()
HI
I have a button in 'form1' that will show 'form2', now I want to make 'form2' "top of all" so if we select 'form1' 'form2' will be at the top , but if I minimize 'form1' 'form2' will minimize automaticly and also if I restore 'form1' 'form2' will restore
if form2 is At the Top how do you expect to click on form1 (doesn't it mean your form1 should be able to get focus so user can click on minimize button)?
__________________
Rate the posts that helped you 
-
Aug 19th, 2008, 05:07 PM
#4
Thread Starter
Lively Member
Re: [2008] problems with forms
oh I am sorry I don't know how to say it but just like Find dialog in the 'Windows Notepad'
thanks
-
Aug 19th, 2008, 05:09 PM
#5
Re: [2008] problems with forms
ok you should use ShowDialog method e.g
Code:
Dim objForm2 As New Form2()
objForm2.ShowInTaskbar = False
objForm2.ShowDialog()
__________________
Rate the posts that helped you 
-
Aug 19th, 2008, 05:14 PM
#6
Re: [2008] problems with forms
hmm just saw 'Windows Notepad's find form,above code will not let you focus on Form1 ...let me see if i can find out something
__________________
Rate the posts that helped you 
-
Aug 19th, 2008, 05:25 PM
#7
Re: [2008] problems with forms
set form2's topmost property to true. also, set form2 showintaskbar property to false
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Aug 19th, 2008, 05:27 PM
#8
Re: [2008] problems with forms
in your form1_resize event, resize form2 as necessary
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Aug 19th, 2008, 05:47 PM
#9
Thread Starter
Lively Member
Re: [2008] problems with forms
OK I will try them tomorrow I must go now
thank you all
-
Aug 20th, 2008, 09:00 AM
#10
Thread Starter
Lively Member
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
|