Click here to Skip to main content
15,921,174 members
Home / Discussions / C#
   

C#

 
AnswerRe: Write application version and installation path to registry Pin
Peace ON12-Jul-10 22:39
Peace ON12-Jul-10 22:39 
Questionproblem in occurs in win 7 Pin
prasadbuddhika12-Jul-10 20:22
prasadbuddhika12-Jul-10 20:22 
AnswerRe: problem in occurs in win 7 Pin
Corinna John12-Jul-10 21:13
Corinna John12-Jul-10 21:13 
QuestionHow to resize the drwan rectangle when zoomin the image in the picture box? [modified] Pin
Nivas8212-Jul-10 18:21
Nivas8212-Jul-10 18:21 
AnswerRe: How to resize the drwan rectangle when zoomin the image in the picture box? Pin
R. Giskard Reventlov12-Jul-10 21:27
R. Giskard Reventlov12-Jul-10 21:27 
GeneralRe: How to resize the drwan rectangle when zoomin the image in the picture box? Pin
Nivas8212-Jul-10 22:12
Nivas8212-Jul-10 22:12 
GeneralRe: How to resize the drwan rectangle when zoomin the image in the picture box? Pin
PaulPrice12-Jul-10 22:21
PaulPrice12-Jul-10 22:21 
GeneralRe: How to resize the drwan rectangle when zoomin the image in the picture box? [modified] Pin
Nivas8212-Jul-10 22:26
Nivas8212-Jul-10 22:26 
just tried to resize the rectangle as below (for x and y ). but this co-ordinate varies from point to point.
public void ZoomIn()
        {
            //pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
            if (sz1.Width >= 800 * 6)
                MessageBox.Show("Max ZoomIn");
            else
            {
                sz1.Width += 100;
                sz1.Height += 100;
                pictureBox1.Size = sz1;
                c = 0;

                
                rect1 = new Rectangle(rectangles[c].X+((pictureBox1.Width/rectangles[c].Height)+(pictureBox1.Width/100)),rectangles[c].Y+((pictureBox1.Height/rectangles[c].Width)), rectangles[c].Width, rectangles[c].Height);
                rectangles.RemoveAt(c);
                rectangles.Insert(c, rect1);
                rect = new Rectangle(0, 0, 0, 0);
}
                
        }

How to resize it...

modified on Tuesday, July 13, 2010 7:01 AM

AnswerRe: How to resize the drwan rectangle when zoomin the image in the picture box? Pin
Nivas8226-Jul-10 0:22
Nivas8226-Jul-10 0:22 
QuestionInlined Code Question Pin
Richard Blythe12-Jul-10 14:27
Richard Blythe12-Jul-10 14:27 
AnswerRe: Inlined Code Question Pin
Not Active12-Jul-10 14:36
mentorNot Active12-Jul-10 14:36 
AnswerRe: Inlined Code Question Pin
PIEBALDconsult12-Jul-10 17:40
mvePIEBALDconsult12-Jul-10 17:40 
GeneralRe: Inlined Code Question Pin
Richard Blythe13-Jul-10 4:59
Richard Blythe13-Jul-10 4:59 
GeneralRe: Inlined Code Question Pin
PIEBALDconsult13-Jul-10 17:43
mvePIEBALDconsult13-Jul-10 17:43 
AnswerRe: Inlined Code Question Pin
harold aptroot13-Jul-10 5:16
harold aptroot13-Jul-10 5:16 
GeneralRe: Inlined Code Question Pin
Richard Blythe13-Jul-10 5:31
Richard Blythe13-Jul-10 5:31 
QuestionHow can I make a self updating application - specifically a plug-in - via C#? Pin
euroazn12-Jul-10 7:40
euroazn12-Jul-10 7:40 
AnswerRe: How can I make a self updating application - specifically a plug-in - via C#? Pin
ramzg12-Jul-10 9:47
ramzg12-Jul-10 9:47 
AnswerRe: How can I make a self updating application - specifically a plug-in - via C#? Pin
Not Active12-Jul-10 11:47
mentorNot Active12-Jul-10 11:47 
Question.NET IL Code Pin
I Believe In GOD12-Jul-10 7:22
I Believe In GOD12-Jul-10 7:22 
AnswerRe: .NET IL Code Pin
DaveyM6912-Jul-10 7:25
professionalDaveyM6912-Jul-10 7:25 
GeneralRe: .NET IL Code Pin
I Believe In GOD12-Jul-10 9:00
I Believe In GOD12-Jul-10 9:00 
GeneralRe: .NET IL Code Pin
DaveyM6912-Jul-10 9:08
professionalDaveyM6912-Jul-10 9:08 
GeneralRe: .NET IL Code Pin
Keith Barrow12-Jul-10 9:33
professionalKeith Barrow12-Jul-10 9:33 
AnswerRe: .NET IL Code Pin
Keith Barrow12-Jul-10 7:27
professionalKeith Barrow12-Jul-10 7:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.