简体   繁体   中英

vb.net : change windows “top” of the screen

I have an application (menu bar) that, when running, puts itself at the top of my screen and everything else that loads, automatically knows to load below that menu bar. Its like the program established a new "top" of the screen and that top starts right below the menu bar. I want to duplicate this functionality in vb.net. Does anyone know how to accomplish this?

Basically, I'm looking for something to tell windows the top of the screen starts below my program. I hope that makes sense.

Thanks.

Check out the following project by Arik Poznanski

http://www.codeproject.com/Articles/3728/C-does-Shell-Part-3

Take this code, compile, and add it to your project as a reference. Then in the form load

Me.Edge = AppBarEdges.Top   'sets the form to dock at the top of the screen

This sets it to the top of the screen with everything else below.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM