473,396 Members | 1,840 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,396 software developers and data experts.

FormBorderStyle

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 maximise button and the minimise button?
2. how do i make the window sizeable?

can someone help?

--
Alvo von Cossel I of Germany
Nov 17 '05 #1
2 3307
If you're keeping the form square then just turn off ControlBox and set Text
to "". Then, so long as the FormBorderStyle is set to sizable, the form will
still be sizable.

For the Maximize button use:
this.WindowState = FormWindowState.Maximized;
If you're shaping the form then maybe this example will help.
http://dotnetrix.co.uk/misc.html --> An example of a moveable/resizable
shaped form.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Alvo von Cossel I" <Al************@discussions.microsoft.com> wrote in
message news:31**********************************@microsof t.com...
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 maximise button and the minimise button?
2. how do i make the window sizeable?

can someone help?

--
Alvo von Cossel I of Germany

Nov 17 '05 #2
hi,

thanks mick

--
Alvo von Cossel I of Germany
"Mick Doherty" wrote:
If you're keeping the form square then just turn off ControlBox and set Text
to "". Then, so long as the FormBorderStyle is set to sizable, the form will
still be sizable.

For the Maximize button use:
this.WindowState = FormWindowState.Maximized;
If you're shaping the form then maybe this example will help.
http://dotnetrix.co.uk/misc.html --> An example of a moveable/resizable
shaped form.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Alvo von Cossel I" <Al************@discussions.microsoft.com> wrote in
message news:31**********************************@microsof t.com...
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 maximise button and the minimise button?
2. how do i make the window sizeable?

can someone help?

--
Alvo von Cossel I of Germany


Nov 17 '05 #3

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

Similar topics

0
by: Geir Holme | last post by:
Hi all. We do have a little anoying problem with forms and FormBorderStyle.Maximized. We opens Form1 with FormBorderstyle = FixedDialog. We hides it and opens Form2 with FormBorderStyle =...
4
by: Kristofer Gafvert | last post by:
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...
4
by: harrylmh | last post by:
Hi, I've really been struggling with this. How do I make a form resizable with FormBorderStyle = None? I've had problems trying to get the form to start resizing by following the mouse...
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...
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 =...
0
by: Mark R. Dawson | last post by:
Hi all, I have an application and in the main form I set the FormBorderStyle to none so that the usre does not see the title bar / maximize / minimize controls etc. This is how I want to app to...
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...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.