473,795 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4484
This is done through the window state property.

Me.WindowState = FormWindowState .Maximized
--
Thiele Enterprises - The Power Is In Your Hands Now!
<ta*********@ho tmail.comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.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*********@ho tmail.comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.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(B yVal sender As System.Object, ByVal e As
System.EventArg s) 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*********@ho tmail.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.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*********@ho tmail.comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.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
16074
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 every case. I tryed two ways: one way it disn't maximazi the Windowd when it was Minimized, in the other way it resized the application when it was maximzed. First I take a Handle to the other Window with the...
2
2374
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 switched to writing a windows program and am learning the API as I go. If I use a term wrong correct me - my experience in windows programming is limited, I do however understand C++ fairly well as I've been using it for about four years. I...
9
3484
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 location of the application window?
6
2303
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
6272
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
2013
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 possible,than how?
3
3613
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 keystrokes to the programme, and mouse strokes. Can you please tell me how I would do this assuming the programme is called "c:\programme.exe"
7
32120
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
0
9673
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9522
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10217
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10003
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7544
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6784
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.