Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Gurus*
Posted
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.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Posted

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

Posted

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...

 

:)

Software bugs are impossible to detect by anybody except the end user.
Posted

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

  • 10 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...