Click here to Skip to main content
15,881,803 members
Home / Discussions / C#
   

C#

 
GeneralSending XML file as a parameter Pin
sacoskun17-Aug-04 5:52
sacoskun17-Aug-04 5:52 
GeneralRe: Sending XML file as a parameter Pin
Stanciu Vlad17-Aug-04 6:52
Stanciu Vlad17-Aug-04 6:52 
GeneralRe: Sending XML file as a parameter Pin
leppie17-Aug-04 8:19
leppie17-Aug-04 8:19 
GeneralDataGrid not update Pin
Fule17-Aug-04 5:21
Fule17-Aug-04 5:21 
GeneralRe: DataGrid not update Pin
leppie17-Aug-04 5:54
leppie17-Aug-04 5:54 
GeneralRe: DataGrid not update Pin
dekhle17-Aug-04 5:56
dekhle17-Aug-04 5:56 
GeneralRe: DataGrid not update Pin
Heath Stewart18-Aug-04 11:02
protectorHeath Stewart18-Aug-04 11:02 
Generalclosing forms Pin
steve_rm17-Aug-04 5:20
steve_rm17-Aug-04 5:20 
Hello

I have a project that uses a login form and when the user clicks enter it opens another form called customers.
I have this code in the login form.
static void Main()
{
Application.Run(new frmlogin());
}

The problem is when l click enter on the login form to show the customers form. I want to close the login form using this.Close(); but when l do this it exits the entire project.
I have used this.Visible = false; But then l can't exit the entire project as the form is invisible.

I think want l really want to do is allow the user to login then close this form, as it is not needed anymore. When the user has finished with the application, they can click on the exit button on the customers form to exit the entire project.

Any easy way to do this.

Thanks in advance.

Steve

GeneralRe: closing forms Pin
Anonymous17-Aug-04 5:53
Anonymous17-Aug-04 5:53 
GeneralRe: closing forms Pin
mav.northwind17-Aug-04 6:17
mav.northwind17-Aug-04 6:17 
GeneralRe: closing forms Pin
loop0722-Aug-04 17:19
loop0722-Aug-04 17:19 
GeneralRe: closing forms Pin
mav.northwind22-Aug-04 20:15
mav.northwind22-Aug-04 20:15 
GeneralMr ListView again Pin
yetanotherchris17-Aug-04 4:43
yetanotherchris17-Aug-04 4:43 
Generalfocus on next control in a WinForm Pin
Hovik Melkomian17-Aug-04 2:33
Hovik Melkomian17-Aug-04 2:33 
GeneralRe: focus on next control in a WinForm Pin
Nick Parker17-Aug-04 3:30
protectorNick Parker17-Aug-04 3:30 
GeneralRe: focus on next control in a WinForm Pin
Hovik Melkomian17-Aug-04 6:37
Hovik Melkomian17-Aug-04 6:37 
GeneralRe: focus on next control in a WinForm Pin
Stanciu Vlad17-Aug-04 7:02
Stanciu Vlad17-Aug-04 7:02 
GeneralWeb custom control complie in vb.net Pin
patrick.hatung17-Aug-04 1:56
patrick.hatung17-Aug-04 1:56 
GeneralRe: Web custom control complie in vb.net Pin
Nick Parker17-Aug-04 3:17
protectorNick Parker17-Aug-04 3:17 
Generalembedded database Pin
khchan17-Aug-04 1:48
khchan17-Aug-04 1:48 
GeneralRe: embedded database Pin
yetanotherchris17-Aug-04 5:18
yetanotherchris17-Aug-04 5:18 
GeneralRe: embedded database Pin
Steve Maier17-Aug-04 7:31
professionalSteve Maier17-Aug-04 7:31 
GeneralRe: embedded database Pin
leppie17-Aug-04 8:21
leppie17-Aug-04 8:21 
Questionhow to change icons Pin
Stephan Wright17-Aug-04 1:15
Stephan Wright17-Aug-04 1:15 
AnswerRe: how to change icons Pin
Nick Parker17-Aug-04 3:09
protectorNick Parker17-Aug-04 3:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.