Click here to Skip to main content
16,012,508 members
Home / Discussions / C#
   

C#

 
AnswerRe: Magical persistence Pin
Peter Trevor9-Oct-09 7:00
Peter Trevor9-Oct-09 7:00 
QuestionPrint Barcode Pin
samulong12-Jun-09 18:03
samulong12-Jun-09 18:03 
AnswerRe: Print Barcode Pin
DavidKiryazi12-Jun-09 19:57
DavidKiryazi12-Jun-09 19:57 
GeneralRe: Print Barcode Pin
OriginalGriff12-Jun-09 23:20
mveOriginalGriff12-Jun-09 23:20 
JokeRe: Print Barcode Pin
DavidKiryazi12-Jun-09 23:40
DavidKiryazi12-Jun-09 23:40 
GeneralRe: Print Barcode Pin
OriginalGriff13-Jun-09 0:00
mveOriginalGriff13-Jun-09 0:00 
AnswerRe: Print Barcode Pin
Christian Graus12-Jun-09 20:34
protectorChristian Graus12-Jun-09 20:34 
QuestionZooming picturebox not updating Pin
jisan2212-Jun-09 14:13
jisan2212-Jun-09 14:13 
Hi,

I am trying to create a function that when called takes a pictureBox and make it larger in 5 steps. My problem is that when I run the function the pictureBox is not updated until the last step where the pictureBox is full size.

The picture box is called myPictureBox and has a size of 70,100 at the beginning.

private void button1_Click(object sender, EventArgs e)
{
      for (int j = 0; j < 5; j++)
      {
          zoomOutPicture((j + 1) * 10);
          System.Threading.Thread.Sleep(1000);
      }
}

private void zoomOutPicture(int zoomF)
{
      int myHeight = 100+zoomF;
      int myWith = 70 + (int)Math.Round(zoomF * .7, 0);

      System.Drawing.Size test;
      test = new System.Drawing.Size(myWith, myHeight);
      myPictureBox.Size = test;
}


I have spent the last 3 hours searching with out any luck so any help is greatly apriciated.

Thank you.
AnswerRe: Zooming picturebox not updating Pin
DavidKiryazi12-Jun-09 14:56
DavidKiryazi12-Jun-09 14:56 
GeneralRe: Zooming picturebox not updating Pin
jisan2212-Jun-09 20:10
jisan2212-Jun-09 20:10 
AnswerRe: Zooming picturebox not updating Pin
fly90412-Jun-09 15:01
fly90412-Jun-09 15:01 
AnswerRe: Zooming picturebox not updating Pin
Luc Pattyn12-Jun-09 15:04
sitebuilderLuc Pattyn12-Jun-09 15:04 
GeneralRe: Zooming picturebox not updating Pin
jisan2212-Jun-09 20:14
jisan2212-Jun-09 20:14 
QuestionMessage Removed Pin
12-Jun-09 10:54
professionalN_tro_P12-Jun-09 10:54 
AnswerRe: Winform Hot Keys Pin
Dr.Walt Fair, PE12-Jun-09 11:06
professionalDr.Walt Fair, PE12-Jun-09 11:06 
GeneralRe: Winform Hot Keys Pin
harold aptroot12-Jun-09 13:05
harold aptroot12-Jun-09 13:05 
AnswerRe: Winform Hot Keys Pin
PIEBALDconsult12-Jun-09 13:20
mvePIEBALDconsult12-Jun-09 13:20 
GeneralRe: Winform Hot Keys Pin
Dr.Walt Fair, PE12-Jun-09 16:38
professionalDr.Walt Fair, PE12-Jun-09 16:38 
GeneralRe: Winform Hot Keys Pin
PIEBALDconsult12-Jun-09 18:21
mvePIEBALDconsult12-Jun-09 18:21 
QuestionTotal Upload , Download Internet Traffic Pin
I Believe In GOD12-Jun-09 10:34
I Believe In GOD12-Jun-09 10:34 
AnswerRe: Total Upload , Download Internet Traffic Pin
Dave Kreskowiak12-Jun-09 11:24
mveDave Kreskowiak12-Jun-09 11:24 
GeneralRe: Total Upload , Download Internet Traffic Pin
harold aptroot12-Jun-09 11:25
harold aptroot12-Jun-09 11:25 
AnswerRe: Total Upload , Download Internet Traffic Pin
I Believe In GOD12-Jun-09 11:34
I Believe In GOD12-Jun-09 11:34 
GeneralRe: Total Upload , Download Internet Traffic PinPopular
Luc Pattyn12-Jun-09 11:51
sitebuilderLuc Pattyn12-Jun-09 11:51 
GeneralRe: Total Upload , Download Internet Traffic Pin
Dave Kreskowiak12-Jun-09 12:43
mveDave Kreskowiak12-Jun-09 12:43 

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.