By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,949 Members | 890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,949 IT Pros & Developers. It's quick & easy.

not display drawing in PictureBox

P: 10
I used system.drawing.graphic in C# to draw the Rectangle and Ellipse in PictureBox. In my PC and other my buddy PC show the drawing graphic and color.
But my customer PC doesn't show the drawing graphic. In my customer PC, i already installed .net Frame Work 2.0 (SP1). I don't know why missing? I write code like this...

Pen penMi = Pens.Blue;

void DrawAllMi(Graphics g)
{
g.DrawRectangle(penMi, x1 - 4, y1 - 4, 8, 8);
g.DrawEllipse(penMi, x1 - 5, y1 - 5, 10, 10);
}
Feb 11 '09 #1
Share this Question
Share on Google+
7 Replies


P: 12
hi
try putting this problem in windows programmig forum :), this is problem related to widows programmin it seems.
Feb 11 '09 #2

P: 10
@falaque
Hi,
Is this not C# window programming section???
May i know specific link of C# window programming section.

Thanks
Feb 11 '09 #3

P: 12
Yes you are right, this is C# section, and for windows programming also its ok. I was just trying to suggest that if you could post this problem in any windows programming forum you will have more scope of getting answer.
Feb 11 '09 #4

P: 10
@falaque
thank,
i will try other section to get more scope of answer.
Feb 11 '09 #5

P: 10
I used system.drawing.graphic in C# to draw the Rectangle and Ellipse in PictureBox. That PictureBox is 512x512 ratio. In my PC and other my buddy PC show the drawing graphic .

Problem is,in my customer PC, the drawing graphic not work well function and system draws many rectangles the whole PictureBox, cannot set position.

In my customer PC, already installed .net Frame Work 2.0 (SP1) and OS is Window XP. I don't know what missing? I write code like this...


Expand|Select|Wrap|Line Numbers
  1. Pen penMi = Pens.Blue;
  2. void DrawAllMi(Graphics g)
  3. {
  4.     g.DrawRectangle(penMi, x1 - 4, y1 - 4, 8, 8);
  5.     g.DrawEllipse(penMi, x1 - 5, y1 - 5, 10, 10);
  6. }
Feb 17 '09 #6

P: 10
I used system.drawing.graphic in C# to draw the Rectangle and Ellipse in PictureBox. That PictureBox is 512x512 ratio. In my PC and other my buddy PC show the drawing graphic .

Problem is,in my customer PC, the drawing graphic not work well function and system draws many rectangles the whole PictureBox, cannot set position.

In my customer PC, already installed .net Frame Work 2.0 (SP1) and OS is Window XP. I don't know what missing? I write code like this...

Expand|Select|Wrap|Line Numbers
  1. Pen penMi = Pens.Blue;
  2. void DrawAllMi(Graphics g)
  3. {
  4.     g.DrawRectangle(penMi, x1 - 4, y1 - 4, 8, 8);
  5.     g.DrawEllipse(penMi, x1 - 5, y1 - 5, 10, 10);
  6. }
  7.  
Please give me suggestion,
Thanks.
Feb 17 '09 #7

Expert 100+
P: 464
This would be a better question for the C# forum.
Feb 17 '09 #8

Post your reply

Sign in to post your reply or Sign up for a free account.