Error using system.drawing

Discussion in 'ASP .Net' started by Carlos, Feb 4, 2004.

  1. Carlos

    Carlos Guest

    When I run this code in asp.net web page I get an error, any Ideas ?

    Dim g As Graphics
    Dim pn As New Pen(Color.Blue)
    Dim pt1 As New Point(30, 30)
    Dim pt2 As New Point(110, 100)

    g.DrawLine(pn, pt1, pt2)



    thanks
    Carlos, Feb 4, 2004
    #1
    1. Advertising

  2. Hi Carlos,

    Dimming a variable only provides memory space for it. That memory space is
    empty until you fill it with an instance of the class.

    --
    HTH,
    Kevin Spencer
    ..Net Developer
    Microsoft MVP
    Big things are made up
    of lots of little things.

    "Carlos" <> wrote in message
    news:...
    > When I run this code in asp.net web page I get an error, any Ideas ?
    >
    > Dim g As Graphics
    > Dim pn As New Pen(Color.Blue)
    > Dim pt1 As New Point(30, 30)
    > Dim pt2 As New Point(110, 100)
    >
    > g.DrawLine(pn, pt1, pt2)
    >
    >
    >
    > thanks
    >
    >
    Kevin Spencer, Feb 4, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Richard
    Replies:
    3
    Views:
    4,078
    velocity4anil
    Sep 19, 2007
  2. Replies:
    1
    Views:
    618
    Kevin Spencer
    Jan 9, 2006
  3. darrel
    Replies:
    11
    Views:
    669
    Darren Kopp
    Feb 23, 2006
  4. byrd48
    Replies:
    0
    Views:
    3,546
    byrd48
    Jul 6, 2006
  5. defn noob
    Replies:
    1
    Views:
    366
    Mark Space
    Jun 28, 2008
Loading...

Share This Page