Click here to Skip to main content
15,890,043 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Closing startup form in a windows application Pin
Luc Pattyn6-Aug-09 23:55
sitebuilderLuc Pattyn6-Aug-09 23:55 
AnswerRe: Closing startup form in a windows application Pin
N a v a n e e t h7-Aug-09 18:49
N a v a n e e t h7-Aug-09 18:49 
GeneralRe: Closing startup form in a windows application Pin
crazylad9-Aug-09 11:57
crazylad9-Aug-09 11:57 
GeneralRe: Closing startup form in a windows application Pin
Luc Pattyn9-Aug-09 12:11
sitebuilderLuc Pattyn9-Aug-09 12:11 
GeneralRe: Closing startup form in a windows application Pin
N a v a n e e t h9-Aug-09 15:46
N a v a n e e t h9-Aug-09 15:46 
GeneralRe: Closing startup form in a windows application Pin
Luc Pattyn9-Aug-09 15:54
sitebuilderLuc Pattyn9-Aug-09 15:54 
GeneralRe: Closing startup form in a windows application Pin
N a v a n e e t h9-Aug-09 15:44
N a v a n e e t h9-Aug-09 15:44 
AnswerRe: Closing startup form in a windows application Pin
crazylad12-Aug-09 16:57
crazylad12-Aug-09 16:57 
N a v a n e e t h wrote:
IMO, you need to use Application.Run only when the login is successful. As I said, before calling Application.Run, validate the login and if successful call it. To get the validation result back, you can use DialogResult enum provided with .NET framework. You can do like this,int main(){ bool loginValidated = false; using (LoginWindow window = new LoginWindow()) { loginValidated = window.ShowDialog() == DialogResult.OK; } if(loginValidated) { // starts the application message loop Application.Run(new ProcessForm()); /* .... */ }}Inside the login form, once you validate all the details, write like

this.DialogResult = DialogResult.OK;


Navaneeth & Luc, thank you very much for your response. It was of great help. I also happen to come across an article about passing data between forms. I'm providing the link in this post for the benefit of anybody that is looking for the same information.


Passing Data Between Forms[^]

Thanks again for your help!!
QuestionHiding a 'Category' in the Properties Window Pin
Henry Minute6-Aug-09 10:38
Henry Minute6-Aug-09 10:38 
AnswerRe: Hiding a 'Category' in the Properties Window Pin
Luc Pattyn6-Aug-09 12:36
sitebuilderLuc Pattyn6-Aug-09 12:36 
GeneralRe: Hiding a 'Category' in the Properties Window Pin
Henry Minute6-Aug-09 13:09
Henry Minute6-Aug-09 13:09 
GeneralRe: Hiding a 'Category' in the Properties Window Pin
Luc Pattyn6-Aug-09 14:06
sitebuilderLuc Pattyn6-Aug-09 14:06 
GeneralRe: Hiding a 'Category' in the Properties Window Pin
Henry Minute7-Aug-09 0:14
Henry Minute7-Aug-09 0:14 
GeneralRe: Hiding a 'Category' in the Properties Window Pin
Luc Pattyn7-Aug-09 0:42
sitebuilderLuc Pattyn7-Aug-09 0:42 
GeneralRe: Hiding a 'Category' in the Properties Window Pin
Henry Minute7-Aug-09 1:00
Henry Minute7-Aug-09 1:00 
GeneralRe: Hiding a 'Category' in the Properties Window Pin
Luc Pattyn7-Aug-09 1:14
sitebuilderLuc Pattyn7-Aug-09 1:14 
QuestionHow to get statusbar URL value Pin
Hemant_ec486-Aug-09 10:23
Hemant_ec486-Aug-09 10:23 
NewsWindows 7 RTM now available to MSDN, TechNet Subscribers Pin
brucedkyle6-Aug-09 8:26
brucedkyle6-Aug-09 8:26 
QuestionStream file saved in Oracle as BLOB to a Windows application Pin
crazylad5-Aug-09 16:07
crazylad5-Aug-09 16:07 
AnswerRe: Stream file saved in Oracle as BLOB to a Windows application Pin
dan!sh 5-Aug-09 18:49
professional dan!sh 5-Aug-09 18:49 
GeneralRe: Stream file saved in Oracle as BLOB to a Windows application Pin
crazylad6-Aug-09 5:59
crazylad6-Aug-09 5:59 
GeneralRe: Stream file saved in Oracle as BLOB to a Windows application Pin
dan!sh 6-Aug-09 8:49
professional dan!sh 6-Aug-09 8:49 
GeneralRe: Stream file saved in Oracle as BLOB to a Windows application Pin
crazylad6-Aug-09 12:15
crazylad6-Aug-09 12:15 
QuestionWhile Debugging Cannot See Whats Going on Application in VS 2008 Pin
εїзεїзεїз4-Aug-09 21:10
εїзεїзεїз4-Aug-09 21:10 
AnswerRe: While Debugging Cannot See Whats Going on Application in VS 2008 Pin
Eddy Vluggen4-Aug-09 23:46
professionalEddy Vluggen4-Aug-09 23:46 

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.