not display drawing in PictureBox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • winzone
    New Member
    • Jan 2009
    • 10

    not display drawing in PictureBox

    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(Graph ics g)
    {
    g.DrawRectangle (penMi, x1 - 4, y1 - 4, 8, 8);
    g.DrawEllipse(p enMi, x1 - 5, y1 - 5, 10, 10);
    }
  • falaque
    New Member
    • Feb 2009
    • 12

    #2
    hi
    try putting this problem in windows programmig forum :), this is problem related to widows programmin it seems.

    Comment

    • winzone
      New Member
      • Jan 2009
      • 10

      #3
      Originally posted by falaque
      hi
      try putting this problem in windows programmig forum :), this is problem related to widows programmin it seems.
      Hi,
      Is this not C# window programming section???
      May i know specific link of C# window programming section.

      Thanks

      Comment

      • falaque
        New Member
        • Feb 2009
        • 12

        #4
        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.

        Comment

        • winzone
          New Member
          • Jan 2009
          • 10

          #5
          Originally posted by falaque
          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.
          thank,
          i will try other section to get more scope of answer.

          Comment

          • winzone
            New Member
            • Jan 2009
            • 10

            #6
            Incorrect display drawing graphic in PictureBox in customer pc

            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...


            Code:
            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);
            }

            Comment

            • winzone
              New Member
              • Jan 2009
              • 10

              #7
              Incorrect display drawing graphic in PictureBox in customer pc

              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...

              Code:
              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);
              }
              Please give me suggestion,
              Thanks.
              Last edited by numberwhun; Feb 17 '09, 01:15 PM. Reason: Please use code tags!

              Comment

              • Studlyami
                Recognized Expert Contributor
                • Sep 2007
                • 464

                #8
                This would be a better question for the C# forum.

                Comment

                Working...