Click here to Skip to main content
15,921,452 members
Home / Discussions / C#
   

C#

 
QuestionTEXTURE PROBLEM Pin
_Comet_Keeper_30-Dec-05 11:29
_Comet_Keeper_30-Dec-05 11:29 
AnswerRe: TEXTURE PROBLEM Pin
Judah Gabriel Himango31-Dec-05 11:18
sponsorJudah Gabriel Himango31-Dec-05 11:18 
Questioncrosshair Pin
Sam 200630-Dec-05 10:59
Sam 200630-Dec-05 10:59 
AnswerRe: crosshair Pin
Dave Kreskowiak30-Dec-05 16:18
mveDave Kreskowiak30-Dec-05 16:18 
QuestionTwo Forms Pin
picasso230-Dec-05 9:36
picasso230-Dec-05 9:36 
AnswerRe: Two Forms Pin
peshkunta30-Dec-05 10:27
peshkunta30-Dec-05 10:27 
GeneralRe: Two Forms Pin
picasso230-Dec-05 10:58
picasso230-Dec-05 10:58 
GeneralRe: Two Forms Pin
peshkunta30-Dec-05 11:10
peshkunta30-Dec-05 11:10 
I think you are making this harder than it has to be - your approach.

The most straight forward and easier for you in the long run would be:

1. Leave Form1 to start in the Application.Run function

2. Go to the Form1 events and add an on Load event handler(function). In this function add your code to start and show your Form2 - the authentication form. This will make Form2 open first and get the focus (be in front). Although both forms will be open (not sure if this is a problem in your case) if you make it as modal with ShowDialog() - that way the person will have to work with Form2 and not be able to mess with Form1 until it's been authenticated.


OR

If you want when you close Form1, Form2 to not be displayed, go to the event handler for Closing in Form1 and tell it to close Form2 when form1 is closing and that should solve the problem. I would use Dispose().
QuestionRTF Formatting in C# Pin
allenmpcx30-Dec-05 9:06
allenmpcx30-Dec-05 9:06 
QuestionMail under Visual Studio 2005 Pin
Tyler4530-Dec-05 8:32
Tyler4530-Dec-05 8:32 
AnswerRe: Mail under Visual Studio 2005 Pin
Tyler4531-Dec-05 7:24
Tyler4531-Dec-05 7:24 
QuestionThreading, Suspend() Pin
tray_gator30-Dec-05 7:40
tray_gator30-Dec-05 7:40 
AnswerRe: Threading, Suspend() Pin
Judah Gabriel Himango30-Dec-05 8:08
sponsorJudah Gabriel Himango30-Dec-05 8:08 
GeneralRe: Threading, Suspend() Pin
Jared Parsons30-Dec-05 9:33
Jared Parsons30-Dec-05 9:33 
GeneralRe: Threading, Suspend() Pin
Judah Gabriel Himango30-Dec-05 9:44
sponsorJudah Gabriel Himango30-Dec-05 9:44 
GeneralRe: Threading, Suspend() Pin
tray_gator30-Dec-05 10:07
tray_gator30-Dec-05 10:07 
GeneralRe: Threading, Suspend() Pin
Jared Parsons30-Dec-05 10:30
Jared Parsons30-Dec-05 10:30 
GeneralRe: Threading, Suspend() Pin
tray_gator30-Dec-05 10:44
tray_gator30-Dec-05 10:44 
QuestionI know this noob but.. Pin
wednesday™ -LJX-30-Dec-05 7:29
wednesday™ -LJX-30-Dec-05 7:29 
AnswerRe: I know this noob but.. Pin
Drew McGhie30-Dec-05 8:14
Drew McGhie30-Dec-05 8:14 
AnswerRe: I know this noob but.. Pin
Xodiak30-Dec-05 8:16
Xodiak30-Dec-05 8:16 
QuestionStructure/Memory Question Pin
bpreston30-Dec-05 7:11
bpreston30-Dec-05 7:11 
AnswerRe: Structure/Memory Question Pin
Judah Gabriel Himango30-Dec-05 8:14
sponsorJudah Gabriel Himango30-Dec-05 8:14 
GeneralRe: Structure/Memory Question Pin
Jared Parsons30-Dec-05 9:43
Jared Parsons30-Dec-05 9:43 
GeneralRe: Structure/Memory Question Pin
Judah Gabriel Himango30-Dec-05 9:50
sponsorJudah Gabriel Himango30-Dec-05 9:50 

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.