move one picturebox inside another
move one picturebox inside another
move one picturebox inside another
move one picturebox inside another
move one picturebox inside another
move one picturebox inside another move one picturebox inside another move one picturebox inside another move one picturebox inside another move one picturebox inside another move one picturebox inside another move one picturebox inside another move one picturebox inside another
move one picturebox inside another move one picturebox inside another
move one picturebox inside another
Go Back  Xtreme Visual Basic Talk > > > move one picturebox inside another


Reply
 
Thread Tools Display Modes
  #1  
Old 01-02-2018, 10:43 AM
starmanMike starmanMike is offline
Junior Contributor
 
Join Date: Oct 2005
Location: near Norwich, UK
Posts: 310
Default move one picturebox inside another


Hi, This is very similar to a question I raised earlier (VB6) for which you provided an excellent answer - but this time the coding is different (vb.net!) even though the problem is exactly the same.
I have one picbox (pic2) 'inside' another (pic1) and I need the user to be able to drag pic2 with the mouse. The image loaded into pic2 is always bigger than its container (pic1) which is why I need users to be able to drag it in order to see the Region Of Interest.
At the moment, the image loads into pic2 (full-size, OK so far!) and I have managed to drag it using code adapted from Passel's solution to my VB6 problem but if I drag it too far to the top left, everything in the bottom right disappears! I have attached a quick diagram which I hop will make things clearer.
Attached Images
File Type: gif image schema.gif (17.4 KB, 2 views)
Reply With Quote
Reply

Tags
drag, pic2, inside, pic1, image, vb6, moment, loads, region, managed, full-size, quick, attached, disappears, diagram, hop, clearer, bottom, solution, passels, adapted, left, top, code, mouse


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
move one picturebox inside another
move one picturebox inside another
move one picturebox inside another move one picturebox inside another
move one picturebox inside another
move one picturebox inside another
move one picturebox inside another move one picturebox inside another move one picturebox inside another move one picturebox inside another move one picturebox inside another move one picturebox inside another move one picturebox inside another
move one picturebox inside another
move one picturebox inside another
 
move one picturebox inside another
move one picturebox inside another
 
-->