473,750 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting an application to be on top of other applications

I have an application with an icon that sits in the system tray. When I
double click it the form is maximised, but I want it to sit at the front of
all the other applications that are open. How do I do this? I suspect an API
but maybe in VB2005 there's another way.

-Jerry
Nov 6 '06 #1
4 1032
MyForm.TopMost = True

"Jerry Spence1" <je**********@s omewhere.comwro te in message
news:45******** **************@ ptn-nntp-reader02.plus.n et...
>I have an application with an icon that sits in the system tray. When I
double click it the form is maximised, but I want it to sit at the front of
all the other applications that are open. How do I do this? I suspect an
API but maybe in VB2005 there's another way.

-Jerry

Nov 6 '06 #2
That only gets a form on the top of the other forms within the same
application. I want it to be on top of all the other applications as well -
not hidden behind Word, Excel etc.

-Jerry

"Robinson" <to************ ******@myinboxt oomuchtoooften. comwrote in
message news:ei******** ***********@new s.demon.co.uk.. .
MyForm.TopMost = True

"Jerry Spence1" <je**********@s omewhere.comwro te in message
news:45******** **************@ ptn-nntp-reader02.plus.n et...
>>I have an application with an icon that sits in the system tray. When I
double click it the form is maximised, but I want it to sit at the front
of all the other applications that are open. How do I do this? I suspect
an API but maybe in VB2005 there's another way.

-Jerry


Nov 6 '06 #3


"Jerry Spence1" <je**********@s omewhere.comwro te in message
news:45******** **************@ ptn-nntp-reader02.plus.n et...
That only gets a form on the top of the other forms within the same
application. I want it to be on top of all the other applications as
well - not hidden behind Word, Excel etc.

-Jerry

"Robinson" <to************ ******@myinboxt oomuchtoooften. comwrote in
message news:ei******** ***********@new s.demon.co.uk.. .
>MyForm.TopMo st = True

"Jerry Spence1" <je**********@s omewhere.comwro te in message
news:45******* *************** @ptn-nntp-reader02.plus.n et...
>>>I have an application with an icon that sits in the system tray. When I
double click it the form is maximised, but I want it to sit at the front
of all the other applications that are open. How do I do this? I suspect
an API but maybe in VB2005 there's another way.

-Jerry


Last I checked, the TopMost property places the form on top of all other
non-TopMost forms, regardless of application...

HTH,
Mythran
Nov 6 '06 #4

Hmm - that doesn't seem to be happening. Thanks anyway and I'll check that
I'm doing things right.

-Jerry

"Mythran" <ki********@hot mail.comwrote in message
news:uk******** ******@TK2MSFTN GP03.phx.gbl...
>

"Jerry Spence1" <je**********@s omewhere.comwro te in message
news:45******** **************@ ptn-nntp-reader02.plus.n et...
>That only gets a form on the top of the other forms within the same
application. I want it to be on top of all the other applications as
well - not hidden behind Word, Excel etc.

-Jerry

"Robinson" <to************ ******@myinboxt oomuchtoooften. comwrote in
message news:ei******** ***********@new s.demon.co.uk.. .
>>MyForm.TopMos t = True

"Jerry Spence1" <je**********@s omewhere.comwro te in message
news:45****** *************** *@ptn-nntp-reader02.plus.n et...
I have an application with an icon that sits in the system tray. When I
double click it the form is maximised, but I want it to sit at the front
of all the other applications that are open. How do I do this? I suspect
an API but maybe in VB2005 there's another way.

-Jerry


Last I checked, the TopMost property places the form on top of all other
non-TopMost forms, regardless of application...

HTH,
Mythran


Nov 7 '06 #5

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

Similar topics

2
1696
by: yashgt | last post by:
Hi, We want to develop a client application that can be plugged into hundreds of other applications used by our bank. These applications include browser-driven apps, desktop client apps, etc. Some of these apps run on Windows and others on Linux and Unix. Our client application will be invoked by clicking on a link or a button from within these applications. Our client application will be used for manually entering free form
4
8811
by: David Meier | last post by:
I have an application running in the background, visible only by a notify icon in the system tray. I learned from other posts to catch the WM_QUERYENDSESSION and WM_ENDSESSION messages. Now, when I want to shutdown/restart the computer the application exits but the shutdown process does not continue anymore. Here's what I've done: protected override void WndProc(ref Message m) { // Exit message code. int WM_QUERYENDSESSION = 0x11;
2
2243
by: DancinDom | last post by:
I am primarily a web developer, but I am branching out for this project into the world of Windows Forms. I am looking for any help, examples, samples to show me how to retrieve text from a RichEdit20a (or RichEdit20w) that exists in another application running on the same box. This is the only part of a large project that I am running that is new to me, so I want to get this sorted as soon as possible. Then I can relax and concentrate...
3
1757
by: karl | last post by:
I have several .net applications running on a webserver. I recently installed the patches to the system to stop the worm virus that was going around last week. Since that time I ran into a problem with session state. Prior to this each application was configured to have sessionState, cookieless=false. However for some reason after installing the patches one and only one application began to run into problems with session data not being...
8
10014
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported the following error when attempting to create or open the Web project located at the following URL: 'http://localhost/WebApplication1'. 'HTTP/1.1 500 Internal Server Error'."
2
2115
by: David Hearn | last post by:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. SQLExpress database file auto-creation error: The connection string specifies a local SQL Server Express instance using a...
2
1659
by: | last post by:
Hello, I have an ASP.Net c# web application which contains 4 separate folders, each of these folders contains a default.aspx page, I am pointing several domains to different sections of this asp.net application. the problem is that when I point it to the index page of my applications subdirectory it never finds the bin directory because it is located within the directory above. and therefore give me an appbase error. I'm not sure...
2
2126
by: Khadim | last post by:
Hi, I am having this problem with my application that it is not getting itself in taskbar by itself.. i m working on this application for 5 months, don't know what happened at what time that its not getting in focus. If during startup i bring other applications(like internet browser, explorer or Ms-Word) to the focus, my application just starts up and rests in the background without even showing in the takbar. I have even tried...
35
2214
by: salad | last post by:
I have an application written in MS-Access. It is a complete application that manages the day-to-day operations of a business. The program is nearly ready to be used in other customer sites. I am wondering if any of you have advice on supporting an application. Since it has never had any outside exposure, what I don't want is to make a bunch of sales and not be able to support the issues that arise. I believe as kinks are worked out...
0
9577
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9396
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9256
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8260
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6804
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4713
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3322
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2225
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.