tihsin Posted September 12, 2003 Posted September 12, 2003 In my application, the user can drag and drop objects from the toolbox to the main working area (just like in Visual Studio). Each of these objects is actually an image that is displayed in the work area using a picturebox. Now I want the use to be able to resize and move these images. How do I make the resize handles visible for this picturebox. I can implement the move using the mouse down events for the picture, but could not find a way to implement the resize part. Thanks, Nish Quote
*Gurus* divil Posted September 12, 2003 *Gurus* Posted September 12, 2003 You have to write all the mouse handling and logic for this yourself. The only help you'll get from the framework is actually drawing the little grab handle boxes and the selection rectangle - check out the methods on the ControlPaint class. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
tihsin Posted September 15, 2003 Author Posted September 15, 2003 UNRESOLVED Thanks Divil ... found the controls on your webpage quite interesting ... will use this info somewhere ... but are you sure there is nothing in .NET that will let me display resize handles at runtime so that i can produce some kind of a controls editor ... Thanks Nish Quote
AlexCode Posted September 15, 2003 Posted September 15, 2003 When I started with .net (beta2) I was developing a application witch was a good idea to have some customizable forms... Then I could drag the control (not an image of it) and give it some methods handles... These object also could be resized but not with mouse. When the user enters in "design mode" a property grid (like the one on VS.net IDE) apear, right docked, and one of the properties is the size, along with border style, backcolor, forecolor... Like this you don't get any head ache and looks real good... :) Quote Software bugs are impossible to detect by anybody except the end user.
tihsin Posted September 17, 2003 Author Posted September 17, 2003 Alex: source code would help ... Hi alex ... i am looking for something like that .. would help if you could send me the source or some ideas of how to do it ... the option divil suggested looks too intimidating at present ... is yours an easier solution ? or do i still have to code everything myself using the Mouse events ? :( Thanks Quote
shawaw Posted August 10, 2004 Posted August 10, 2004 is there any open source project is there any open source project where I can download to see how its done in vb.net or c# Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.