Hi! Just wanted to know if it was possible to make a "windowshade" mode (i.e. shrink the window to only show the title-bar, not the rest of the form) in VB.NET. Thanks in advance!
maybe, something like that. I'm not sure off the top of my head if the title height is included or if the form is capable of height's smaller the the header.
If you only allow the title bar, how will the user be able to do anything, like get back to the previous form or the main form??? I'm just curious.
What you can do is set up a dummy form, without controls, with a height of 0 and call this form from whatever form you want to make as small as possible. You just need a way to navigate between forms. By this I mean if the second (or any other form for that matter) is so small that the only thing visible is the title bar, how does the user do anything???
OK I guess I should explain a little better what I'm trying to do. I want to make an RSS news reader that will display in the title bar the news from the RSS file(s). This works. Now I only want to show the title bar as I don't need to show any controls (the configuration will be made through a "notify icon" context menu). The main reason why I want to keep the "default" title bar instead of making a new one is to take advantage of the themes of WinXP. I have a MacOS X theme that looks really neat and I don't want to use a nasty grey (or any other color for that matter)-coloured label as a title bar. Hope I made things a little clearer
Here is an article that describes how to add an additional button to the titlebar. I realize that you said you are going to only use the default title bar, but with this example it would be possible to read the current theme settings and use those to construct the custom button. Hope you or someone else finds this useful.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.