[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

ToolboxBitmap not working for me

Posted on 2006-10-30
6
Medium Priority
?
772 Views
Last Modified: 2008-01-09
Opening this question again:

I am trying to set the toolbox icon for a web control, but can't seem to get it to work.  I have already referenced this link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskProvidingToolboxBitmapForYourControl.asp

My declaration is as follows:
=================
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Text
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.Design
Imports System.Drawing

<ToolboxData("<{0}:EIB runat=server></{0}:EIB>")> <ToolboxBitmap("C:\EIB.bmp")> Public Class EIB
    Inherits System.Web.UI.WebControls.ImageButton
===================

EIB.bmp is a 16x16 by 16 color bitmap.  What am I doing wrong?  Can somebody advise me?

Regards,
A.Wooley
0
Comment
Question by:adwooley2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 

Author Comment

by:adwooley2
ID: 17846638
Understood.

ADwooley
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 17848852
1) I don't use the ToolboxBitmap attribute, since it never has worked for me

2) What version of the .NET framework are you working with?  2.0 or 1.1?

3) I have done that embedded icon with the 1.1, but not 2.0.

4) Do you have a namespace for the control?

Bob
0
 

Author Comment

by:adwooley2
ID: 17854579
Working with 2.0
I assume that the root namespace (as defined in project properties) is the namespace for the control... right?

I tried following declaration, but no magic still:

<ToolboxData("<{0}:EIB runat=server></{0}:EIB>")> <ToolboxBitmap(GetType(WCLibrary.EIB), "EIB.bmp")> Public Class EIB
    Inherits System.Web.UI.WebControls.ImageButton
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 675 total points
ID: 17897411
You can download an example from here:

https://filedb.experts-exchange.com/incoming/ee-stuff/1319-WebControlLibrary1.zip 

Resource:

How to find the elusive ToolboxBitmap icon
http://www.bobpowell.net/toolboxbitmap.htm

Bob
0
 

Author Comment

by:adwooley2
ID: 17903066
Thanks. Will look into it.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question