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

How to resize controls at runtime in VB.NET

Hi

I have an application in VB.NET,in that application one
form contains listbox(on the leftside of the form)and
datagrid control(on the rightside of the form).Both
controls displays data at runtime,i want to see the data
of both controls by resizing according to my
convinence.How can i resize those controls at runtime.If
any one help me thanks in advance.
Mamatha
Nov 21 '05 #1
1 7150

"Mamatha" <ma***********@yahoo.com> wrote
Hi

I have an application in VB.NET,in that application one
form contains listbox(on the leftside of the form)and
datagrid control(on the rightside of the form).Both
controls displays data at runtime,i want to see the data
of both controls by resizing according to my
convinence.How can i resize those controls at runtime.If
any one help me thanks in advance.


If they take up the entire client area, then you can get it done
real easy, but you have to do it in order:

1. Dock the listbox to the left side (Dock property)
2. Add a Splitter control (if you haven't already) and dock that
to the left side.
3. Set the Dock property of the datagrid to Fill.

HTH
LFS
Nov 21 '05 #2

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

Similar topics

0
by: Kevin L | last post by:
Is there a way to allow a user to Resize Panel controls on a form at RunTime using the mouse?
1
by: Mamatha | last post by:
Hi I have an application in VB.NET,in that application one form contains listbox(on the leftside of the form)and datagrid control(on the rightside of the form).Both controls displays data at...
1
by: Rohan | last post by:
Hi There, Is it possible to rotate or resize pictureboxes, labels, textboxes at runtime? And I even wanted to make textbox and label controls Transperent ?
4
by: helpful sql | last post by:
Hi, Are there any cool controls that would allow me to automatically resize and repositions controls on my form when the form is resized at runtime? Thanks in advance.
2
by: james | last post by:
As part of my app I am programatically adding some Label controls to a form at runtime. The code for these is part of a function that is overrriding the Paint event of the form. The other stuff...
11
by: Newbie Coder | last post by:
Hi All VB.NET 2003 Can anyone tell me how to stop a user control being able to be resized during both design time & run time, please? I am looking for something like the LOCKED property,...
7
by: Ray Cassick | last post by:
Does anyone here have any code that shows how to resize a control at runtime with the mouse like you can do in the designer? The method has to change depending on what corner of the control you are...
4
by: Russ Green | last post by:
I have a VB.NET app that uses lots of forms which I am loading into a panel cotrol using..... Me.pnlMain.Controls.Clear() frm.TopLevel = False frm.WindowState = FormWindowState.Maximized...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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
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
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...

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.