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

Window Size in Runtime

I am just new to vb.net. I used to program in vb 6. Can you kindly
indicate how I can maximise a form window to full in runtime. I think
this is a standard thing to design controls.

If this is not available then I have to drag the corners to try and
match the size for designing and setting up the controls. Altough
ticking the option "Maximised" for the field WindowState, this doesn't
have an effect in runtime and therefore controls can't be set up
correctly.

Can you kindly indicate what is the issue?

Thanks
Jansen

Oct 19 '06 #1
4 4461
This is done through the window state property.

Me.WindowState = FormWindowState.Maximized
--
Thiele Enterprises - The Power Is In Your Hands Now!
<ta*********@hotmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
>I am just new to vb.net. I used to program in vb 6. Can you kindly
indicate how I can maximise a form window to full in runtime. I think
this is a standard thing to design controls.

If this is not available then I have to drag the corners to try and
match the size for designing and setting up the controls. Altough
ticking the option "Maximised" for the field WindowState, this doesn't
have an effect in runtime and therefore controls can't be set up
correctly.

Can you kindly indicate what is the issue?

Thanks
Jansen

Oct 19 '06 #2
Malige thanks,

However this doesn't change the formwindow size to maximized in
runtime. It only maximise the window when the code is compiled.

Thanks
Jansen
Maligui wrote:
This is done through the window state property.

Me.WindowState = FormWindowState.Maximized
--
Thiele Enterprises - The Power Is In Your Hands Now!
<ta*********@hotmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
I am just new to vb.net. I used to program in vb 6. Can you kindly
indicate how I can maximise a form window to full in runtime. I think
this is a standard thing to design controls.

If this is not available then I have to drag the corners to try and
match the size for designing and setting up the controls. Altough
ticking the option "Maximised" for the field WindowState, this doesn't
have an effect in runtime and therefore controls can't be set up
correctly.

Can you kindly indicate what is the issue?

Thanks
Jansen
Oct 20 '06 #3
Did you use this in a procedure?

e.g. I places a button on the form. I then double clicked the button to
create the handler clause.

then I placed this code.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.WindowState = FormWindowState.Maximized
End Sub

You can also place it in the Form_Load procedure, and many other places.
Does this help?
--
Thiele Enterprises - The Power Is In Your Hands Now!

--
<ta*********@hotmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
Malige thanks,

However this doesn't change the formwindow size to maximized in
runtime. It only maximise the window when the code is compiled.

Thanks
Jansen
Maligui wrote:
This is done through the window state property.

Me.WindowState = FormWindowState.Maximized
--
Thiele Enterprises - The Power Is In Your Hands Now!
<ta*********@hotmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
I am just new to vb.net. I used to program in vb 6. Can you kindly
indicate how I can maximise a form window to full in runtime. I think
this is a standard thing to design controls.

If this is not available then I have to drag the corners to try and
match the size for designing and setting up the controls. Altough
ticking the option "Maximised" for the field WindowState, this doesn't
have an effect in runtime and therefore controls can't be set up
correctly.

Can you kindly indicate what is the issue?

Thanks
Jansen

Oct 20 '06 #4
However this doesn't change the formwindow size to maximized in
runtime. It only maximise the window when the code is compiled.
This is a bit confusing. What do you mean that it maximizes the window when
the code is compiled? No code is running when you compile, only when you run
it. And runtime is when the app is running, i.e. when you press F5.
WindowState property should work just fine in that case. If it doesn't then
please provide a sample reproducing the error.

Design time is when the app is not running, i.e. when you're designing it.
WindowState doesn't have any effect in design time

From the sound of it I'm guessing that you mean it works when you run the
application, but you want to maximize it during design time so you can
layout your controls on the design surface? Unfortunately I don't think
there is a way to do that. You will have to drag the corners to the size you
want.

/claes
Oct 20 '06 #5

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

Similar topics

1
by: DraguVaso | last post by:
Hi, My application has some interaction with an other application. I sometimes need to put the other application to the front. The problem is that I'm not able to get a nice solution to work in...
2
by: dfreas | last post by:
I'm using Bloodshed Dev-C++ to write a program used to calculate orders for my business. Until recently a command line program has been sufficient but it is beginning to become cumbersome so I've...
9
by: Max | last post by:
Hello, Using VB.NET, I can activate an application by entering: AppActivate(intProcessID), where intProcessID is the process ID of a running application. Is it possible to set the size and...
6
by: Glenn | last post by:
I can determine if another instance is running, but how do I get it's minimized window to restore (in VBNET). Using the standard win32 functions is not working. Thanks
16
by: MLH | last post by:
If I give someone a runtime app, they can open the database window by pressing the F-11 key. How to prevent???
3
by: Anupama | last post by:
Is it possible that first I make my window resizable,than if window is less than a fixed size I can make my window not resizable?Better to say can I change resizable feature during runtime?If...
3
by: garyusenet | last post by:
I have a programme written in C++, the programme is unmanaged and is an executable, i don't have any source code. I'm writing a C# program. I want to (a) start the programme minimized. (b) send...
7
by: John Fox | last post by:
Dear All, How do I set the size of the window that is showing the database forms? can't find any helps on it. John Fox
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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?
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...

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.