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

The Resize Function

What is The Form_Resize Function All About! I am just new to this and want to know exactly where this can be used!

Pls Explain me!
Apr 26 '07 #1
4 1530
In short, its the sub that fires when you resize the form

You could stretch controls or reposition them depending on the real time resize values, or you could move a row of buttons next to another row if there was two rows, goverened ofcourse only if the form has been streched enough
Apr 26 '07 #2
Killer42
8,435 Expert 8TB
What is The Form_Resize Function All About! I am just new to this and want to know exactly where this can be used!
Yes, this is a fairly basic (sorry) concept in VB. It's an event-driven language. So rather than the traditional method of programming which more or less runs from start to finish, you write pieces of code to be executed when particular events happen. For instance, user clicks a button. Or the form (window) is resized, which is your example.

One way to get a better feel for how it works would be to put some code in there to display the form position and size each time it is run. Then try changing the size of your form, and see what happens.
Apr 26 '07 #3
Well i wanna all the forms of my project to be maximized at runtime and when, though i have been able to do this with the code below

Expand|Select|Wrap|Line Numbers
  1. Me.Left = GetSetting(App.Title, "Settings", "MainLeft", 1000)
  2.     Me.Top = GetSetting(App.Title, "Settings", "MainTop", 1000)
  3.     Me.Width = GetSetting(App.Title, "Settings", "MainWidth", 6500)
  4.     Me.Height = GetSetting(App.Title, "Settings", "MainHeight", 6500)
i found that the form is maximized but the form can be dragged with the mouse,
so what i wanna is to disable the option of dragging this form and make it
vbmodal,

how can i do this, Suggestions please!
Apr 27 '07 #4
Killer42
8,435 Expert 8TB
If you want the form maximised, just maximise it. In VB6, you do that by setting the .WindowState property. Not sure how in VB.Net, though.
Apr 27 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

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...
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
8
by: Jason Heyes | last post by:
Does the STL have a function like this one? template <typename T> void remove(std::vector<T> &v, std::vector<T>::size_type index) { std::swap(v, v.back()); v.resize(index); } Unlike...
2
by: mj | last post by:
Hi, I recently have found it necessary to move from fortran to c++ for scientific programming... I'm working on a program that needs to resize a 2d vector of vectors within a function... This...
2
by: daveyand | last post by:
Hey Guys I am able to detect a window resize using the following code: window.onresize = function () { if(document.getElementById("parent_for_video").style.display != "none") {...
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...
3
by: evilmousse | last post by:
my app has some particularly long dropdownlist items. rather than taking up such wide realestate, i'm looking to have the dropdown's width grow upon focus and shrink back on lose focus. however i'm...
3
by: Bram Kuijper | last post by:
Hi all, I am trying to resize a vector of objects (MyObj below), which contain references to other objects (OtherObj, see below). However, apparently somewhere in the resize operation an...
7
by: Anz | last post by:
Can any one know the javascript function to auto resize the swf when resizing its pop up window. I need to auto resize the swf when i resize my popup window in which the swf is displayed. Is...
0
by: msoliver | last post by:
Issue: I want resize handlers within an iframe to be called when the main window changes size. Alternatively, I'd like to know how to propagate a resize event handled by the main window to iframe...
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
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: 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
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
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
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.