References to add to use GDI+ in web form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I'm trying to include some code that draws an image into a web form using
GDI+ but I get several errors (eg. "Type or namespace 'ClientRectangle'
could not be found").

What reference(s) should I need to add for the code to compile? I believe
the code was written for a win form.

Thanks.
 
VM,

You should probably add a reference to System.Drawing.dll (I believe
that is it). However, you won't be able to draw to the web form directly.
The best you could do is draw to a graphic that will be downloaded and shown
on the web form.

Hope this helps.
 
Thanks for your reply.
The image I was talking about is a thermometer control that I found on the
web that displays the temperature.
I already have the control created and it compiles. How would I be able to
add that control into my web app?


Nicholas Paldino said:
VM,

You should probably add a reference to System.Drawing.dll (I believe
that is it). However, you won't be able to draw to the web form directly.
The best you could do is draw to a graphic that will be downloaded and shown
on the web form.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hi,
I'm trying to include some code that draws an image into a web form using
GDI+ but I get several errors (eg. "Type or namespace 'ClientRectangle'
could not be found").

What reference(s) should I need to add for the code to compile? I believe
the code was written for a win form.

Thanks.
 
Rightclick your toolbox and choose add/remove items. In the .NET framework
components class click browse and browse to your compiled dll file.

hope it helps.

Greets,

Gerben van Loon.

Thanks for your reply.
The image I was talking about is a thermometer control that I found on the
web that displays the temperature.
I already have the control created and it compiles. How would I be able to
add that control into my web app?


message news:[email protected]...
VM,

You should probably add a reference to System.Drawing.dll (I believe
that is it). However, you won't be able to draw to the web form directly.
The best you could do is draw to a graphic that will be downloaded and shown
on the web form.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hi,
I'm trying to include some code that draws an image into a web form using
GDI+ but I get several errors (eg. "Type or namespace 'ClientRectangle'
could not be found").

What reference(s) should I need to add for the code to compile? I believe
the code was written for a win form.

Thanks.
 
Back
Top