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.
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
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. - Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
-
Me.TopMost = True
-
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.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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
|
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
|
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 :
|
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...
|
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
| |
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.
|
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.
|
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.
|
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?
|
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.
|
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,...
| |
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...
|
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,...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |