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

C#

 
Questionhow to create a custom scrollbar? Pin
Sasuko30-Dec-05 12:38
Sasuko30-Dec-05 12:38 
AnswerRe: how to create a custom scrollbar? Pin
AndrewPeters31-Dec-05 14:35
AndrewPeters31-Dec-05 14:35 
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 
This is very easy to do. I just need to understand a few things of what you are trying to do:

1. Does this check happen on start up? If yes, there is a better way to do this.


2. After the MessageBox tells you "Wrong password...etc. what do you want to happen - everything to close?

3. You seem to have only OK button n the MessageBox that displays wrong password... do you want the same thing to happen if a person presses OK or cancels the dialog?

This will close and release all the resources associated with the form (including memory) the main form after the dialog has opened that tells the password is incorrect and OK is pressed or that dialog has exited.

if (MessageBox.Show("Bad user or password", "Info") == DialogResult.OK)
{
this.Dispose();
}

Let me know if this helps.:->
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 
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 

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.