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 do i keep on top a currently clicked form in win application. (Vb.net 2005)?

How do i keep on top a currently clicked form in win application. (Vb.net 2005)?

Scheduled Pinned Locked Moved Visual Basic
csharpquestion
4 Posts 3 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.
  • R Offline
    R Offline
    r_mohd
    wrote on last edited by
    #1

    Hi All, I have developed an application in vb.net and it is working fine. pl suggest me how i keep on top a currently clicked form. Thanks

    rmshah Developer

    D 1 Reply Last reply
    0
    • R r_mohd

      Hi All, I have developed an application in vb.net and it is working fine. pl suggest me how i keep on top a currently clicked form. Thanks

      rmshah Developer

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

      You're not very specific in your description or what you tried, so the standard answer to a question like this is setting the form's TopMost property to True.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      P 1 Reply Last reply
      0
      • D Dave Kreskowiak

        You're not very specific in your description or what you tried, so the standard answer to a question like this is setting the form's TopMost property to True.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        P Offline
        P Offline
        Pankaj Garg
        wrote on last edited by
        #3

        Dave, How are you? Sorry for coming back late and interrupting in others thread. If you have some time, Please go through it. The problem is quite descriptive now.[^]

        D 1 Reply Last reply
        0
        • P Pankaj Garg

          Dave, How are you? Sorry for coming back late and interrupting in others thread. If you have some time, Please go through it. The problem is quite descriptive now.[^]

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          DO NOT HIJACK SOMEONE ELSE'S THREAD. There is an overload for the Show and ShowDialog methods that takes a Form object. This is should be the parent form that is going to own the child form. Just pass the parent form in as the parent and it should take care of the problem.

          Dim newForm As New MyNewDialogForm
          newForm.ShowDialog(Me)
          

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          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