By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,561 Members | 3,010 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,561 IT Pros & Developers. It's quick & easy.

Click Event

P: n/a
Hi guys, I'm using the VS 2002 version and for a TextBox,
I've selected the Textbox control from the left combo in
the code page and I've seen many events but I couldn't
find the Click, GotFocus or LostFocus events like in VB6,
and if I type the event like:
Private Sub TextBox1_Click(.......)TextBox1.Click
End Sub
it is working!!! So how can I be able to see the Click,
GotFocus or LostFocus events in the right combo box..!!?
Cheers
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
GotFocus and LostFocus have been replaced by Enter and Leave.
"Rochdi" <an*******@discussions.microsoft.com> wrote in message
news:12*****************************@phx.gbl...
Hi guys, I'm using the VS 2002 version and for a TextBox,
I've selected the Textbox control from the left combo in
the code page and I've seen many events but I couldn't
find the Click, GotFocus or LostFocus events like in VB6,
and if I type the event like:
Private Sub TextBox1_Click(.......)TextBox1.Click
End Sub
it is working!!! So how can I be able to see the Click,
GotFocus or LostFocus events in the right combo box..!!?
Cheers

Nov 20 '05 #2

P: n/a
How about click event, because it's working when I've
manually typed the event!!!
-----Original Message-----
GotFocus and LostFocus have been replaced by Enter and Leave.

"Rochdi" <an*******@discussions.microsoft.com> wrote in messagenews:12*****************************@phx.gbl...
Hi guys, I'm using the VS 2002 version and for a TextBox, I've selected the Textbox control from the left combo in
the code page and I've seen many events but I couldn't
find the Click, GotFocus or LostFocus events like in VB6, and if I type the event like:
Private Sub TextBox1_Click(.......)TextBox1.Click
End Sub
it is working!!! So how can I be able to see the Click,
GotFocus or LostFocus events in the right combo box..!!?
Cheers

.

Nov 20 '05 #3

P: n/a
The click event is a base class (TextBoxBase) event. Since you are making
an instance of a textbox, it has the events that it's base class has.

The Object Browser (F2) is a great tool for seeing/finding this kind of
information.

"Rochdi" <an*******@discussions.microsoft.com> wrote in message
news:12*****************************@phx.gbl...
How about click event, because it's working when I've
manually typed the event!!!
-----Original Message-----
GotFocus and LostFocus have been replaced by Enter and

Leave.


"Rochdi" <an*******@discussions.microsoft.com> wrote in

message
news:12*****************************@phx.gbl...
Hi guys, I'm using the VS 2002 version and for a TextBox, I've selected the Textbox control from the left combo in
the code page and I've seen many events but I couldn't
find the Click, GotFocus or LostFocus events like in VB6, and if I type the event like:
Private Sub TextBox1_Click(.......)TextBox1.Click
End Sub
it is working!!! So how can I be able to see the Click,
GotFocus or LostFocus events in the right combo box..!!?
Cheers

.

Nov 20 '05 #4

P: n/a
Cor
Hi Rochdi,

That is one of the base events from every windowforms control, it has to be
in that right combobox.

Or are you maybe using a webform textbox?

Cor
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.