Hi guys, I was trying to use the Click, GotFocus and
LostFocus events for a textbox in VB.net but I couldn't
find them in the events list like VB, where can I find
them..!!?
Thanks 10 1380
select the textbox in the left combo above your code and the events will be
in the right combo above your code
Private Sub txtTotMin_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles txtTotMin.Click
End Sub
Private Sub txtTotMin_GotFocus(ByVal sender As Object, ByVal e As
System.EventArgs) Handles txtTotMin.GotFocus
End Sub
Private Sub txtTotMin_LostFocus(ByVal sender As Object, ByVal e As
System.EventArgs) Handles txtTotMin.LostFocus
End Sub
hope it helps
eric
"Rochdi" <an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl... Hi guys, I was trying to use the Click, GotFocus and LostFocus events for a textbox in VB.net but I couldn't find them in the events list like VB, where can I find them..!!?
Thanks
* "Rochdi" <an*******@discussions.microsoft.com> scripsit: Hi guys, I was trying to use the Click, GotFocus and LostFocus events for a textbox in VB.net but I couldn't find them in the events list like VB, where can I find them..!!?
You can show advanced members in the code editor with the "Hide advanced
members" option under "Tools" -> "Options" -> "Text Editor" -> "Basic"
-> "General".
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
I've tried that, but I couldn't found them; in VB they are
very clear but vb.net I couldn't found them.
And I've tried to Tick and untick the "Hide advanced
members" option under "Tools" -> "Options" -> "Text
Editor" -> "Basic"-> "General", but it didn't work
either...!!!! -----Original Message----- select the textbox in the left combo above your code and
the events will bein the right combo above your code
Private Sub txtTotMin_Click(ByVal sender As Object,
ByVal e AsSystem.EventArgs) Handles txtTotMin.Click
End Sub
Private Sub txtTotMin_GotFocus(ByVal sender As
Object, ByVal e AsSystem.EventArgs) Handles txtTotMin.GotFocus
End Sub
Private Sub txtTotMin_LostFocus(ByVal sender As
Object, ByVal e AsSystem.EventArgs) Handles txtTotMin.LostFocus
End Sub
hope it helps
eric
"Rochdi" <an*******@discussions.microsoft.com> wrote in
messagenews:04****************************@phx.gbl... Hi guys, I was trying to use the Click, GotFocus and LostFocus events for a textbox in VB.net but I couldn't find them in the events list like VB, where can I find them..!!?
Thanks
.
Hi Rochdi,
We start trying to find them again I am sure Eric is not looking at the
weekend.
The are only visible if there is a code page visible.
Then direct above the code (so not in a form) you see 2 comboboxen.
There is nothing written with it, but they are direct under the tabs of the
tabcontrol.
Left you can choise the control, the form itself is frmxxxx events
Right you can choise an event, the behaviour is as far as I remember me than
the same as VB6.
I hope this helps to find it?
Cor I've tried that, but I couldn't found them; in VB they are very clear but vb.net I couldn't found them. And I've tried to Tick and untick the "Hide advanced members" option under "Tools" -> "Options" -> "Text Editor" -> "Basic"-> "General", but it didn't work
I don't what version are you using guys, but I am using
Visual Studio .Net 2002 (the complete version), and I will
describe for you what I am seeing in the code page; in the
left combo the controls(form1, textbox1...etc) and in the
right combo the word Declaration, and for the textbox1 I
couldn't find the Click (not DoubleClick), GotFocus,
LostFocus like in VB6, so what I'm missing here..!!!? -----Original Message----- Hi Rochdi,
We start trying to find them again I am sure Eric is not
looking at theweekend.
The are only visible if there is a code page visible. Then direct above the code (so not in a form) you see 2
comboboxen.There is nothing written with it, but they are direct
under the tabs of thetabcontrol.
Left you can choise the control, the form itself is
frmxxxx events Right you can choise an event, the behaviour is as far as
I remember me thanthe same as VB6.
I hope this helps to find it?
Cor
I've tried that, but I couldn't found them; in VB they
are very clear but vb.net I couldn't found them. And I've tried to Tick and untick the "Hide advanced members" option under "Tools" -> "Options" -> "Text Editor" -> "Basic"-> "General", but it didn't work
.
Hi Rochdi,
Are you making your controls dynamicly, than you have to declare them with
events something as (Private withevents as textbox) to see them
When you drag them on your form (what most people in simple situations do)
they are there automaticly, because then that is done for you.
I hope I got it now?
Cor I don't what version are you using guys, but I am using Visual Studio .Net 2002 (the complete version), and I will describe for you what I am seeing in the code page; in the left combo the controls(form1, textbox1...etc) and in the right combo the word Declaration, and for the textbox1 I couldn't find the Click (not DoubleClick), GotFocus, LostFocus like in VB6, so what I'm missing here..!!!?
* "Rochdi" <an*******@discussions.microsoft.com> scripsit: I don't what version are you using guys, but I am using Visual Studio .Net 2002 (the complete version), and I will describe for you what I am seeing in the code page; in the left combo the controls(form1, textbox1...etc) and in the right combo the word Declaration, and for the textbox1 I couldn't find the Click (not DoubleClick), GotFocus, LostFocus like in VB6, so what I'm missing here..!!!?
And what if you add the handlers by hand by typing in the code?
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
I don't know what you mean by making them dynamically, but
all what I'm doing is exactly like I use to do in VB:
- start a new project.
- click and drag a textbox control in the form.
- go to the code page.
- select the textbox control from the left combo.
and in the right combo there are may events, but I can't
find some events such as Click, GotFocus, LostFocus like
VB
and when I created one just by typing the following:
Private Sub TextBox1_Click(ByVal sender As System.Object,
By e As System.EventArgs) Handlers TextBox1.Click
End Sub
actually it's working!!! -----Original Message----- Hi Rochdi,
Are you making your controls dynamicly, than you have to
declare them withevents something as (Private withevents as textbox) to
see them When you drag them on your form (what most people in
simple situations do)they are there automaticly, because then that is done for
you. I hope I got it now?
Cor
I don't what version are you using guys, but I am using Visual Studio .Net 2002 (the complete version), and I
will describe for you what I am seeing in the code page; in
the left combo the controls(form1, textbox1...etc) and in
the right combo the word Declaration, and for the textbox1 I couldn't find the Click (not DoubleClick), GotFocus, LostFocus like in VB6, so what I'm missing here..!!!?
.
hmm are you sure you are selecting a control in the left cbo first (the
events wont show untill you select the control)
if this is not working there could be something wrong w your options (not
that i know of options to remove events) or w your installation of vs :/
"Rochdi" <an*******@discussions.microsoft.com> wrote in message
news:06****************************@phx.gbl... I don't know what you mean by making them dynamically, but all what I'm doing is exactly like I use to do in VB: - start a new project. - click and drag a textbox control in the form. - go to the code page. - select the textbox control from the left combo. and in the right combo there are may events, but I can't find some events such as Click, GotFocus, LostFocus like VB and when I created one just by typing the following: Private Sub TextBox1_Click(ByVal sender As System.Object, By e As System.EventArgs) Handlers TextBox1.Click
End Sub
actually it's working!!! -----Original Message----- hmm are you sure you are selecting a control in the left
cbo first (theevents wont show untill you select the control)
Yes!
if this is not working there could be something wrong w
your options (notthat i know of options to remove events) or w your
installation of vs :/
Do you know what option should I turn on!!? because I
tried the "Hide advanced members" option under "Tools" - "Options" -> "Text Editor" -> "Basic"-> "General", but
it didn't work!!!
"Rochdi" <an*******@discussions.microsoft.com> wrote in
messagenews:06****************************@phx.gbl... I don't know what you mean by making them dynamically,
but all what I'm doing is exactly like I use to do in VB: - start a new project. - click and drag a textbox control in the form. - go to the code page. - select the textbox control from the left combo. and in the right combo there are may events, but I can't find some events such as Click, GotFocus, LostFocus like VB and when I created one just by typing the following: Private Sub TextBox1_Click(ByVal sender As
System.Object, By e As System.EventArgs) Handlers TextBox1.Click
End Sub
actually it's working!!!
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Philip D Heady |
last post by:
Hi, I'm validating a simple form for input via post ($PHP_SELF). Near the
end I check for username and password. I'm using simple if, elseif, else
statements.
I require them to enter password...
|
by: Csaba2000 |
last post by:
I want to be able to programatically click on the center of an <INPUT type=image ...> element (I only care about IE
5.5+). This should work regardless of whether IE has focus. Normally you would...
|
by: George Hester |
last post by:
In a page I have when the user left-clicks the page a Input box for a form gets the focus. But if the user right-clicks the page the Input box is not getting the focus. I'd like the Input box to...
|
by: KS |
last post by:
I have made a WebForm with log ON/OFF off users.
There is a label that shows the total count off users logged on stored in
Application("UserCount")
It works fine if the users logs out WITH THE...
|
by: Tom |
last post by:
I have a VB .NET application that has a text box with the
following code to handle the leave event.
Private Sub txtIDiscountRate_TextChanged(ByVal sender
As System.Object, ByVal e As...
|
by: holysmokes99 |
last post by:
I have a VB6 winforms application that has a .Net 2.0 user control
(exposed via COM) that I made. No matter what I have tried, once the
user control looses focus, it always requires a double-click...
|
by: kettle |
last post by:
Hi,
I have a simple web page which is composed of a flash audio player
(jwmp3player) and a form with a textarea box. I have noticed some
very odd behaviour which I cannot puzzle out.
If I...
|
by: Joergen Bech |
last post by:
Hope someone has a solution or some suggestions for this.
This cannot be right?!?
Problem:
I have multiple non-modal forms open at the same time.
One or more of these forms have a...
|
by: Xu, Qian |
last post by:
Hello All,
I have some problem by simulating a link click using javascript.
The webpage uses a js-library named interface (jQuery like)
------------------------------
<a id="foo" href="#">Try...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |