cdoverlaw Posted July 17, 2004 Posted July 17, 2004 I want to dock my program to windows like the longhorn sidebar is docked to side of screen, so how do i do this is visual basic.net Quote
jorge Posted July 17, 2004 Posted July 17, 2004 This is some very basic code, you need to tweak it your self but do: make a new vb.net project place a button on the form and add Me.ShowInTaskbar = False Me.FormBorderStyle = FormBorderStyle.None Me.Width = 200 Me.Height = Screen.PrimaryScreen.WorkingArea.Height Me.Top = 0 Me.Left = Screen.PrimaryScreen.WorkingArea.Width - Me.Width it will doc to the left side of the primary screen. Hope this helps a bit Quote Jorge - http://www.blackdot.be/?page=apache.htm
cdoverlaw Posted July 17, 2004 Author Posted July 17, 2004 ok that helped a bit but then i want the software thats running to be maximised in the remaining space, not to be just behind so its the applications running shud be resized to fit rest of window Quote
jorge Posted July 17, 2004 Posted July 17, 2004 ok that helped a bit but then i want the software thats running to be maximised in the remaining space, not to be just behind so its the applications running shud be resized to fit rest of window To keep it ontop also set me.topmost = true but to make other windows resize around it i have no ideas sry Quote Jorge - http://www.blackdot.be/?page=apache.htm
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.