Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. vb.net MsgBox: set focus?

vb.net MsgBox: set focus?

Scheduled Pinned Locked Moved Visual Basic
csharpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    ii_noname_ii
    wrote on last edited by
    #1

    Hey, Using message boxes in my vb.net application... But when I test it, some of those MsgBoxs won't appear on top... They will just appear on taskbar and application keeps focus... Does anyone know a way to make sure the MsgBox appears on top, and blocks application until a button is clicked? Thanks in advance... NNM

    D 1 Reply Last reply
    0
    • I ii_noname_ii

      Hey, Using message boxes in my vb.net application... But when I test it, some of those MsgBoxs won't appear on top... They will just appear on taskbar and application keeps focus... Does anyone know a way to make sure the MsgBox appears on top, and blocks application until a button is clicked? Thanks in advance... NNM

      D Offline
      D Offline
      Dave Sexton
      wrote on last edited by
      #2

      Has the form that calls the message box been instantiated with ShowDialog?

      I 1 Reply Last reply
      0
      • D Dave Sexton

        Has the form that calls the message box been instantiated with ShowDialog?

        I Offline
        I Offline
        ii_noname_ii
        wrote on last edited by
        #3

        No... One simple example of how I use it: (sub) (...) If password1.Text <> password2.Text Then 'alert and stop operation: MsgBox("The passwords in the two password fields do not match", 0, "Error") (...) (exit sub)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups