Results 1 to 3 of 3

Thread: Declaring pens?

  1. #1

    Thread Starter
    Member
    Join Date
    May 2008
    Posts
    36

    Question Declaring pens?

    How do you declare pieces of graphics?

    "Name 'pens' not declared"

    e.Graphics.DrawRectangle(Pens.blue, 20, 50, 1, 1)

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Declaring pens?

    Try
    Private bluePen As New Pen(Color.Blue)

    Me.graphics.DrawRectangle(bluePen , Me.oldX, Me.oldY, e.X, e.Y)

    Pete
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  3. #3

    Thread Starter
    Member
    Join Date
    May 2008
    Posts
    36

    Re: Declaring pens?

    Great, thank you. There was no need for "me".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width