Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 12th, 2006, 12:33 PM   #11
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
It doesn't really matter which way it gets done, but as I've said it was only efficiency I was wondering about now. What I have right now, is if there is a password, the frmpassword is the form to run. If not, then the frmMain runs. It works, only problem is that if there is a password, frmPassword stays open the whole time the program is running (its just hidden). For this program, its small so it doesn't make a huge difference, but if this were bigger, I might have some issues.
Booooze is offline   Reply With Quote
Old May 12th, 2006, 3:47 PM   #12
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Jason, I forgot to add Application.Run(); at the end - sorry. Booooze seems to have figured that out though.

I say Microsoft recommends the approach I use because the idea came from Visual Studio 2005 - create a new project with a form in Visual C# 2005, and it'll make two classes: Form1 and Program, which contains the Main function.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old May 12th, 2006, 6:12 PM   #13
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Quote:
I forgot to add Application.Run(); at the end - sorry. Booooze seems to have figured that out though.
Yeah, I was more or less looking for theory and logic. I can handle code on my own usually Sometimes ya just need another way to look at it.
Booooze is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:57 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC