Dockable windows

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

Hi,

I was wondering if anyone could point me to info on the best way to create a
dockable window. I have seen plenty of posts about dockable controls that
run within windows but I want the actual main window to dock, probably to
the taskbar.

I'd like it smart enough to adjust position if the taskbar height is
increased or decerased.

Anyway, if anyone has done this using VB.Net and can help me out I'd
appreciate it.

Cheers
 
Hi Bob,

Are you talking about the standard option or are you talking about a special
by you made taskbar or an other one you have?

Cor
 
Standard option? What standard option?

I am talking about creating a single Winform app that looks like a toolbar
but most importantly docks to the taskbar (or side of screen). All examples
i have seen so far are related to docking controls within a Winfor app. I
want to dock the Winfor app itself.

I think it is really just a matter of me figuring out how to determine the
height of the taskbar and then set the top and left properties of the
window.... not sure how do this though...

Cheers
 
Hi Bob,

I do not see this problem, you can locate your form everywhere on the screen
by using the me.location, what is your problem in this?

A problem can be to have it always on top, however there is a lot of
questions been in this newsgroup about dockable toolbars, have a look at
them.

http://tinyurl.com/52uxr

I hope this helps?

Cor
 
* "Bob said:
I was wondering if anyone could point me to info on the best way to create a
dockable window. I have seen plenty of posts about dockable controls that
run within windows but I want the actual main window to dock, probably to
the taskbar.

I'd like it smart enough to adjust position if the taskbar height is
increased or decerased.

Fred Balsinger: A Windows Forms Application Desktop Toolbar
<URL:http://www.gotdotnet.com/userfiles/FredB/AppBars.zip>
 
Go to MSDN and search for AppBar. I believe the sample they give is written
in C++. We converted this sample to C#. Ours is not complete, i.e. only
supports docking to the top of the screen. There are a couple of issues we
did not address, like auto close but I could e-mail you the code as a
starting point.

-B-
 
Back
Top