473,847 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 10454
Tools---->Options----->Text Editor---->Basic ----->General. Then uncheck the
box that says Hide Advanced Members

"dudzcom" <an*******@disc ussions.microso ft.com> wrote in message
news:AD******** *************** ***********@mic rosoft.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*******@disc ussions.microso ft.com> wrote in messag
news:AD******** *************** ***********@mic rosoft.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_LostFo cus(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles TextBox1.LostFo cus

End Sub

Have you tried to use the Leave and Enter events of the control?
"dudzcom" <an*******@disc ussions.microso ft.com> wrote in message
news:CF******** *************** ***********@mic rosoft.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*******@disc ussions.microso ft.com> wrote in message
news:AD******** *************** ***********@mic rosoft.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
8956
by: MJW | last post by:
Is there a way for me to know if or which command button was just clicked that triggers the LostFocus event for the current control on a Form? I have a form that has many types of users who each have their own set of fields they can change. Therefore I use setfocus property in the lostfocus event for some of the users to get from one control to another. Since I am "directing traffic" with setfocus, the users are unable to use the...
2
2187
by: Chris LaJoie | last post by:
My app needs to use the LostFocus event on several different controls on a form. Unfortunately, I got done coding it only to find out that none of them ever fire. They are assigned to, and I'm sure I'm doing everything right, but they're not working. Anyone else have this problem/know how to fix it? Chris LaJoie
2
1009
by: Fei Li | last post by:
take TreeView as an example. I could not find GotFocus and LostFocus events in Properties Windows of VS .net 2003. But they are there. Why? Thanks
0
1063
by: jake | last post by:
Without having to code the GotFocus and LostFocus events of every form, as I have many in my application, is there an easier way to capture the action when the user switches my application to foreground or background processing? Your help is greatly appreciated. jake
1
2421
by: avinashraj | last post by:
Hello, I work with a third party control that provides the ability to load within it Winforms controls and providing a multi document interface such as the one in the VS.Net IDE. I find that adding a handler to the user control's got and lost focus works when the user control does not have any other controls hosted on it.
2
7833
by: Boki | last post by:
Dear All, What is the different between Enter and GotFocus events? Best reagrds, Boki.
2
8065
by: Jason Huang | last post by:
Hi, In my .Net 1.1 C# windows form Form1 I have nothing but 2 TextBox controls on the Form1, the T1 and T2. I would like to test the sequence of the GotFocus LostFocus things, so I have the following code on the Form1. this.T1.LostFocus +=new EventHandler(T1_LostFocus); this.T1 .GotFocus +=new EventHandler(T1_GotFocus); this.T2 .LostFocus +=new EventHandler(T2_LostFocus);
1
13893
by: moondaddy | last post by:
I have a c# 3.5 wpf app which uses user controls for data entry screens. These data entry screens can be nested inside of each. We can also have several ones open side by side at the same time. All are in a single window. My challenge is to know when a data entry screen (UC) becomes the active control, and when the active user control looses focus and when the next one gets the focus, and so on. When a user control gets or looses...
0
1074
by: priyamtheone | last post by:
Scenario This is a non-MDI windows application. I have a home form containing a panel named Panel1 and two buttons btnForm1 and btnForm2. Clicking btnForm1 and btnForm2 opens up Form1 and Form2 respectively in Panel1. Before a form is opened in Panel1, all opened forms in Panel1 are cleared. The code follows: Private objForm1 As Form1 Private Sub btnForm1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
0
9887
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9730
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10983
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10707
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7883
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5719
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5911
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4119
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3164
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.