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

C#

 
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 
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 
Hello, the codegurus around the world.;)

Oooops, you're right because I got the same result.
So, I asked "HELP" of VC#.

1) Use DialogResult.NONE
protected void btnOK_Click (object sender, System.EventArgs e)
{
        // OK button clicked.
	// get new message.
	strMessage = txtMessage.Text;

	if(strMessage == "") 
	{
		MessageBox.Show(this, "Error");
		DialogResult = DialogResult.None;
	}
}


2) Disable OK button if TextBox is empty
private void Msg_TextChanged(object sender, System.EventArgs e)
{
   if(txtMessage.Text == "")
	btnOK.Enabled = false;
   else
	btnOK.Enabled = true;
}


Please, don't send me your email about your questions directly.
Have a nice day!
Sonork - 100.10571:vcdeveloper Wink | ;)

-Masaaki Onishi-


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 
GeneralHashtable Pin
afronaut8-Nov-02 6:57
afronaut8-Nov-02 6:57 
GeneralRe: Hashtable Pin
perlmunger8-Nov-02 7:19
perlmunger8-Nov-02 7:19 
GeneralRe: Hashtable Pin
afronaut8-Nov-02 8:51
afronaut8-Nov-02 8:51 

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.