473,803 Members | 3,637 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

keep application on top

175 New Member
In Visual Basic, how do I keep a program that I'm running on top of EVERYTHING? For example, I have an application in Visual Basic that has a GUI, and I want it to stay on top of anything that may open after it.

I searched the internet, found a bunch of things, and NONE of them work. If anyone can help me out I would appreciate it.
May 7 '07 #1
2 2299
Dököll
2,364 Recognized Expert Top Contributor
In Visual Basic, how do I keep a program that I'm running on top of EVERYTHING? For example, I have an application in Visual Basic that has a GUI, and I want it to stay on top of anything that may open after it.

I searched the internet, found a bunch of things, and NONE of them work. If anyone can help me out I would appreciate it.
Greetings, manontheedge!

If I read correctly, it sounds like all you need to do is to make the other forms disappear:

ThisForm.Visibl e = False

ThatForm.Visibl e = True

Dököll
May 8 '07 #2
SammyB
807 Recognized Expert Contributor
In Visual Basic, how do I keep a program that I'm running on top of EVERYTHING? For example, I have an application in Visual Basic that has a GUI, and I want it to stay on top of anything that may open after it.

I searched the internet, found a bunch of things, and NONE of them work. If anyone can help me out I would appreciate it.
In VB.NET, the form has a TopMost property to do that.
Expand|Select|Wrap|Line Numbers
  1.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  2.         Me.TopMost = True
  3.     End Sub
In VB6 and VBA, you need to use an API call, but I've forgotten what it is. I'll look at my code and post it tomorrow.
May 8 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1549
by: Daylor | last post by:
hi. im devloping application in vb.net/mc++,the application use a dll that using tcp/udp (local). the problem: the firewall (zone alarm pro) is always alerting me about the same port even when i authorize this conncetion. the problem is , the application version number is always changing ,so the firewall always alerting cause is
6
2510
by: al | last post by:
Hi, I have a licence of VS.NET. I have an application (mixed VB/C/Fortran + third party) under VS6. I want to keep developping under Visual 6. How can I do this under .NET. I heard about "CD master"? What is it exactly? Thanks, Alexandre
3
6352
by: Paul | last post by:
Hello, First I want to refer to the problem "WebRequest : execute a button" of a few days ago. The way I solved it, I loose my session, and as a consequence my session variables. I don't want to keep those variables, as an alternative, as ViewState variables because I don't want to transfer to many hidden fields. This is the code I use :
1
2857
by: twscott | last post by:
I will be posting information to another application from my applicatio and redirecting to that application which will load into anothe iteration of IE. The user may spend a significant amount of tim working in that application. I need to keep my session alive whil there is activity in the other application as that application will b sending me return data when its processing is complete. Is there a wa to keep my session active while the...
3
2914
by: Alan Wang | last post by:
Hi there, Once my application gets complicated and complicated. I found it's really hard to keep track of Session value I am using in my asp.net application. I am just wondering if anyone have any experience on how to keep track of session value. Any help it's appreciated. Thanks Alan
0
1689
by: Mike Hoorens | last post by:
Hi there. This looks like a good place to get help with a problem I am having: - We have a c# windows app, which performs an HTTPWebRequest to a IIS box on Internet to retrieve an XML response. - In our test + develop environment this works wonderfully. We have it working through ISA server and also without ISA server. - At our client site however, the application times out. This appears to be caused by Keep Alives.
3
1687
by: patrickbeaudoin | last post by:
Hi, I have some application that use the same library in the gac. All these application use the same xml document. I would like to keep that xml document loaded in memoy and dont have to reload it all the time. Same thing for a XslCompileTransform object. It seems to be recompiles each time I use It... I would like to keep it loaded after it has been loaded once.
5
11226
by: Ryan Liu | last post by:
Hi, Both way works, I'd just ask some experts which way is better? My application creates a log file daily. Now each time when I write a log, I will open the file and append to the end. Ocz, if the file is not exist(e.g. another day), it will creates the file first.
7
7228
by: mail747097 | last post by:
I would like to keep IIS alive on my web site and prevent Application_End from occuring in global.asax. Any ideas?
6
4031
by: TheSteph | last post by:
Hi, (using C#, VS2005, .NET 2.0.) I sometimes need to access my database (SQL Server) in SINGLE_USER mode.
0
9564
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10548
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...
1
10295
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
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...
1
7604
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
5500
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
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
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
2
3798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.