473,503 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Resizing code

Has anyone seen any generic code to re-size controls on a form when the
form resizes, not simply stretching them per ADH or Peters Software, but
using the width and height properties to actually see more information? I'm
thinking primarily of lists and contuous subforms here. I have never seen
much point simply making the form and it's controls bigger. But code that
could dynamically change the height and width of a list box, together with
the adjusting the column widths property as the form resizes would be very
useful, and I dont think too difficult, even for someone of my limited VB
coding skills. Just wondered if anyone already has such a thing before I go
off and write my own.
Nov 13 '05 #1
2 1566
John Winterbottom wrote:
Has anyone seen any generic code to re-size controls on a form when the
form resizes, not simply stretching them per ADH or Peters Software, but
using the width and height properties to actually see more information? I'm
thinking primarily of lists and contuous subforms here. I have never seen
much point simply making the form and it's controls bigger. But code that
could dynamically change the height and width of a list box, together with
the adjusting the column widths property as the form resizes would be very
useful, and I dont think too difficult, even for someone of my limited VB
coding skills. Just wondered if anyone already has such a thing before I go
off and write my own.


I usually modify the ADH code to look for somthing in the tag, then say
for listboxes, resize it but don't resize the fonts, for subforms,
resize the subform control but not the form itself, etc.

--
Error reading sig - A)bort R)etry I)nfluence with large hammer
Nov 13 '05 #2
"Trevor Best" <nospam@localhost> wrote in message
news:40**********************@auth.uk.news.easynet .net...
John Winterbottom wrote:
Has anyone seen any generic code to re-size controls on a form when the
form resizes, not simply stretching them per ADH or Peters Software, but
using the width and height properties to actually see more information? I'm thinking primarily of lists and contuous subforms here. I have never seen much point simply making the form and it's controls bigger. But code that could dynamically change the height and width of a list box, together with the adjusting the column widths property as the form resizes would be very useful, and I dont think too difficult, even for someone of my limited VB coding skills. Just wondered if anyone already has such a thing before I go off and write my own.


I usually modify the ADH code to look for somthing in the tag, then say
for listboxes, resize it but don't resize the fonts, for subforms,
resize the subform control but not the form itself, etc.


Thanks Trevor - this will work? I had no idea. I will abandon my pathetic
attempts at writing a resize class and go and dig out my ADH code samples..

Nov 13 '05 #3

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

Similar topics

9
5035
by: lawrence | last post by:
Can someone please tell me where I can get some open source code for resizing images? I know such code has been written a million times and I don't feel like doing it again from scratch.
1
10934
by: Gord | last post by:
Hello, Anybody know how to detect when a user drags between columns in a MSHFlexGrid when resizing column width? (Short of setting up a timer event that continuously monitors column width.)...
10
2288
by: riki | last post by:
Hi, i have a big problem...i'm using one jscript for resizing of all of my pics in popUp...in main html i'm having many little pics and clicking on them they open in popUp and resize to larger...
0
2616
by: TJ Talluto | last post by:
<facts> I have a "month calendar" that always displays exactly 42 days... and alongside is a vertical box that displays the detail (form fields) of any particular select event that appears on the...
12
6693
by: Søren Reinke | last post by:
Hi there I have a little problem. How do i make sure that a graph is not redrawn while the form with the graph is being resized ? I have tried to add a mouse up/down event handler on the...
11
17804
by: Sharon | last post by:
I'm writing a new control derived from UserControl. I need to get an event when the control is done resizing. I tried the Resize, SizeChanged, Move and the Layout events and I also tried to...
13
4377
by: bgraphics2031 | last post by:
I'm trying to get this iframe to dynamically resize by dragging a vertical bar, but it's not working in Mozilla (It originally worked in IE but I've been trying to port it over). Any help will be...
6
4523
by: JDeats | last post by:
I have a WinForms based application written for the .NET Framework 2.0 and in this application I need to be able to be able to take some action in code when the user finishes resizing the form. ...
9
5267
by: dli07 | last post by:
Hello, I'm trying to convert a piece of code that creates a dynamic vertical resizing bar in a table from internet explorer to firefox. It's based on a post from...
10
7038
by: mishrarajesh44 | last post by:
hii all, I am facing a problem currently.. i have a script for image uploading and resizing.. the image uploading takes place properly for every size images.. but, the resizing works for...
0
7202
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
7084
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
7328
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...
1
6991
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
7458
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...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3167
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...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
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 ...

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.