Click here to Skip to main content
15,917,177 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionDockable forms Pin
sinosoidal23-Mar-07 4:38
sinosoidal23-Mar-07 4:38 
AnswerRe: Dockable forms Pin
Christian Graus23-Mar-07 4:41
protectorChristian Graus23-Mar-07 4:41 
GeneralRe: Dockable forms Pin
sinosoidal23-Mar-07 4:56
sinosoidal23-Mar-07 4:56 
GeneralRe: Dockable forms Pin
Pete O'Hanlon23-Mar-07 5:02
mvePete O'Hanlon23-Mar-07 5:02 
GeneralRe: Dockable forms Pin
led mike23-Mar-07 5:02
led mike23-Mar-07 5:02 
GeneralRe: Dockable forms Pin
sinosoidal23-Mar-07 5:08
sinosoidal23-Mar-07 5:08 
AnswerRe: Dockable forms Pin
Navneet Hegde26-Mar-07 1:54
Navneet Hegde26-Mar-07 1:54 
QuestionHow can I start an app with window hidden? Pin
FinishedOnTime23-Mar-07 2:47
FinishedOnTime23-Mar-07 2:47 
Hi Everyone, I'm a log time fan of CodeProject, former C++ guy, now C# guy. Here's what I need help with if you please:

I have a Windows Forms app (C#, VS2005, .NET 2.0) with a grid control on it, the grid control will be populated with information collected from a call to a SOAP WebService. The workflow is:
1. App starts up - main window is hidden
2. App pops up a dialog asking for logon / password
3. Logon dialog hits webservice and gets back a token
3a. If user cancels login, exit application
4. Main window appears with a grid control on it that is empty
5. Main window uses token from web service to make calls to get data from webservice and display on the grid

Here is my problem: I don't want the main window to appear before the user completes the process of logging on with the login dialog. However, I can't figure out how to get my application to start with my main window hidden except to launch the login dialog from the main form's constructor (gross!!). I try to use the Windows Form methods I can find like Hide() which will hide the window, but the problem is you'll see it before it gets hidden. I don't want it to appear at all until the user is done with the login window. I've tried modeless dialog for the login dialog, modeless etc.

The desired effect that I can't achieve (without putting login form's instantiation and execution in the Main Form's construtor) is that you never see the main form until after login successfully completes, and if login is cancelled the program exits and you never see the main window at all.

Thanks a lot for any help!
AnswerRe: How can I start an app with window hidden? Pin
Pete O'Hanlon23-Mar-07 4:00
mvePete O'Hanlon23-Mar-07 4:00 
GeneralRe: How can I start an app with window hidden? Pin
FinishedOnTime23-Mar-07 6:25
FinishedOnTime23-Mar-07 6:25 
GeneralRe: How can I start an app with window hidden? Pin
Pete O'Hanlon25-Mar-07 10:53
mvePete O'Hanlon25-Mar-07 10:53 
QuestionHelp me Pin
Member 395361323-Mar-07 1:23
Member 395361323-Mar-07 1:23 
AnswerRe: Help me Pin
Pete O'Hanlon23-Mar-07 1:43
mvePete O'Hanlon23-Mar-07 1:43 
Questiongisplay messeges Pin
Member 395361323-Mar-07 1:17
Member 395361323-Mar-07 1:17 
AnswerRe: gisplay messeges Pin
Pete O'Hanlon23-Mar-07 1:48
mvePete O'Hanlon23-Mar-07 1:48 
GeneralRe: gisplay messeges Pin
Marcus J. Smith23-Mar-07 8:56
professionalMarcus J. Smith23-Mar-07 8:56 
Questionslightly complex help with the splitcontainer needed! plz Pin
giddy_guitarist22-Mar-07 21:44
giddy_guitarist22-Mar-07 21:44 
AnswerRe: slightly complex help with the splitcontainer needed! plz Pin
sinosoidal23-Mar-07 1:14
sinosoidal23-Mar-07 1:14 
QuestionResource error Pin
rushiraj.jhala22-Mar-07 19:14
rushiraj.jhala22-Mar-07 19:14 
Questionhelp on DOS commands needed Pin
nithin24822-Mar-07 11:13
nithin24822-Mar-07 11:13 
QuestionHow to enumerate a ToolStripMenuItems's events Pin
hellspawnfr22-Mar-07 9:54
hellspawnfr22-Mar-07 9:54 
QuestionHelp me Pin
sureshmyway22-Mar-07 4:16
sureshmyway22-Mar-07 4:16 
QuestionText box validation Pin
Ruchi0322-Mar-07 0:49
Ruchi0322-Mar-07 0:49 
AnswerRe: Text box validation Pin
Pete O'Hanlon22-Mar-07 2:30
mvePete O'Hanlon22-Mar-07 2:30 
GeneralRe: Text box validation Pin
Ruchi0322-Mar-07 17:05
Ruchi0322-Mar-07 17:05 

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.