473,385 Members | 2,028 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.

Closing a form when a new one opens.

I have a login open a form. Now how do I close the login
when the other form opens?

Thanks for the help.

Joshua Kendall.
Nov 20 '05 #1
4 1181
"Joshua Kendall" <jo****@goartic.com> schrieb
I have a login open a form. Now how do I close the login
when the other form opens?


Depends on the application structure. Example:

shared sub main
dim f1 as loginform
dim f2 as mainform
f1=new loginform
if f1.showdialog=dialogresult.ok then
f2 = new mainform
application.run(f2)
end if
end sub
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
I have a splash screen/login that shows first, upon
validating the password the form opens another form, but
the splash screen/login won't go away when the main app.
is loaded.

heres my code:

Private Sub LoginBTN_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
LoginBTN.Click
If PassINP.Text = "bluecats" And UserINP.Text
= "Joshua" Then Dim frmMainApp As New frmMainApp() :
frmMainApp.Show() Else End
End Sub
Nov 20 '05 #3
* "Joshua Kendall" <jo****@goartic.com> scripsit:
I have a login open a form. Now how do I close the login
when the other form opens?


See:

<http://www.google.com/groups?selm=%23HRMBHBRDHA.2204%40TK2MSFTNGP12.phx. gbl>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #4
EMW
try this,

http://msdn.microsoft.com/library/en...asp?frame=true

On page 7 there is a chapter called "Form navigation and Interaction".
It teaches how to open a second form before closing the first the proper
way!

good luck.
Eric

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schreef in bericht
news:bo*************@ID-208219.news.uni-berlin.de...
* "Joshua Kendall" <jo****@goartic.com> scripsit:
I have a login open a form. Now how do I close the login
when the other form opens?
See:

<http://www.google.com/groups?selm=%2...TNGP12.phx.gbl

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>

Nov 20 '05 #5

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

Similar topics

1
by: MJEASSOC | last post by:
I need some help with closing a popup window. I'm making an online portfolio, that has one base page with text and thumbnails. When a user clicks on a thumb, a new window opens containing a larger...
1
by: Mike | last post by:
I have a form that certain information on it. On this form there is a button that opens a payment form. When the payment form opens I enter a payment type, check cash charge, payment number,...
3
by: Brad Allison | last post by:
Is there an easy way to close one form when another opens? Thanks for the information. Brad
3
by: Charles Law | last post by:
Under what circumstances would e.Cancel be set to True on entry to the Closing event of an MDI child form? I have found that this is why my application won't close properly. I can explicitly set...
2
by: Keith | last post by:
Moving from form to form seems straight forward - but how would one go about closing a form FROM another form? I use me.close - to close out a form and the following to open ("jump to") a new...
23
by: Chukkalove | last post by:
Im sorry, I dont know the correct description for a hierarchy of parent and child forms. I have a main form that opens a child form modally. This child form in turn opens it's own child form...
22
by: Zytan | last post by:
I have public methods in a form. The main form calls them, to update that form's display. This form is like a real-time view of data that is changing. But, the form may not exist (it is...
1
by: Salad | last post by:
I have a form that opens another (intermediary) form. The user selects an option on the intermediary form and it opens another form and the intermediary form is closed. Ex: From MainForm...
2
by: =?Utf-8?B?RXRoYW4gU3RyYXVzcw==?= | last post by:
I am (still) relatively new to Windows applications, most of my experience has been Web based, and I am confused about what exactly happens when the Main() method is called and how to manipulate...
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
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.