468,463 Members | 2,018 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,463 developers. It's quick & easy.

no gotfocus/lostfocus events?

hi, this is the first time i've posted to this board, though i have been a devoted lurker for some time

i have been working in vb.net and run into a couple problems that seem to require solutions involving what was in previous versions of vb, refered to as gotfocus/lostfocus events. however, it seems that though people online refer to them, my vb.net does not have them

just to show i've not lost my mind
http://www.ondotnet.com/pub/a/dotnet...rms.html?page=
this guy's article refers to the System.Windows.Forms.Control class as having .lostfocus and .gotfocus events, however when i did the same in my program, it has none

perhaps i have failed to include something in the project, and perhaps my version is out-of-date. here are my version #s
ide: 7.0.946
..net: 1.0.370

any suggestions are appreciated

Nov 20 '05 #1
4 10169
Tools---->Options----->Text Editor---->Basic ----->General. Then uncheck the
box that says Hide Advanced Members

"dudzcom" <an*******@discussions.microsoft.com> wrote in message
news:AD**********************************@microsof t.com...
hi, this is the first time i've posted to this board, though i have been a devoted lurker for some time.
i have been working in vb.net and run into a couple problems that seem to require solutions involving what was in previous versions of vb, refered to
as gotfocus/lostfocus events. however, it seems that though people online
refer to them, my vb.net does not have them.
just to show i've not lost my mind,
http://www.ondotnet.com/pub/a/dotnet...ms.html?page=3
this guy's article refers to the System.Windows.Forms.Control class as having .lostfocus and .gotfocus events, however when i did the same in my
program, it has none.
perhaps i have failed to include something in the project, and perhaps my version is out-of-date. here are my version #s: ide: 7.0.9466
.net: 1.0.3705

any suggestions are appreciated.

Nov 20 '05 #2
thanks for posting

i uncheckd what you suggested, but it doesnt seem to have done anything. i still do not have any gotfocus/lostfocus events

----- yEaH rIgHt wrote: ----

Tools---->Options----->Text Editor---->Basic ----->General. Then uncheck th
box that says Hide Advanced Member

"dudzcom" <an*******@discussions.microsoft.com> wrote in messag
news:AD**********************************@microsof t.com..
hi, this is the first time i've posted to this board, though i have been devoted lurker for some time
i have been working in vb.net and run into a couple problems that seem t require solutions involving what was in previous versions of vb, refered t
as gotfocus/lostfocus events. however, it seems that though people onlin
refer to them, my vb.net does not have them just to show i've not lost my mind

http://www.ondotnet.com/pub/a/dotnet...rms.html?page=
this guy's article refers to the System.Windows.Forms.Control class a

having .lostfocus and .gotfocus events, however when i did the same in m
program, it has none
perhaps i have failed to include something in the project, and perhaps m

version is out-of-date. here are my version #s ide: 7.0.946
.net: 1.0.370
any suggestions are appreciated

Nov 20 '05 #3
It's not in the dropdown box. Just write your own event handler like this:

Private Sub TextBox1_LostFocus(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles TextBox1.LostFocus

End Sub

Have you tried to use the Leave and Enter events of the control?
"dudzcom" <an*******@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
thanks for posting.

i uncheckd what you suggested, but it doesnt seem to have done anything. i still do not have any gotfocus/lostfocus events.
----- yEaH rIgHt wrote: -----

Tools---->Options----->Text Editor---->Basic ----->General. Then uncheck the box that says Hide Advanced Members

"dudzcom" <an*******@discussions.microsoft.com> wrote in message
news:AD**********************************@microsof t.com...
> hi, this is the first time i've posted to this board, though i have been a
devoted lurker for some time. >> i have been working in vb.net and run into a couple problems that
seem to
require solutions involving what was in previous versions of vb, refered to as gotfocus/lostfocus events. however, it seems that though people online refer to them, my vb.net does not have them. >> just to show i've not lost my mind, > http://www.ondotnet.com/pub/a/dotnet...ms.html?page=3
> this guy's article refers to the System.Windows.Forms.Control class

as having .lostfocus and .gotfocus events, however when i did the same in my program, it has none. >> perhaps i have failed to include something in the project, and
perhaps my version is out-of-date. here are my version #s:
> ide: 7.0.9466
> .net: 1.0.3705
>> any suggestions are appreciated.

>

Nov 20 '05 #4
thank you YR

i just figured that all the possible features would be included in the dropdown. didn't figure that just writing it in would work. thank you. you have helped a great deal.
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Chris LaJoie | last post: by
2 posts views Thread by Fei Li | last post: by
1 post views Thread by avinashraj | last post: by
2 posts views Thread by Boki | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kmladenovski | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.