473,385 Members | 1,782 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

FormBorderStyle = None, resize window?

What would be the best way to resize a window (form) when FormBorderStyle is
set to None?

--
Regards,
Kristofer Gafvert - IIS MVP
Reply to newsgroup only. Remove NEWS if you must reply by email, but please
do not.
www.ilopia.com - FAQ and Tutorials for Windows Server 2003

Nov 15 '05 #1
4 16223
>What would be the best way to resize a window (form) when FormBorderStyle is
set to None?


Change the border style to a resizable one ;-)

Do you want to resize it programmatically or let the user do it?

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 15 '05 #2
Let the user do it.

No, i cannot change it to a resizable one. I need to take away all space
that i do not use, so the window form is as small as possible.

--
Regards,
Kristofer Gafvert - IIS MVP
Reply to newsgroup only. Remove NEWS if you must reply by email, but please
do not.
www.ilopia.com - FAQ and Tutorials for Windows Server 2003
"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:ej**************@TK2MSFTNGP10.phx.gbl...
What would be the best way to resize a window (form) when FormBorderStyle isset to None?


Change the border style to a resizable one ;-)

Do you want to resize it programmatically or let the user do it?

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Nov 15 '05 #3
To get the affect you want, in the form property window:

FormBorderStyle = Sizable
ControlBox = False
Text = (empty)

Chris R.

"Kristofer Gafvert" <kg******@NEWSilopia.com> wrote in message
news:ec**************@TK2MSFTNGP09.phx.gbl...
What would be the best way to resize a window (form) when FormBorderStyle is set to None?

--
Regards,
Kristofer Gafvert - IIS MVP
Reply to newsgroup only. Remove NEWS if you must reply by email, but please do not.
www.ilopia.com - FAQ and Tutorials for Windows Server 2003

Nov 15 '05 #4
Thanks!

That was alot easier... :-)

I never realized that if the Text property was empty, the title bar was
removed.

--
Regards,
Kristofer Gafvert - IIS MVP
Reply to newsgroup only. Remove NEWS if you must reply by email, but please
do not.
www.ilopia.com - FAQ and Tutorials for Windows Server 2003
"Chris R" <so*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
To get the affect you want, in the form property window:

FormBorderStyle = Sizable
ControlBox = False
Text = (empty)

Chris R.

"Kristofer Gafvert" <kg******@NEWSilopia.com> wrote in message
news:ec**************@TK2MSFTNGP09.phx.gbl...
What would be the best way to resize a window (form) when
FormBorderStyle is
set to None?

--
Regards,
Kristofer Gafvert - IIS MVP
Reply to newsgroup only. Remove NEWS if you must reply by email, but

please
do not.
www.ilopia.com - FAQ and Tutorials for Windows Server 2003


Nov 15 '05 #5

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

Similar topics

0
by: Byron | last post by:
I have an MDI chcild form that has a bitmap background image and has its ForborderStyle set to None. Wen the form is shown the entire form seems to shift down and back up as it comes in. If you...
6
by: David Hayes | last post by:
juglesh <juglesh@nospamRadioKDUG.com> wrote in "Re: how to maximize the browser window that fits the monitor size?" (Saturday, January 01, 2005 3:12 AM): > > >I want to maximize the browser...
2
by: Rafi Zisman | last post by:
Hi I have a problem with menu and FormBorderStyle = None: I opened new C# project and set the property FormBorderStyle = None , And added main menu. When I run the application and on the last...
2
by: Alvo von Cossel I | last post by:
hi, i have an applocation that i want to look modern. the forms border style is set to none but i have a created bar at the top with the maximise buttons etc. 1. what code to i type in for the...
4
by: trint | last post by:
Ok, I received info that this will work as a means of removing the border around a window that I create (which also loads an aspx file) in the firing file (aspx using javascript): OpenWindow =...
2
by: Debbie Carter | last post by:
I have a ShowDialog in the Sub New of my Main form. I want the dialog to show before the main form finishes loading. On my Windows 98 test machines when the dialog shows it is maximized when I have...
5
by: Mark Ingram | last post by:
Hi, ive got a form with FormBorderStyle set to None (i am using custom regions to determine the shape of the form). But i would like to be able to display the standard system menu when the user...
0
by: siemsje | last post by:
I've created an app in win2k with a winform using FormBorderStyle = none. With this setting, the app icon is not displayed in the button in the taskbar when the app is running. If I change the...
3
by: TC | last post by:
I have a form which I'd like to display as a sizable dialog box. The behavior I get when I use FormBorderStyle = SizableToolWindow is perfect. However, when I use that option, the title bar of my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...

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.