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

WinForm Resize

Hi, I have a really heavy view, it load a lot of objects, and I it most be
sizable.

When I resize de window by dragging it's border it is very slow to rearrange
the objects in order to be all in the right place.

I would like to know if it's possible to make a solution like we drag the
border, but in spite of the window move along the mouse, it would appear a
kind-of-rubberband and when I release that rubberband the window do the
resize to that position...

I'm sorry for my bad english I hope that you have understood what I wanted...

some code snippets would be usefull

Thanks a Lot
Nov 17 '05 #1
2 4243
Hi Diogo,
I do not know how to do the rubber band effect you want, but try to use
dowuble buffering on your form and see if it offers any improvement of the
visual redraw when you resize the form.

You can use double buffering by adding the following to your form
constructor, after the call to InitializeComponents:

this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint |
ControlStyles.AllPaintingInWmPaint, true);
this.UpdateStyles();

Hope that helps
Mark R. Dawson

"Diogo Alves - Software Developer" wrote:
Hi, I have a really heavy view, it load a lot of objects, and I it most be
sizable.

When I resize de window by dragging it's border it is very slow to rearrange
the objects in order to be all in the right place.

I would like to know if it's possible to make a solution like we drag the
border, but in spite of the window move along the mouse, it would appear a
kind-of-rubberband and when I release that rubberband the window do the
resize to that position...

I'm sorry for my bad english I hope that you have understood what I wanted...

some code snippets would be usefull

Thanks a Lot

Nov 17 '05 #2
Sorry it didnt work I had already did that.... Guess I'm really stuck with
this issue
Anyone else has any Ideia?

"Mark R. Dawson" wrote:
Hi Diogo,
I do not know how to do the rubber band effect you want, but try to use
dowuble buffering on your form and see if it offers any improvement of the
visual redraw when you resize the form.

You can use double buffering by adding the following to your form
constructor, after the call to InitializeComponents:

this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint |
ControlStyles.AllPaintingInWmPaint, true);
this.UpdateStyles();

Hope that helps
Mark R. Dawson

"Diogo Alves - Software Developer" wrote:
Hi, I have a really heavy view, it load a lot of objects, and I it most be
sizable.

When I resize de window by dragging it's border it is very slow to rearrange
the objects in order to be all in the right place.

I would like to know if it's possible to make a solution like we drag the
border, but in spite of the window move along the mouse, it would appear a
kind-of-rubberband and when I release that rubberband the window do the
resize to that position...

I'm sorry for my bad english I hope that you have understood what I wanted...

some code snippets would be usefull

Thanks a Lot

Nov 17 '05 #3

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

Similar topics

1
by: Yongseung Kim | last post by:
Hi, I would like to describe as clear as I can(sorry my english is quite limited) 1. I made a project with vb.net on english XP Pro (The project has a winform with several general controls...
0
by: Diogo Alves - Software Developer | last post by:
Hi, I have a really heavy view, it load a lot of objects, and I it most be sizable. When I resize de window by dragging it's border it is very slow to rearrange the objects in order to be all in...
0
by: nospam | last post by:
Does anyone know what would cause controls on a C# WinForm to resize when the form is saved. Buttons, panels, textboxes are all resizing themselves whenever I do a save for some inexplicable reason?
7
by: jozsi | last post by:
hi i developed my application for window resolution 1280*1024 now i have a remote maschine using a window resolution of 1024*768 is there a easy way to scale alle the object in the form? ...
3
by: Vish | last post by:
Hello, I am passing a string to a spell checking function which performs spell check using word objects. It works fine but even though i have said oWord.Visible = false; the word application...
4
by: Frank Rizzo | last post by:
Hello, I have a form that contains the Browser control (via interop, of course) among other things. The browser control is in a Panel control. When I add other controls (such as splitter and some...
3
by: Sharon | last post by:
On VS 2003 I have on a form textbox and 3 buttons , the buttons are aligned and keep the same line , I want the Gui to keep the same ratio when resizing the form Say 90% textbox and 10%...
0
by: Gardner | last post by:
I am having some problems with localizing my project to support multiple languages. It got really messy, and finally I created a small sample project that clerifies the problem's source, but I...
5
by: lamxing | last post by:
Hi, I've come across a strange problem with the WinForm's sizing. I've designed a WinForm and it runs fine on my computer and some other PCs. But when I was trying to run the app under some PCs...
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
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...
0
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,...

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.