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. help sending a form to bottom

help sending a form to bottom

Scheduled Pinned Locked Moved Visual Basic
jsonhelp
2 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.
  • S Offline
    S Offline
    Stanimir_Stoyanov
    wrote on last edited by
    #1

    i need a function, method, or api with which you can send a form to botton, not to top, so that the form will appear behind all other windows and above the desktop thank you in advance

    F 1 Reply Last reply
    0
    • S Stanimir_Stoyanov

      i need a function, method, or api with which you can send a form to botton, not to top, so that the form will appear behind all other windows and above the desktop thank you in advance

      F Offline
      F Offline
      f64
      wrote on last edited by
      #2

      Hi, From VB you can use ZOrder, MyForm.ZOrder 0 will send the form to the top of the z order MyForm.ZOrder 1 will send it to the bottom of the z order If you are looking for more control, check SetWindowPos API function,

      BOOL SetWindowPos(
      HWND hWnd, // handle to window
      HWND hWndInsertAfter, // placement-order handle
      int X, // horizontal position
      int Y, // vertical position
      int cx, // width
      int cy, // height
      UINT uFlags // window-positioning options
      );

      where hWndInsertAfter is a handle to the window to precede the positioned window in the Z order or one of the following values. HWND_BOTTOM HWND_NOTOPMOST HWND_TOP HWND_TOPMOST Check the MSDN for a detailed explanation. Fabian

      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