473,770 Members | 2,630 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strange Appearance When Using FormBorderStyle =SizableToolWin dow

TC
I have a form which I'd like to display as a sizable dialog box. The
behavior I get when I use FormBorderStyle = SizableToolWind ow is
perfect. However, when I use that option, the title bar of my form
gets much smaller. The discrepancy really stands out, and looks like a
bug.

I anticipate that someone will tell me that the different title bar is
intentional -- that showing a different title bar is Windows' way of
visually distinguishing between normal forms and tool windows. If that
is true, however, then I can find no other example of this alternative
style. I've looked at a dozen dialog boxes -- like the Open File
dialog, the Display Properties dialog, the Folder Properties dialog,
etc. -- and they all look normal. Only my VB.NET form with
FormBorderStyle = SizableToolWind ow exhibits an unusual appearance.

My guess is that NET is ignoring my Windows appearance settings when
it generates tool windows, and that's why they look different from
other forms, which follow the settings. If that is true, then this is
a bug.

Has anyone else experienced this problem? More to the point, can
anyone suggest a workaround?

-TC
Aug 7 '08 #1
3 3598
>I anticipate that someone will tell me that the different title bar is
intentional -- that showing a different title bar is Windows' way of
visually distinguishing between normal forms and tool windows. If that
is true, however, then I can find no other example of this alternative
style. I've looked at a dozen dialog boxes -- like the Open File
dialog, the Display Properties dialog, the Folder Properties dialog,
etc. -- and they all look normal. Only my VB.NET form with
FormBorderStyl e = SizableToolWind ow exhibits an unusual appearance.
But they are dialogs, not tool windows.

You have plenty of examples of tool windows in the Visual Studio IDE,
and they all have the smaller title bar.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Aug 7 '08 #2
On Aug 6, 11:40*pm, TC <golemdan...@ya hoo.comwrote:
I have a form which I'd like to display as a sizable dialog box. The
behavior I get when I use FormBorderStyle = SizableToolWind ow is
perfect. However, when I use that option, the title bar of my form
gets much smaller. The discrepancy really stands out, and looks like a
bug.

I anticipate that someone will tell me that the different title bar is
intentional -- that showing a different title bar is Windows' way of
visually distinguishing between normal forms and tool windows. If that
is true, however, then I can find no other example of this alternative
style. I've looked at a dozen dialog boxes -- like the Open File
dialog, the Display Properties dialog, the Folder Properties dialog,
etc. -- and they all look normal. Only my VB.NET form with
FormBorderStyle = SizableToolWind ow exhibits an unusual appearance.

My guess is that NET is ignoring my Windows appearance settings when
it generates tool windows, and that's why they look different from
other forms, which follow the settings. If that is true, then this is
a bug.

Has anyone else experienced this problem? More to the point, can
anyone suggest a workaround?

-TC
No bug at all, a "Tool Window" is a window with a much smaller header.
They're not nearly as common in the Windows word as they used to be,
but they look exactly like they're supposed to.

I guess I'm wondering why you don't just use a regular form as they
are sizable as well?

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Aug 7 '08 #3
TC
On Aug 7, 4:09 am, rowe_newsgroups <rowe_em...@yah oo.comwrote:
On Aug 6, 11:40 pm, TC <golemdan...@ya hoo.comwrote:
I have a form which I'd like to display as a sizable dialog box. The
behavior I get when I use FormBorderStyle = SizableToolWind ow is
perfect. However, when I use that option, the title bar of my form
gets much smaller. The discrepancy really stands out, and looks like a
bug.
I anticipate that someone will tell me that the different title bar is
intentional -- that showing a different title bar is Windows' way of
visually distinguishing between normal forms and tool windows. If that
is true, however, then I can find no other example of this alternative
style. I've looked at a dozen dialog boxes -- like the Open File
dialog, the Display Properties dialog, the Folder Properties dialog,
etc. -- and they all look normal. Only my VB.NET form with
FormBorderStyle = SizableToolWind ow exhibits an unusual appearance.
My guess is that NET is ignoring my Windows appearance settings when
it generates tool windows, and that's why they look different from
other forms, which follow the settings. If that is true, then this is
a bug.
Has anyone else experienced this problem? More to the point, can
anyone suggest a workaround?
-TC

No bug at all, a "Tool Window" is a window with a much smaller header.
They're not nearly as common in the Windows word as they used to be,
but they look exactly like they're supposed to.

I guess I'm wondering why you don't just use a regular form as they
are sizable as well?

Thanks,

Seth Rowe [MVP]http://sethrowe.blogsp ot.com/
You guys are right. Tool windows are rare, but I did find a couple of
them: The Find and Replace window and the Pending Checkins window have
the same appearance as my VB.NET form. On that evidence, it appears
that the small title bar is the appropriate behavior.

I now know that SizableToolWind ow is inappropriate for my form. I
reverted to a regular form, and I was able to get the exact behavior I
want.

The reason I was using SizableToolWind ow in the first place was
because I misunderstood how forms work. When my dialog is active, I
don't want it to appear in the Alt-Tab list. I was having trouble
making it do that. In the Visual Studio documentation, the only
reference I could find to removing a dialog from the Alt-Tab list
involved using SizableToolWind ow. Also, I did a web search and found
that other people who had trouble removing forms from the Alt-Tab list
were advised to use SizableToolWind ow. That is bad advice. I now know
that my dialog was appearing in the Alt-Tab list because, in my test
program, it had no parent form. I rewrote my test program, and I now
see that SizableToolWind ow was never required in the first place.

Thanks for the help.

-TC
Aug 7 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2492
by: Dale | last post by:
I'm using the NotifyIcon component on a form within a Windows application that will normally show no interface. NotifyIcon does add an icon as required to the notification area of the Task Bar. Unfortunately the window is showing up in the little window that is displayed when user uses Alt-Tab to switch applications. How do I make this application not show up in the Alt-Tab window? Thanks.
0
1062
by: Bob | last post by:
Hi, I have struggled w/ this and can't get it to work. No examples found so far work for me. I have an app (source included) that connects to a sql server and reads (for this post) a zipcode from the pubs..authors table. If the zip code is greater then the user specified max threshold the RangeCheck column background will turn red and display "AboveRange". After compiling (using form1.cs, form2.cs and form3.cs below) the simplified...
2
2205
by: Steve Teeples | last post by:
I want to create some tool windows like you see in the VS IDE. I created a form and set the FormBorderStyle to "SizableToolWindow". However, after several vain attempts I don't know how to proceed correctly from there. I'd like this form to dock within another form just as it does in the IDE. Does someone know how this is done? -- Steve
5
1336
by: Smoke | last post by:
I have been asking this for so long and i wasnt able to find a solution yet. The problem is that i have a program with ShowInTaskBar=False and i cant hide the program from ALT+TAB, so, when u switch programs with alt+tab you always see the icon of my program, but even worst it dont show the correct icon, it show a default one I really need to find a way so it never show on the alt+tab list of programs, is there a such way? The main problem...
4
1707
by: Dalibor Savanovic | last post by:
How to put app po "sleep" in system tray (place with system clock)? Thanks, Dalibor
2
1646
by: Martijn Mulder | last post by:
I want to implement a tiny window in my application, one that you typically invoke via the menu-option Window -Toolbar. It must be floating, not restricted to the client area of the controlling form. It has a tiny close-button on the right-hand corner. How do I implement this?
2
1446
by: Ruben van Engelenburg | last post by:
Hi all, Is there a way to set the height of the caption bar of a form? I know I can retrieve the height using the SystemInformation class, but I'd like to change it too to make it smaller. The only options I seem to have is changing the border style to remove the whole caption bar, but that's not exactly what I want. Thanks in advance for any leads. Best regards,
5
2007
by: Vibhesh | last post by:
I am facing problem with TimeSpan structure when DirectX is used. Following is the sample code that causes the problem: *************************************************************************************************************** { ........................... PrintTimeSpanProblem(); device = new Device(0, DeviceType.Hardware, this, CreateFlags.SoftwareVertexProcessing, presentParams); PrintTimeSpanProblem();
4
6169
by: active | last post by:
There are at least the following border styles: None FixedSingle Sizable
0
9602
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9439
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10237
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10071
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9882
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5326
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3987
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.