473,387 Members | 1,497 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.

resize handles at runtime

I'm making a graphics heavy program, and I need to allow the user to click
on an image or block of text to select it, drag it around a page, and resize
it if necessary. Rather like the Windows forms designer. I haven't the
slightest idea how best to do the resizing handles, and moving the images
around.

I've been searching and mucking about with inheriting from Control to make a
container for the images and text for a couple days now and not making much
headway. Any ideas how to start, or advice would be great.

TIA

Eric
Nov 15 '05 #1
1 3752
have you seen this article?
http://www.codeproject.com/cs/media/limf.asp

they do a lot of what you are talking about. I found the code
confusing, myself, but it might give you some ideas.

mike

p.s. i'd be curious what you come up with. I've been wanting to add
the functionality of zoom & pan to an image viewer I wrote.
"Eric Eggermann >" <<none> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
I'm making a graphics heavy program, and I need to allow the user to click on an image or block of text to select it, drag it around a page, and resize it if necessary. Rather like the Windows forms designer. I haven't the slightest idea how best to do the resizing handles, and moving the images around.

I've been searching and mucking about with inheriting from Control to make a container for the images and text for a couple days now and not making much headway. Any ideas how to start, or advice would be great.

TIA

Eric

Nov 15 '05 #2

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

Similar topics

3
by: Z D | last post by:
Hello, BACKGROUND: ============== I've created a Windows User Control that contains an Image Control (among other controls). The user control handles the picture resize event. Whenever the...
2
by: Peter Proost | last post by:
Hi group I have the following piece of code that should resize the bitmap in a picture box but it doesn't work as I tought it would. Can someone help me with it? thnx Peter Public Class...
2
by: DraguVaso | last post by:
Hi, I have to DataGrid's on a form, one on the top of my form, the other at the bottom, but they though each other somewhere in the middle. What I want now is that, when I resize the form, they...
5
by: gilgames | last post by:
I am new in VB.Net, I need some help. I want to resize my dialogs dynamically (so that a dialog made for 1280x1024 screens shows properly on 800x640 screen. I make the calculation in the Handles...
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...
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...
4
by: Rob | last post by:
I want to resize the height of a form without resizing the width, therefore I tried: Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Resize ...
2
by: Diogene Laerzio | last post by:
I'd like to allow user to resize a treeview control in a form at runtime. What properties should I set to allow this? Thank you.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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.