Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: & missing Pin
Rob Philpott3-Jun-09 1:21
Rob Philpott3-Jun-09 1:21 
GeneralRe: & missing Pin
Rob Philpott3-Jun-09 1:24
Rob Philpott3-Jun-09 1:24 
GeneralRe: & missing Pin
benjamin yap3-Jun-09 1:26
benjamin yap3-Jun-09 1:26 
GeneralRe: & missing Pin
Henry Minute3-Jun-09 1:33
Henry Minute3-Jun-09 1:33 
GeneralRe: & missing Pin
benjamin yap3-Jun-09 1:38
benjamin yap3-Jun-09 1:38 
GeneralRe: & missing Pin
Henry Minute3-Jun-09 2:03
Henry Minute3-Jun-09 2:03 
GeneralRe: & missing Pin
benjamin yap3-Jun-09 3:52
benjamin yap3-Jun-09 3:52 
GeneralRe: & missing Pin
Rob Philpott3-Jun-09 2:19
Rob Philpott3-Jun-09 2:19 
Certainly you'd want to close the login screen when you're finished with it. There are a few ways to do this. Also, you don't want to do a main.Show() in the login screen - you lose reuse and abstraction if you do that by tightly coupling the login and main screen.

To open the main screen after the login either call ShowDialog() on the login form from the main form's on load event or you can change your main() function to look like this:

[STAThread]
static void Main()
{
	Application.EnableVisualStyles();
	Application.SetCompatibleTextRenderingDefault(false);
	Application.Run(new LoginForm());
	Application.Run(new MainForm());
}


Regards,
Rob Philpott.

AnswerRe: & missing Pin
Moreno Airoldi3-Jun-09 1:24
Moreno Airoldi3-Jun-09 1:24 
QuestionSybase connection error... Pin
The_Collector3-Jun-09 0:24
The_Collector3-Jun-09 0:24 
AnswerRe: Sybase connection error... Pin
Moreno Airoldi3-Jun-09 0:40
Moreno Airoldi3-Jun-09 0:40 
GeneralRe: Sybase connection error... Pin
The_Collector3-Jun-09 4:00
The_Collector3-Jun-09 4:00 
GeneralRe: Sybase connection error... Pin
Moreno Airoldi3-Jun-09 5:21
Moreno Airoldi3-Jun-09 5:21 
GeneralRe: Sybase connection error... Pin
The_Collector3-Jun-09 14:36
The_Collector3-Jun-09 14:36 
QuestionException when making a control button Pin
gwithey3-Jun-09 0:08
gwithey3-Jun-09 0:08 
AnswerRe: Exception when making a control button Pin
Moreno Airoldi3-Jun-09 0:21
Moreno Airoldi3-Jun-09 0:21 
AnswerRe: Exception when making a control button Pin
Rob Philpott3-Jun-09 0:21
Rob Philpott3-Jun-09 0:21 
GeneralRe: Exception when making a control button Pin
gwithey3-Jun-09 0:56
gwithey3-Jun-09 0:56 
QuestionHow to encapsulate C++ in C# Pin
sbotz2-Jun-09 23:55
sbotz2-Jun-09 23:55 
AnswerRe: How to encapsulate C++ in C# Pin
Simon P Stevens3-Jun-09 1:02
Simon P Stevens3-Jun-09 1:02 
GeneralRe: How to encapsulate C++ in C# Pin
sbotz3-Jun-09 1:20
sbotz3-Jun-09 1:20 
GeneralRe: How to encapsulate C++ in C# Pin
Simon P Stevens3-Jun-09 3:16
Simon P Stevens3-Jun-09 3:16 
GeneralRe: How to encapsulate C++ in C# Pin
Dave Kreskowiak3-Jun-09 3:24
mveDave Kreskowiak3-Jun-09 3:24 
Questioncross thread events Pin
spiritboy2-Jun-09 23:55
spiritboy2-Jun-09 23:55 
AnswerRe: cross thread events Pin
Moreno Airoldi3-Jun-09 0:15
Moreno Airoldi3-Jun-09 0:15 

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.