473,320 Members | 1,580 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Form focus problem

Tom
How to obtain information if the current form is now focused?
Nov 17 '05 #1
4 5947
Hi,

You can get the active form of the app using Form.ActiveForm

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Tom" <to**************@absysco.pl> wrote in message
news:dd**********@nemesis.news.tpi.pl...
How to obtain information if the current form is now focused?

Nov 17 '05 #2
Tom,

Check

http://msdn.microsoft.com/library/de...eformtopic.asp

Regards - Octavio

"Tom" <to**************@absysco.pl> escribió en el mensaje
news:dd**********@nemesis.news.tpi.pl...
How to obtain information if the current form is now focused?

Nov 17 '05 #3

Tom wrote:
How to obtain information if the current form is now focused?


I'm not entirely sure what you are asking.

If you mean when a form is FIRST brought up, Form_Load will do that.

If you mean when a form becomes visible for whatever reason, the
VisibleChanged event will be fired.

Another alternative is the Enter event, which will be fired when the
mouse enters the form area.

Matt

Nov 17 '05 #4
You could subscribe to the GotFocus event which will be fired when form
receives focus. However, the MSDN documentation suggests using the Activated
event instead.

Hope this helps.

Brian Delahunty
Ireland

http://briandela.com/blog
"Tom" wrote:
How to obtain information if the current form is now focused?

Nov 17 '05 #5

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

Similar topics

3
by: Hans Karman | last post by:
I have a form (giving details of a person) and a subform (giving details of the person's assets). A search in the form for a particular name using the Find dialog box finds the wanted person. The...
4
by: Johannes Kiehl | last post by:
Hi group, I've been losing most of my remaining hair today, trying to track down a problem with IE6.0 (builds: .2600 and XP SP 2). I set the border-width of form input fields to 1px via...
2
by: shajeel | last post by:
Hi, i m having a problem getting the focus on the form, i m starting two form one after another, here is the sequence. first is splash second is dialog taking values main() { Start new...
1
by: prabuinet | last post by:
hi, I added a form as a control on another form. After adding i want the embedded form to have focus. I tried all combinations but its not working.. Do any one know how to do this. ...
1
by: Werner Schmidt | last post by:
Dear group, I have a very strange behaviour: In a loop there are several TextBoxes initialized: TextBox objTextBox = null; // one declaration for-loop // multiple initialisations
0
by: rahulsubramanyam | last post by:
Hi All, I have an application written in c#. A Windows form in it has many controls which goes beyod the viewable area of the form. So I have enabled auto scroll property of the form. The...
5
by: LamSoft | last post by:
I've got some problem on some form submit problem. In a master page, there is a form tag with the "runat=server" attribute, and a ID called "myForm". In the contentPlaceHolder under that...
3
by: Amritha.Datta | last post by:
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
1
by: Amritha.Datta | last post by:
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
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.