all groups > asp.net building controls > april 2004 >
You're in the

asp.net building controls

group:

Source or Knowledge on Building Image Control


Source or Knowledge on Building Image Control chigger
4/26/2004 9:51:58 PM
asp.net building controls:
Hello,

Can someone point me in the right direction on how I can build an
image control in VB.NET. I would like this control to be used in either
a windows form application or in a web application.

Is this possible to do? I am finding it very difficult to obtain good
information on how this is actually done.

I tried Inherits System.Drawing.Image but it keeps telling me that I must
create NEW in my class and as soon as I do then my class yells at me
because it cannot have a SUB NEW in there.


TIA

Re: Source or Knowledge on Building Image Control Victor Garcia Aprea [MVP]
4/27/2004 9:46:25 PM
Hi Chigger,

Well... if you're looking to build a single control that will work in both,
a winform and webapp app, then I'm afraid thats not possible. Sorry!

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup

[quoted text, click to view]

Re: Source or Knowledge on Building Image Control Eidolon
5/10/2004 9:49:41 AM
For the WebForms, the best thing to do is probably to inherit from
System.Web.UI.WebControls.Image (or ImageButton depending on your need).
Then just extend that class to add whatever custom functionality you need.
Presumably there is a similar control to inherit from for WinForms.

HTH.

[quoted text, click to view]

AddThis Social Bookmark Button