how to make the windows app in vs 2008 unresizable?because when you launch the application and point and drag to its corners, the window grows.
Change the FormBorderStyle to a fixed one, depends what look you want. Here's a full list of options, you probably want Fixed3D or FixedSingle
You also probably want to set MaximizeBox to false.
Both of these can be found in the designer as options on the form, or set in code, whichever you prefer.
Take a look on the properties of the window control in the properties window. You'll probably figure out how to do this + how to control few more staff about the window..
Change the ResizeMode property of the window.
Related
I have such a question, can I remove 'HeaderBar'? I want to use WebKit and make my own controllers.
Perhaps it can be done like that via CssProvider?
Screen
Solution - window.set_decorated(false);
What you are trying to 'remove' its not the 'HeaderBar', its the window decoration. Gtk.HeaderBar its a different thing. Window decoration is dependable of the window manager as stated in the documentation:
By default, windows are decorated with a title bar, resize controls,
etc.
Some window managers allow GTK+ to disable these decorations, creating
a borderless window. If you set the decorated property to false using
this function, GTK+ will do its best to convince the window manager
not to decorate the window. Depending on the system, this function may
not have any effect when called on a window that is already visible,
so you should call it before calling show.
On Windows, this function always works, since there’s no window
manager policy involved.
Although you got the right method to disable the window decoration (Gtk.Window set_decorated(bool)) these clarifications are needed.
For example Version Control tool window. I never use it. I use version control support, but not this tool window itself. How can I remove it from tool window bar?
I've found a plugin to hide certain tool windows
https://plugins.jetbrains.com/plugin/?id=1489
If you don't need to actually hide the button, but just don't want it in the way while looking for the buttons you do use regularly, you can always drag it to some side of the screen that you don't often use. (I rarely use the bottom-right, so I could move some things there.) That way, you don't see them when picking a tab, but you can still get to it if you need to. (And every once in a while, I suspect you may really want to look at that Version Control view.)
I have a windows form in my vb.net application which has recently started resizing itself dependant on the computers screen resolution.
I would like the form to be a fixed width and height - how can i make it do this and not resize itself?
You may try to change the property AutoScaleMode.
The default is FONT (the correct to most different systems DPI), but you may try other options there.
UPDATE
I saw now you may set the PROPERTIES of a file in the DESKTOP to "Deactivate Dimmension in High-DPI Settings" (it´s translated from Portuguese, my system). Click in the desktop application´s properties (its icon) and go to COMPATIBILITY TAB.
It´s not a .NET solution but if Windows had put it there, is because it´s possible the only way to set it.
Is there a reason / fix for this weird designer issue (at least, I think it's related to the designer), whereby the controls on the form do not appear as they do in the design window when I debug the application..!
Please see the following two screenshots to demonstrate the problem (note: I have blacked out some of the content of the form, this is not the problem):
Picture 1: Showing how the form appears in the designer view
Picture 2: Showing how the form appears in debug mode
You can clearly see that some of the buttons have moved position on the form.
Note: At first glance, this may appear like a duplicate of: Windows Forms Designer destroys form layout. However, I have not installed any additional tools or components. This is simply a standard "vanilla" build of Visual Studio 2012 on Windows 7 32-bit.
I've also come across this question: UI Controls Overlapping & Fonts Issue in Windows Forms Application. However, I am not using "large fonts", nor am I using any non-standard fonts on my controls (all label and button text is left as default). Still, I can see how this would affect the control positions and will do some more checks in this area.
There's nothing happening within the form's Load method.
I'm also using TFS 2012.
What could be causing this? Is there anything I can do to fix it?
EDIT: I've removed the font property for each label and button control, allowing the system to set the default value. Still no change. Interestingly, if I open the form in design mode, then save it, then close it, then open it again, the buttons have moved... If I do this a few times, the buttons migrate until they're off the form.
OK, I've found the answer, after a bit more fiddling. It seems to be related to the Anchor property on the controls. I made a bunch of changes, testing between each change to see if there was any difference. When I selected all the controls and set the Anchor property to Top, Left, this solved the issue.
I hope this helps someone else at some point!
Where can I find alternative button controls for vb.net Winform?
Not sure what you mean since you can just choose the font so that it's any size you want and I've not seen anyone else mention this problem so I'm not sure if anyone will have written any specific controls for it. However, if you want to customize the look other options would be to override the OnPaint and draw it yourself or create an image that contains the text and show that image instead of the text.
Vendors that offer button controls with more options than standard WinForms:
infragistics.com
telerik.com
devexpress.com
I'd recommend downloading trial versions and see if you can make their controls do what you are failing to accomplish with the built in button control
Or, you could create an image that shows the text you want and attach it to the button instead of text. This is not as ideal as if you can find a small readable font though!
A little bit late but it could be useful for other:
http://namtuk.com/mycommandbutton_DOTNET.aspx
It supports a lot of button style like Office 2010, Windows 8 Metro, ...