473,385 Members | 1,429 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Navigate between forms

what i need is to call a form2 from a form1, and i need to close the form1
before the form2 is open, right now i'm doing this:

me.close()

dim objForm2 as new frmForm2
objForm2.showdialog()

but it doen't work, it shows the form2 and don't closes the form1 until
the form2 is closed.
Jun 27 '08 #1
1 884
"Sergio" <Se****@discussions.microsoft.comwrote in message
news:CC**********************************@microsof t.com...
what i need is to call a form2 from a form1, and i need to close the form1
before the form2 is open, right now i'm doing this:

me.close()

dim objForm2 as new frmForm2
objForm2.showdialog()

but it doen't work, it shows the form2 and don't closes the form1 until
the form2 is closed.

Of course not. That's design behavior of a modal form. Other program
operations are suspended until the modal dialog is excused. I'd try opening
the second form as a nonmodal (Show() vs. ShowDialog().

Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Fredrik | last post by:
I'm trying to create a WebBrowser control in Visual C# 2005 Express edition Beta 2, bug can't get it working. Using this: webBrowser1.Navigate("http://microsoft.com"); I get: Error 13: Argument...
0
by: travisGatesMcGee | last post by:
For days and days, I have been trying to see a URL's parsing in a DOM tree (links collection, images and other DHTML elements) in Visual Basic......... Total Disaster!!!!!!!!!! Way too many...
2
by: Boyd | last post by:
Hello All, I have a dropdown on a page (contact_us.asp) that when it is changed the page reloads and displays the contact details selected, to do this i have a onChange() running on the dropdown...
6
by: Patrick Coghlan | last post by:
I want to create about 4 forms with the same dimensions and background colours, similar to the forms one has to traverse when installing various software packages. I'm using Visual Studio and...
13
by: robert.waters | last post by:
Do you have your users rely on the windows taskbar to manage/navigate between the forms they have open, or do you provide another (more robust) method? Does anyone use a custom navigation system...
2
by: gkostova | last post by:
Hello, Can someone help me. I use Web Browser in my windows form to display html document using flash and javascript, the problem is that not I canot navigate trought all pages of the flash . Then...
0
by: beebelbrox | last post by:
Hi, I am new VB programming in Access and I am requesting help with the following code. This code is attached to a form that will display a specific recordset based in information passed to the...
1
by: Lumpy | last post by:
Hi all, I have have been lucky to get some good advice in regards to some access questions I have had so far. The good news is I am almost done with this project but I seem to have hit another...
0
by: mukesh125 | last post by:
hi when we want to navigate between child forms(more than one are activated) we use following code Form2 f =new Form(); f.Activate(); f.Show(); but if i have more than one user control ,i...
6
by: emrodge | last post by:
I'm using Access 2007 on Windows Vista and am having some problems trying to configure a simple button. There are two tables called Clients and Contacts which are linked on clients.id and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.