Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Still cant get toolbox icon to display for my custom control

Reply
Thread Tools

Still cant get toolbox icon to display for my custom control

 
 
Showjumper
Guest
Posts: n/a
 
      07-22-2003
I still cant get an icon to display for my custom server control in the
toolbox. I create a bmp that is the same name as the class of the control. I
set it to embedded resource and then build but it still wont show. I am
using vbnet for my controls but have also tried it w/ controls written in
c# - doesnt work in either case. So what am i missing? A namespace maybe?
Thanks...


 
Reply With Quote
 
 
 
 
Natty Gur
Guest
Posts: n/a
 
      07-22-2003
Perhaps a namespace problem:

Should be like this:

[ToolboxBitmap(typeof(TestControl), "namespace.TestControl.bmp")]

Where namespace is the full one for the TestControl. Also the file name
is
related to it's location in the project.

refer to :
http://www.aspalliance.com/graymad/VS_Icon.aspx

Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
Showjumper
Guest
Posts: n/a
 
      07-22-2003
Thanks i 'll give that a try

"Natty Gur" <> wrote in message
news:%...
> Perhaps a namespace problem:
>
> Should be like this:
>
> [ToolboxBitmap(typeof(TestControl), "namespace.TestControl.bmp")]
>
> Where namespace is the full one for the TestControl. Also the file name
> is
> related to it's location in the project.
>
> refer to :
> http://www.aspalliance.com/graymad/VS_Icon.aspx
>
> Natty Gur, CTO
> Dao2Com Ltd.
> 28th Baruch Hirsch st. Bnei-Brak
> Israel , 51114
>
> Phone Numbers:
> Office: +972-(0)3-5786668
> Fax: +972-(0)3-5703475
> Mobile: +972-(0)58-888377
>
> Know the overall picture
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cant compile on linux system.cant compile on cant compile onlinux system. Nagaraj C++ 1 03-01-2007 11:18 AM
toolbox control icon Ladislav Kepl ASP .Net Web Controls 2 12-03-2003 07:53 PM
Toolbox icon Shawn B. ASP .Net Building Controls 1 07-31-2003 01:31 PM
How to have toolbox icon appear for custom control? Showjumper ASP .Net 2 07-18-2003 05:40 AM
add custom control to toolbox Prasanna Padmanabhan ASP .Net 0 07-03-2003 07:49 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57