|
-
Jan 21st, 2020, 05:29 AM
#1
Make message box topmost
i have an app that has no UI, no forms at all, but sometimes presents a messagebox
sometimes the messagebox present over the top of all windows (desired effect)
but most times is just in the taskbar
suggestions for best method to always get the desired effect
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Jan 21st, 2020, 06:45 AM
#2
Re: Make message box topmost
http://www.vbforums.com/showthread.p...-Always-on-Top
Msgbox "Hello Vb-World!", vbSystemModal + vbExclamation, "From Matt"
vbSystemModal should do that...I think 
There is also an API solution in the link,
Please remember next time...elections matter!
-
Jan 21st, 2020, 03:11 PM
#3
Re: Make message box topmost
thank you, so easy, i'm embarrassed i needed to ask
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Jan 22nd, 2020, 06:56 AM
#4
Re: Make message box topmost
 Originally Posted by westconn1
thank you, so easy, i'm embarrassed i needed to ask
Your lucky the "why didn't you look it up yourself" - "you need to develop web searching skills" police here didn't attack you. It appears they mainly go after new posters
Please remember next time...elections matter!
-
Apr 26th, 2026, 07:15 AM
#5
New Member
Re: Make message box topmost
 Originally Posted by TysonLPrice
Your lucky the "why didn't you look it up yourself" - "you need to develop web searching skills" police here didn't attack you. It appears they mainly go after new posters 
-
Apr 27th, 2026, 12:09 PM
#6
Re: Make message box topmost
https://github.com/yereverluvinunclebert
Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.
By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|