473,394 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

References to add to use GDI+ in web form

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.
Nov 15 '05 #1
3 1277
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]
- mv*@spam.guard.caspershouse.com

<VM> wrote in message news:ua**************@TK2MSFTNGP11.phx.gbl...
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.

Nov 15 '05 #2
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 [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:eT**************@TK2MSFTNGP10.phx.gbl...
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]
- mv*@spam.guard.caspershouse.com

<VM> wrote in message news:ua**************@TK2MSFTNGP11.phx.gbl...
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.


Nov 15 '05 #3
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.

<VM> wrote in message news:eL**************@tk2msftngp13.phx.gbl...
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 [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:eT**************@TK2MSFTNGP10.phx.gbl...
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]
- mv*@spam.guard.caspershouse.com

<VM> wrote in message news:ua**************@TK2MSFTNGP11.phx.gbl...
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.



Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Wiktor Zychla | last post by:
today we've found a critical issue regarding the ListView from Windows.Forms. it was confirmed on several machines with Win2K and XP. here's the problem: create a ListView with about 50000 rows....
8
by: Eric Eggermann | last post by:
I'm having a problem with really large file sizes when serializing the classes that describe my little document. There are some circular references which result in the same object getting written...
5
by: anonymous | last post by:
I'm writing a program that deals extensively with the printer. For the most part my application runs fine, but occasionally I run into some Exceptions. The most common exceptions I run into are...
3
by: Richard | last post by:
I have a requirement to put a GDI style circle or rectangle border around the selected row of a datagrid/ It will overlap into the row above and below the selected row. Doing this in a the OnPaint...
13
by: lgbjr | last post by:
Hello All, I have some pictureboxes on a VB.NET form that are linked to an AccessDB. If the user wishes to open or edit an image, I need to save the image in the picturebox to a temp file, then...
0
by: Brian Keating | last post by:
hi there i've a test program that creates a treeview and destroys it over and over, i keep track of the gdi object count for the process and see if they are ok. However when i switch on...
1
by: Pranil Kanderi | last post by:
I have a huge application with lots of custom controls. The app had a memory leak but fixed that by calling the dispose method where needed and now the user objects are very stable, when I am...
5
by: Jonathan Boivin | last post by:
Hi, I've got some problems with loading bills using a bill usercontrol I built. If I load all current bills in my test environment (156) everything is fine once, but repeating the operation...
1
by: Chris Dunaway | last post by:
When working with GDI+, calling the CreateGraphics method to draw on a control has normally been frowned upon and it is always emphasized to dispose of pens and brushes and other GDI objects lest...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.