469,935 Members | 1,831 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,935 developers. It's quick & easy.

not display drawing in PictureBox

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
7 3505
falaque
12
hi
try putting this problem in windows programmig forum :), this is problem related to widows programmin it seems.
Feb 11 '09 #2
winzone
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
falaque
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
winzone
10
@falaque
thank,
i will try other section to get more scope of answer.
Feb 11 '09 #5
winzone
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
winzone
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
Studlyami
464 Expert 256MB
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.

Similar topics

3 posts views Thread by Li Weng | last post: by
2 posts views Thread by active | last post: by
reply views Thread by akh | last post: by
9 posts views Thread by davetelling | last post: by
4 posts views Thread by gerardianlewis | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.