Click here to Skip to main content
15,880,972 members
Home / Discussions / C#
   

C#

 
GeneralRe: Event triger Pin
Paul Riley19-Sep-02 5:33
Paul Riley19-Sep-02 5:33 
GeneralRe: Event triger Pin
David Stone19-Sep-02 5:38
sitebuilderDavid Stone19-Sep-02 5:38 
GeneralRe: Event trigger Pin
D Shen19-Sep-02 8:16
D Shen19-Sep-02 8:16 
GeneralRe: Event trigger Pin
D Shen19-Sep-02 8:16
D Shen19-Sep-02 8:16 
GeneralRe: Event trigger Pin
Paul Riley19-Sep-02 9:28
Paul Riley19-Sep-02 9:28 
GeneralRe: Event triger Pin
Shaun Wilde19-Sep-02 11:14
Shaun Wilde19-Sep-02 11:14 
GeneralRe: Event triger Pin
Paul Riley19-Sep-02 11:26
Paul Riley19-Sep-02 11:26 
GeneralRe: Event triger Pin
David Stone19-Sep-02 5:36
sitebuilderDavid Stone19-Sep-02 5:36 
You could iterate through the controls collection of the Form to find it for all the textboxes. I think this'll work:

bool validate = true;<br />
foreach(Textbox txt in this.Controls)<br />
{if(txt.Text = "") validate = false;}


if(validate) button1.Enabled = true;
That way, if any one of them is false, then your button doesn't get enabled. I'm sure there's a better way to do it though...



Your bullshit is so effusive I can smell it across oceans...
You impress no-one. You are a world-class sleazeball; an incomparable jerk. No-one is fooled by your idiotic attempts to slant votes.
-A. N. Onymous on Bill SerGio

GeneralRe: Event triger Pin
leppie19-Sep-02 5:47
leppie19-Sep-02 5:47 
GeneralRe: Event triger Pin
D Shen19-Sep-02 8:17
D Shen19-Sep-02 8:17 
GeneralRe: Event triger Pin
leppie19-Sep-02 8:37
leppie19-Sep-02 8:37 
GeneralDataBound WebControl Pin
Shaun Wilde19-Sep-02 1:21
Shaun Wilde19-Sep-02 1:21 
GeneralRe: DataBound WebControl Pin
James T. Johnson19-Sep-02 1:36
James T. Johnson19-Sep-02 1:36 
GeneralRe: DataBound WebControl Pin
Shaun Wilde19-Sep-02 1:48
Shaun Wilde19-Sep-02 1:48 
GeneralRe: DataBound WebControl Pin
James T. Johnson19-Sep-02 2:01
James T. Johnson19-Sep-02 2:01 
GeneralRe: DataBound WebControl Pin
Shaun Wilde19-Sep-02 2:26
Shaun Wilde19-Sep-02 2:26 
GeneralRe: DataBound WebControl Pin
Shaun Wilde19-Sep-02 11:09
Shaun Wilde19-Sep-02 11:09 
GeneralBeginner C# questions Pin
vivosh197818-Sep-02 22:55
vivosh197818-Sep-02 22:55 
GeneralRe: Beginner C# questions Pin
leppie18-Sep-02 23:38
leppie18-Sep-02 23:38 
GeneralRe: Beginner C# questions Pin
James T. Johnson19-Sep-02 0:06
James T. Johnson19-Sep-02 0:06 
GeneralRe: Beginner C# questions Pin
leppie19-Sep-02 0:31
leppie19-Sep-02 0:31 
GeneralDataGrid Pin
vikramlinux18-Sep-02 18:03
vikramlinux18-Sep-02 18:03 
GeneralHanging web request Pin
afronaut18-Sep-02 13:23
afronaut18-Sep-02 13:23 
GeneralRe: Hanging web request Pin
Paul Riley18-Sep-02 13:31
Paul Riley18-Sep-02 13:31 
GeneralRe: Hanging web request Pin
afronaut18-Sep-02 13:32
afronaut18-Sep-02 13:32 

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.