473,396 Members | 1,766 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.

form resize in vb.net


--
hello

How do you start a form maximized in VB.net So that the form width and
height properties are also set at screen maximum. Just setting the form to
maximise doesnt change the width/height properties of the form.
This I found out is a problem with VB6 and I am guessing the same problem
with vb.net

thanks

Expand AllCollapse All
Nov 21 '05 #1
3 8266

"john andrew" <jo********@discussions.microsoft.com>

--
hello

How do you start a form maximized in VB.net So that the form width and
height properties are also set at screen maximum. Just setting the form to
maximise doesnt change the width/height properties of the form.
This I found out is a problem with VB6 and I am guessing the same problem
with vb.net


Luckily it does not change the width and height of a form when you set the
form to maximum, when that should be they could delete that property.

So I don't understand why you write that this is a problem with VBNet.

You can set the width and height to the screensize or set the windowstate to
maximum. Both seems for me rediculous. Although setting programmaly width
and height always to screensize in my opinion a kind of unwanted UI
behaviour with the exception of first start where it can be done..

http://msdn.microsoft.com/library/de...classtopic.asp

I hope this helps
Cor
Nov 21 '05 #2
"Cor Ligthert" <no************@planet.nl> schrieb:
How do you start a form maximized in VB.net So that the form width and
height properties are also set at screen maximum. Just setting the form
to
maximise doesnt change the width/height properties of the form.
This I found out is a problem with VB6 and I am guessing the same problem
with vb.net


Luckily it does not change the width and height of a form when you set the
form to maximum, when that should be they could delete that property.


That's wrong. The form's 'Height'/'Width'/'Size' properties reflect the
current size of the form, not the size of the form in its normal state.

Save and restore Form position and layout with this component
<URL:http://www.codeproject.com/cs/miscctrl/RealPosition.asp>

Form Placement Component
<URL:http://www.codeproject.com/csharp/Placement.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3
John,

You may want to programatically work with the MaximizedBounds property of
the form.
--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"john andrew" <jo********@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...

--
hello

How do you start a form maximized in VB.net So that the form width and
height properties are also set at screen maximum. Just setting the form to
maximise doesnt change the width/height properties of the form.
This I found out is a problem with VB6 and I am guessing the same problem
with vb.net

thanks

Expand AllCollapse All

Nov 21 '05 #4

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

Similar topics

1
by: Roger | last post by:
Hi All, I have an app where I change the size of the form at run time using controls and I do not want the user to be able to resize the form, I have removed the min and max buttons. I have tried...
11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
1
by: Kent | last post by:
Hi, I have a form which contain 2 panels, Master and Detail, Master panel is on top and Detail panel is at the bottom. In the form, I set Detail panel to Dock to the bottom and Master panel...
0
by: Patrick Lioi | last post by:
We have form that is used as the base class of all of our forms, let's call it BaseApplicationForm. We have another form, say ChildApplicationForm that inherits from BaseApplicationForm. The...
8
by: nirdeshonline | last post by:
Hi, I have added a simple listbox in windows form under c# 2.0. It contains a collection of approx 10 strings as list items. Now when i resize the form whole listbox flickers. Please tell me...
11
by: Ajith Menon | last post by:
I have created a windows application in which the form needs to be resized on the MouseMove event. The windows resize function takes a lot of CPU cycles. And as the resize function is called on the...
2
by: Smitty | last post by:
Did a search & found nothing on this. VB6 did a resize on form load according to what I've read. I Resized screen under vista & now the text box doesn't resize to form's clientarea. Code exists...
1
by: Bob Alston | last post by:
I have a system where many subforms are used. Often the size of the subform had to be larger than could be displayed without scrolling. I set the height of the subform to the typical height...
6
by: Funky | last post by:
Hello! I have a problem. I have to change the size of a control added to a Form when the user resizes the Form. I use the Resize event and change the size of the control in the method which is...
10
by: =?Utf-8?B?UmljaA==?= | last post by:
A lot of users at my workplace use different screen resolutions, and I build apps to use 1680 x 1050 pixels res by default. But some users are using 800 x 600, and the apps are too large for their...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
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...

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.