472,956 Members | 2,649 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,956 software developers and data experts.

form.focus() event

Can some one tell me which event will be fired when we say
form.focus() in C# .NET 2008?

I tried Activated, Load and Enter. But it did not fire.

Please let me know.

THanks
Aug 26 '08 #1
3 3940
Try GotFocus.

--
Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972
<Am***********@gmail.comwrote in message
news:f0**********************************@d45g2000 hsc.googlegroups.com...
Can some one tell me which event will be fired when we say
form.focus() in C# .NET 2008?

I tried Activated, Load and Enter. But it did not fire.

Please let me know.

THanks

Aug 26 '08 #2
There is no GotFocus or related even in C# VS.NET 2008. Any help
please?

THanks

On Aug 26, 4:32*pm, "Phil Wilson"
<phil.wil...@wonderware.something.comwrote:
Try GotFocus.

--
Phil Wilson
Definitive Guide to Windows Installerhttp://www.apress.com/book/view/1590592972

<Amritha.Da...@gmail.comwrote in message

news:f0**********************************@d45g2000 hsc.googlegroups.com...
Can some one tell me which event will be fired when we say
form.focus() in C# .NET 2008?
I tried Activated, Load and Enter. But it did not fire.
Please let me know.
THanks
Aug 26 '08 #3
Making the assumption that your reference to a form means you have a Windows
Forms form class, it's this:

http://msdn.microsoft.com/en-us/libr...us(VS.80).aspx

If this is not what you need then supply more detail about what you're
trying to do.

--
Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972
<Am***********@gmail.comwrote in message
news:fd**********************************@m36g2000 hse.googlegroups.com...
There is no GotFocus or related even in C# VS.NET 2008. Any help
please?

THanks

On Aug 26, 4:32 pm, "Phil Wilson"
<phil.wil...@wonderware.something.comwrote:
Try GotFocus.

--
Phil Wilson
Definitive Guide to Windows
Installerhttp://www.apress.com/book/view/1590592972

<Amritha.Da...@gmail.comwrote in message

news:f0**********************************@d45g2000 hsc.googlegroups.com...
Can some one tell me which event will be fired when we say
form.focus() in C# .NET 2008?
I tried Activated, Load and Enter. But it did not fire.
Please let me know.
THanks

Aug 29 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Steve | last post by:
I have a form with about 25 fields. In the BeforeUpdate event of the form, I have code that sets the default value of each field to its current value. For a new record, I can put the focus in any...
13
by: Manuel Lopez | last post by:
I have a puzzling form timer problem that I didn't experience prior to Access 2003 (though I'm not sure access 2003 is to blame). Here's the situation: a computer has two access 2003 databases on...
17
by: Neil Ginsberg | last post by:
OK, this is a stupid thing, but I can't seem to get this to work. I have a form with a subform (in continuous form view). A combo box on the main form has code in the AfterUpdate event which adds a...
8
by: Zlatko Matić | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
2
by: Vinny | last post by:
I'm writing a small ASP program which prompts the user for data. I would like to interactively validate the data as they are entering it, rather than waiting until they submit the form. So, I am...
2
by: Vinny | last post by:
A customer wants me to convert a VB app I wrote for them into a web app for remote users to do data entry. So, I'm writing a small ASP program which prompts the user for data, much like a VB...
4
by: Steve | last post by:
I would like to write a routine that will monitor every focus change on the form and report the name of the control that got focus. I know I could put code in the gotfocus event of every control...
7
by: Pygmalion | last post by:
Hello experts, I want to use Form_Keydown event in my program. However, it turns out that one of the form controls is always in focus, so Form_Keydown event is never invoked. I tried to set...
11
by: Zytan | last post by:
I have created a new form from the main form. When I close the main form with the 'x' close button, its Form.FormClosed event is run, but not the dialog's. Is this normal? It is ok /...
2
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...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.