|
-
Jun 7th, 2006, 07:20 AM
#1
Thread Starter
Lively Member
[RESOLVED] Problem in Opening one form from another form
Hello All
I'm using VB 6.0,Windows 2000 and MsAccess.
I've following two forms:
1)Form1
in this form there is a button called Open.
2)Form 2
in this form i have used the Tab dialog control.There are 3 different tabs
Tab0,Tab1,Tab2
and each tab contains one frame,one grid,command buttons.
I've to do the following operation:
When user clicks the button "Open" in form1
form2 should be opened in the following format:
3rd Tab should be highlighted and
3rd tab frame should be visible and enable
3rd tab Btn1 and Btn2 should be visible.
I've the following problem:
Form2 is opened in the desired format but frame is disabled eventhough enable is set to true.
I've observed the following issues by putting the break points:
but when mouse is takes over the code:
1)me.frame.visible=true
it shows me.frame.visible=false
2)me.frame.enable=true
it shows me.frame.enable=true
but in runtime frame is disabled.
Kindly help me to solve this problem
Thanks in advance
Regards.
Last edited by Hack; Jun 7th, 2006 at 08:16 AM.
Reason: Added [RESOLVED] to thread title and green "resolved" checkmark
-
Jun 7th, 2006, 07:23 AM
#2
PowerPoster
Re: Problem in Opening one form from another form
I would suggest putting in the form_load the lines you want that form to have on it that are causing you problems. I have had similar issues with webbrowser where if you set webbrowser.silent = true in properties it goes to false when it's run...a simple webbrowser.silent = true in form_load always helps me :-)
-
Jun 7th, 2006, 07:51 AM
#3
Thread Starter
Lively Member
Re: Problem in Opening one form from another form
Hi
Thanks for the reply. I have put the code which was in the Form load before calling form2. Now it is working fine.
Thanks once again
-
Jun 7th, 2006, 07:53 AM
#4
PowerPoster
Re: Problem in Opening one form from another form
If your issue is resolved, please go to thread tools (at the top) and mark this thread as resolved :-)
Oh, and glad I could help...I do what I can with the limited knowledge I have and I am sure I am helping the more "experienced" helpers here by answering the "noobier" questions for them so it's all good 'cos they help me with my harder questions :-)
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
|