Click here to Skip to main content
16,016,527 members
Home / Discussions / C#
   

C#

 
GeneralRe: .NET Training Institute Pin
Christian Graus10-Nov-02 19:43
protectorChristian Graus10-Nov-02 19:43 
GeneralBindingsCollection Pin
Alan Todtenkopf9-Nov-02 11:19
Alan Todtenkopf9-Nov-02 11:19 
GeneralRe: BindingsCollection Pin
James T. Johnson9-Nov-02 11:25
James T. Johnson9-Nov-02 11:25 
GeneralDownloading files with Webrequest Pin
Anonymous9-Nov-02 7:40
Anonymous9-Nov-02 7:40 
GeneralRe: Downloading files with Webrequest Pin
Stephane Rodriguez.9-Nov-02 8:10
Stephane Rodriguez.9-Nov-02 8:10 
GeneralRe: Downloading files with Webrequest Pin
Anonymous9-Nov-02 9:17
Anonymous9-Nov-02 9:17 
GeneralRe: Downloading files with Webrequest Pin
Stephane Rodriguez.9-Nov-02 9:25
Stephane Rodriguez.9-Nov-02 9:25 
GeneralAgain dialog ... :( Pin
Karavaev Denis9-Nov-02 5:29
Karavaev Denis9-Nov-02 5:29 
Ok, thanks everyone, but I have one more question.
To gett callback of my modal dialog I use this code:

ModalDlgClass myDlg = new ModalDlgClass();
if(myDlg.ShowDialog() == DialogResult.OK)
{
//Do smf.
}

But in the modal dialog there is a small problem ...
I need to check something before close it.

if(textBox1.Text.Length == 0)
{
//cheking and need returf focus to modal dialog
}
else
{
//do smf else, then
this.Close(); // I need 2 close it ONLY if textBox1 is not emty
}

But if my textBox1 is empty after checking modal dialog is closing ... is there any way not to close it?

thanks

=====================
http://wasp.elcat.kg


GeneralRe: Well... Pin
Masaaki Onishi10-Nov-02 7:15
Masaaki Onishi10-Nov-02 7:15 
GeneralRe: Well... Pin
Karavaev Denis10-Nov-02 16:36
Karavaev Denis10-Nov-02 16:36 
GeneralRe: Ooops. Pin
Masaaki Onishi10-Nov-02 17:29
Masaaki Onishi10-Nov-02 17:29 
GeneralRe: Ooops. Pin
Karavaev Denis11-Nov-02 2:36
Karavaev Denis11-Nov-02 2:36 
GeneralRe: Again dialog ... :( Pin
mikasa11-Nov-02 6:52
mikasa11-Nov-02 6:52 
GeneralA simple function pointer question... Pin
Dave Kerr9-Nov-02 0:40
Dave Kerr9-Nov-02 0:40 
GeneralRe: A simple function pointer question... Pin
beetung9-Nov-02 1:13
beetung9-Nov-02 1:13 
GeneralRe: A simple function pointer question... Pin
Stephane Rodriguez.9-Nov-02 2:50
Stephane Rodriguez.9-Nov-02 2:50 
GeneralMDI application Pin
Le centriste8-Nov-02 17:43
Le centriste8-Nov-02 17:43 
GeneralRe: MDI application Pin
Stephane Rodriguez.8-Nov-02 19:37
Stephane Rodriguez.8-Nov-02 19:37 
GeneralRe: MDI application Pin
Le centriste9-Nov-02 7:33
Le centriste9-Nov-02 7:33 
GeneralRe: MDI application Pin
Eric Gunnerson (msft)11-Nov-02 7:44
Eric Gunnerson (msft)11-Nov-02 7:44 
GeneralFileSize Pin
kavehdr8-Nov-02 12:08
kavehdr8-Nov-02 12:08 
GeneralRe: FileSize Pin
ian mariano8-Nov-02 20:03
ian mariano8-Nov-02 20:03 
GeneralC# determinism Pin
AaronStibich8-Nov-02 12:03
AaronStibich8-Nov-02 12:03 
QuestionAaarrrgggghhh what have I done??? Pin
LongRange.Shooter8-Nov-02 9:24
LongRange.Shooter8-Nov-02 9:24 
AnswerRe: Aaarrrgggghhh what have I done??? Pin
LongRange.Shooter8-Nov-02 9:41
LongRange.Shooter8-Nov-02 9:41 

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.