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

Keep form on top of everything - even other apps ?

Rob
Is there a way to keep a form on top of everything - even other apps ?
Jan 14 '06 #1
4 2188
> Is there a way to keep a form on top of everything - even other apps ?

TopMost = True

Jan 14 '06 #2
Hello,

I don't think TopMost = True will do it. In most probability it will keep
your form on top of your current app only.

I think there is an API called SetWindowPos that is used for this purpose. I
used it back in good ol' days of VB not Net.

If you look for the SetWindowPos keyword, you can probably find some
examples on the net.

Regards
Cyril
Jan 15 '06 #3
> I don't think TopMost = True will do it. In most probability it will keep
your form on top of your current app only.


It works for me (topmost means on top of all apps) under XP 5.1 SP 2 Build
2600, FW 1.1 SP1. But there is this in the .net help files:

"With the Microsoft Windows 2000 operating system, a top-most form always
stays in front of all windows in a given application. In Microsoft Windows
98, a top-most form stays in front of all windows in all applications. For
example, you may want to keep a floating tool window in front of your
application's main window. The TopMost property controls whether a form is a
top-most form. Note that a top-most form will float above other, non–top-most
forms even when it is not active."
Jan 15 '06 #4
Hmm... That's weird behaviour :)

Well.. I guess for insurance it might be a good idea to use the API. I have
always used it.

Thanks for the tip AMercer, this is something I didn't know

Regards
Cyril
Jan 15 '06 #5

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

Similar topics

8
by: Lisa | last post by:
I have a drop down that defaults to "select" after the page refreshes. How do I keep the selected value in the dropdown field... I've tried EVERYTHING and nothing works! :( <script...
4
by: MrNobody | last post by:
I'd like windows spawned off my by main window to always stay above that main window, even when you give focus to it... how would I do this? The only property I find is one which makes that window...
4
by: Adam Clauss | last post by:
This may be more of a Visual Studio question than a C# question, but it came up within the context of a C# app, so here it is. In a Windows Form or a Web Form application, you can drag various...
0
by: Peter | last post by:
Hello! I am having a strange problem whith the following scenario: I have a html page whith text box and submit button. The form action is aspnet page ant method is post. We have our intranet...
2
by: pv | last post by:
Hi everyone, I need help with following scenario, please: Users are accessing same web server from intranet (users previously authenticated in Active Dir) and from extranet (common public...
4
by: bbdobuddy | last post by:
Hi, How do I open a Microsoft Access 2003 form from Visual Basic.net Thanks in advance bbdobuddy
10
by: morangolds | last post by:
Hi, I've been having a problem with C++ Windows Forms apps not "ending" when you close the form window. I've searched about this problem all over the place and most searches have lead me to...
11
by: cty0000 | last post by:
I have some quiestion... I want to draw line,point,rectangles and etc... on the from So I code like this.. public update() { g = this.CreateGraphics(); g.FillRectangle(Brushes.White, x1,...
10
by: =?Utf-8?B?UmljaA==?= | last post by:
A lot of users at my workplace use different screen resolutions, and I build apps to use 1680 x 1050 pixels res by default. But some users are using 800 x 600, and the apps are too large for their...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
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...
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...

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.