Results 1 to 6 of 6

Thread: Make message box topmost

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    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

  2. #2
    Wall Poster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,969

    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!

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    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

  4. #4
    Wall Poster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,969

    Re: Make message box topmost

    Quote Originally Posted by westconn1 View Post
    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!

  5. #5
    New Member
    Join Date
    Nov 2024
    Posts
    10

    Re: Make message box topmost

    Quote Originally Posted by TysonLPrice View Post
    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

  6. #6
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    3,560

    Re: Make message box topmost

    "You are" not "your" :@
    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
  •  



Click Here to Expand Forum to Full Width