473,398 Members | 2,120 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,398 software developers and data experts.

Focus Topmost form Only

Hi,

Please bare with me as I'm starting to learn. Basically I have a mainform
which get created upon program startup, and an Aboutbox form that shows
itself when user click on the 'About' button. I can get the Aboutbox to show
and appear topmost by calling corresponding functions, but what I want to do
is:

when the aboutbox get opened, user would NOT be able to interact with the
mainform until the aboutbox get closed?
Sep 30 '07 #1
2 2006
Hi,

Have you used FormAbout...ShowDialog()?

Regards, Alex
[TechBlog] http://devkids.blogspot.com
Hi,

Please bare with me as I'm starting to learn. Basically I have a
mainform which get created upon program startup, and an Aboutbox form
that shows itself when user click on the 'About' button. I can get the
Aboutbox to show and appear topmost by calling corresponding
functions, but what I want to do is:

when the aboutbox get opened, user would NOT be able to interact with
the mainform until the aboutbox get closed?

Sep 30 '07 #2
That works perfectly, Thanks!

"Alex Meleta" wrote:
Hi,

Have you used FormAbout...ShowDialog()?

Regards, Alex
[TechBlog] http://devkids.blogspot.com
Hi,

Please bare with me as I'm starting to learn. Basically I have a
mainform which get created upon program startup, and an Aboutbox form
that shows itself when user click on the 'About' button. I can get the
Aboutbox to show and appear topmost by calling corresponding
functions, but what I want to do is:

when the aboutbox get opened, user would NOT be able to interact with
the mainform until the aboutbox get closed?


Sep 30 '07 #3

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

Similar topics

2
by: Mystery Man | last post by:
We have an MDI application that is not setting always setting focus to the newly corrected MDI. It is creating the form and it is the topmost but it does not have focus. The code we are using to...
2
by: Mark Ingram | last post by:
Hi, ive just had to make a Find dialog for an application and to get it in a similar style to the MS ones i have had to set the control style to TopMost so that i can move the caret around...
2
by: Robert Misiak | last post by:
Is it possible to display a window on top without it stealing focus? (and I'm not talking about stealing focus from my application - I'm talking about it stealing focus from any application.) ...
2
by: Claire | last post by:
I need my communication status window to be topmost when it's open/active. Ive set the TopMost property of the form to true and it does work ok. After performing tasks this window generates an...
12
by: E Goforth | last post by:
Hello, I have a VB6 app that calls a VB.NET app via named pipes and a third party component. Inside the VB.NET app I'm trying to force a form to the top, at least temporarily. Inside a form's...
1
by: DomGo | last post by:
Hi, I try to open a form, that automatically loses focus to the window, that had the focus immediatly before the new form has been opened. The new form is topmost and displays a message only for...
4
by: Tom | last post by:
Another question relating to focus: Is it possible to set the focus to another program's window and send it keystrokes, YET still keep my VB program in the foreground (i.e. showing on the screen)?...
0
by: hzgt9b | last post by:
Using VB .NET 2003, I am having problems with a windows application that I have written: Here's the situation. The application I created has a main form that has its TopMost property set to True...
1
by: Luke R | last post by:
How do i do this? I have this at the top of the class for my form, but it doesnt work. Protected Overrides ReadOnly Property ShowWithoutActivation() As Boolean Get Return True End Get End...
1
by: dotnutshell | last post by:
I need to work out wether my windows form has focus of the mouse and keyboard. My project is the following: 2 or more applications. 1 application is a controller talking to some hardware The...
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...
0
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.