473,785 Members | 2,372 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 10451
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
8952
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
2183
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
1007
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
1062
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
2418
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
7819
by: Boki | last post by:
Dear All, What is the different between Enter and GotFocus events? Best reagrds, Boki.
2
8064
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
13881
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
1072
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
9480
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
10315
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...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10085
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,...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
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
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5379
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...
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.