Simple Button

  • Thread starter Thread starter Rodrigo Ferreira
  • Start date Start date
Rodrigo,

I know I don't. I mean, it's a button. How much more functionality do
you really need in a button than the ability to be clicked =)

What are you trying to do?
 
The problem is that!!

I have a textbox in my project and one simple button.

In the validating event of the textbox i want:

If the lenght of the the text into the textbox is different of zero then
the focus can't leave textbox (e.cancel = true)
Else the focus can leave the textbox

The problem is:

If i use the simple button, the event Click of this runs. And if i use
the basic button of Windows Forms the event Click doesn't occurs, that is
what i want!

Why Simple button do that?


Nicholas Paldino said:
Rodrigo,

I know I don't. I mean, it's a button. How much more functionality do
you really need in a button than the ability to be clicked =)

What are you trying to do?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Rodrigo Ferreira said:
Anyone uses the simple button component from DevExpress?
 
Rodrigo,

I don't know why the simple button would fire the click event in the
validate event of the textbox. It would seem to be a bug to me.

You can always click on the button yourself if you wanted, if that is
the behavior that you want.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Rodrigo Ferreira said:
The problem is that!!

I have a textbox in my project and one simple button.

In the validating event of the textbox i want:

If the lenght of the the text into the textbox is different of zero
then
the focus can't leave textbox (e.cancel = true)
Else the focus can leave the textbox

The problem is:

If i use the simple button, the event Click of this runs. And if i use
the basic button of Windows Forms the event Click doesn't occurs, that is
what i want!

Why Simple button do that?


Nicholas Paldino said:
Rodrigo,

I know I don't. I mean, it's a button. How much more functionality
do you really need in a button than the ability to be clicked =)

What are you trying to do?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Rodrigo Ferreira said:
Anyone uses the simple button component from DevExpress?
 
Ok... Thanks!!!!

Nicholas Paldino said:
Rodrigo,

I don't know why the simple button would fire the click event in the
validate event of the textbox. It would seem to be a bug to me.

You can always click on the button yourself if you wanted, if that is
the behavior that you want.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Rodrigo Ferreira said:
The problem is that!!

I have a textbox in my project and one simple button.

In the validating event of the textbox i want:

If the lenght of the the text into the textbox is different of zero
then
the focus can't leave textbox (e.cancel = true)
Else the focus can leave the textbox

The problem is:

If i use the simple button, the event Click of this runs. And if i use
the basic button of Windows Forms the event Click doesn't occurs, that is
what i want!

Why Simple button do that?


Nicholas Paldino said:
Rodrigo,

I know I don't. I mean, it's a button. How much more functionality
do you really need in a button than the ability to be clicked =)

What are you trying to do?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Anyone uses the simple button component from DevExpress?
 
Back
Top