Go Back   CodeCall Programming Forum > Software Development > C# Programming
Register Blogs Search Today's Posts Mark Forums Read

C# Programming C# (pronounced C-sharp) is a new object oriented language from Microsoft and is derived from C and C++. It also borrows a lot of concepts from Java too including garbage collection.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-29-2009, 12:33 PM
Siten0308's Avatar
Programming Professional
 
Join Date: Jun 2008
Location: California, USA
Posts: 283
Siten0308 will become famous soon enough
Question picture viewer zoom and more

Hello,

I am wondering, this is probably easy question but a got a nice hard one for everyone
on with the questions:
1. i have a picture image, i tell it to zoom in using this code below
Code:
pictureBox1.Width += 2;
            pictureBox1.Height += 2;
the only problem is, it makes the picture box zoom in, meaning the picture box gets bigger and bigger covering the form and other objects/controls which makes me laugh a little. my question is, how do i keep the picture box from getting so big and staying the same size while actually zooming in on the picture itself??

2. how do you draw a rectangle around the picture, for example you left click hold it (that would be mousedown event right?) and drag over the picture to display a rectangle around the picture, capturing 4 points (x, y).

Let me know,

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes



All times are GMT -5. The time now is 09:27 AM.


vBulletin v3.8.0 ©2010, Jelsoft Enterprises Ltd.


no new posts

LinkBacks Enabled by vBSEO 3.1.0