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. How to show a form without taking the focus?

How to show a form without taking the focus?

Scheduled Pinned Locked Moved Visual Basic
questiontutorial
4 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.
  • C Offline
    C Offline
    cylix2000
    wrote on last edited by
    #1

    I have make a form (bollon) just have the same function and appearence of new email arrive in Outlook 2003. It shows very nice, but it take the focus when I show the ballon. How can I show it but without take the focus? Thank you!

    S 1 Reply Last reply
    0
    • C cylix2000

      I have make a form (bollon) just have the same function and appearence of new email arrive in Outlook 2003. It shows very nice, but it take the focus when I show the ballon. How can I show it but without take the focus? Thank you!

      S Offline
      S Offline
      sathish s
      wrote on last edited by
      #2

      Are you using VB.Net? If so, you can use Form.SendToBack() Method Just after Form.Show() Make sure TopMost property of the form is set to false and you dont use Form.ShowDialog()

      C 1 Reply Last reply
      0
      • S sathish s

        Are you using VB.Net? If so, you can use Form.SendToBack() Method Just after Form.Show() Make sure TopMost property of the form is set to false and you dont use Form.ShowDialog()

        C Offline
        C Offline
        cylix2000
        wrote on last edited by
        #3

        Sorry, My situation is, Show the box topmost, but doesn't take the focus from main form.

        S 1 Reply Last reply
        0
        • C cylix2000

          Sorry, My situation is, Show the box topmost, but doesn't take the focus from main form.

          S Offline
          S Offline
          sathish s
          wrote on last edited by
          #4

          Good then, what you can do is

          Dim frmChild As New ChildForm
          fr.Show()
          Me.Activate()

          PS: You can't use ShowDialog

          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