473,385 Members | 1,474 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,385 software developers and data experts.

Controlling focus

Hi --
I have an application where it is very important that i control where
the focus is. Many times the focus gets set to a form that was just
loaded or a form becoming visible or just a form that is sitting there
that is top most. I want to be in complete control of which form has
focus. This means that when i show a new form i don't want the form to
have focus for even a millisecond. I don't want any form or any thing
to have control until i assign it to that form. Does anyone know how i
can do this? Right now the only way i have found to do this is to
impersonate a user clicking the form so that the form gets focus. I
know this is a horrible way of doing this so thats why i need to find
another way.

Thanks for any help.

Dec 30 '05 #1
2 1033
Mutex and process id come to mind, but I hate apps that control the user, so
I won't help... ;)

"Dave" wrote:
Hi --
I have an application where it is very important that i control where
the focus is. Many times the focus gets set to a form that was just
loaded or a form becoming visible or just a form that is sitting there
that is top most. I want to be in complete control of which form has
focus. This means that when i show a new form i don't want the form to
have focus for even a millisecond. I don't want any form or any thing
to have control until i assign it to that form. Does anyone know how i
can do this? Right now the only way i have found to do this is to
impersonate a user clicking the form so that the form gets focus. I
know this is a horrible way of doing this so thats why i need to find
another way.

Thanks for any help.

Dec 30 '05 #2
Thanks. And its for the users own good...;)

Dec 30 '05 #3

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

Similar topics

3
by: Scott M | last post by:
Hi, I am currently trying to write a simple game using vb.net the form I am working on is 800*600 (this is set as the maximum size) and autoscroll is set to true. The user moves around the...
4
by: J. VerSchave | last post by:
I am curious if there is a way to handle this... maybe with Javascript... Is there a way to set a TEXTAREA field so that the tab key on the user's keyboard will create a tab within the text...
22
by: Mark Reginald James | last post by:
Hi, I'm trying to use a keyboard event function to change what element gets the focus after tab is pressed in a particular element. Simple HTML that demonstrates the problem is below. When...
1
by: Robert W. | last post by:
I have a 'Controller' object that manages the interaction between its two children: a Form and a DataObject. I've written specialized code in the Controller to control how the Form updates the...
0
by: Scott M | last post by:
Hi, I am currently trying to write a simple game using vb.net the form I am working on is 800*600 (this is set as the maximum size) and autoscroll is set to true. The user moves around the...
9
by: jcrouse | last post by:
This is rediculous that I can't figure this out. I'm really getting frustrated with VB .NET. Everything seemed so much easier in VB5 and VB6. I'm really getting to feel conciseness about the number...
2
by: genojoe | last post by:
I have a form with an RTF control and I want to use a subform to do "Find and Replace". Beyond that, I want the subForm to always be on Top when the Parent form has focus but have it not be on top...
7
by: Robert | last post by:
I haven't found anything at google sa i post here, hoping someone will help me I have written sth like this: document.form.inputfield.value += 'aaa' document.form.inputfield.focus() these...
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.