Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hosting Windows Forms Control in IE, Please Help Pin
Kant13-May-03 7:24
Kant13-May-03 7:24 
GeneralEnvDTE + visual studio .net addin Pin
cbiacca12-May-03 13:49
cbiacca12-May-03 13:49 
GeneralRe: EnvDTE + visual studio .net addin Pin
Stephane Rodriguez.12-May-03 21:13
Stephane Rodriguez.12-May-03 21:13 
GeneralRe: EnvDTE + visual studio .net addin Pin
cbiacca13-May-03 1:26
cbiacca13-May-03 1:26 
GeneralRe: EnvDTE + visual studio .net addin Pin
Stephane Rodriguez.13-May-03 2:03
Stephane Rodriguez.13-May-03 2:03 
GeneralRe: EnvDTE + visual studio .net addin Pin
Stephane Rodriguez.13-May-03 2:04
Stephane Rodriguez.13-May-03 2:04 
GeneralRe: EnvDTE + visual studio .net addin Pin
cbiacca13-May-03 13:49
cbiacca13-May-03 13:49 
GeneralImageList(contd..) Pin
Kant12-May-03 12:50
Kant12-May-03 12:50 
Saga continues... Poke tongue | ;-P

<br />
protected static ImageList toolbarImages;<br />
static Color transparentColor = Color.FromArgb(192, 192, 192);<br />
<br />
toolbarImages = new ImageList();<br />
toolbarImages.ImageSize = new Size(16, 16);<br />
<br />
Assembly Asm = Assembly.GetExecutingAssembly();<br />
Stream BmpStrm = Asm.GetManifestResourceStream("MyNamespace.ToolbarImages.bmp");<br />
Bitmap TempBmp = new Bitmap(BmpStrm);<br />
<br />
TempBmp.MakeTransparent(transparentColor);<br />
			<br />
toolbarImages.Images.AddStrip(TempBmp); 


I get "System.ArgumentException: Cannot add an image strip shorter than ImageSize property.
Parameter name: value
"

But if I changed the ImageSize to actual bitmap size, then it works.

toolbarImages.ImageSize = new Size(160, 15);

But how do I get the individual images from that bitmap?? Confused | :confused:



Don't Beer | [beer] and drive.
GeneralRe: ImageList(contd..) Pin
James T. Johnson12-May-03 15:04
James T. Johnson12-May-03 15:04 
GeneralRe: ImageList(contd..) Pin
Kant12-May-03 15:25
Kant12-May-03 15:25 
GeneralEnumerating Top Level Windows Pin
Waleed Eissa12-May-03 12:12
Waleed Eissa12-May-03 12:12 
GeneralRe: Enumerating Top Level Windows Pin
leppie12-May-03 13:36
leppie12-May-03 13:36 
GeneralwinAPI functions Pin
datainjector12-May-03 12:06
datainjector12-May-03 12:06 
GeneralRe: winAPI functions Pin
Jon Newman12-May-03 12:20
Jon Newman12-May-03 12:20 
GeneralRe: winAPI functions Pin
Paresh Gheewala12-May-03 12:51
Paresh Gheewala12-May-03 12:51 
GeneralCoverting string to int32 Pin
datainjector12-May-03 11:34
datainjector12-May-03 11:34 
GeneralRe: Coverting string to int32 Pin
Tomas Petricek12-May-03 11:41
Tomas Petricek12-May-03 11:41 
General.NET button that supports images and XP style Pin
jtilly9912-May-03 10:52
jtilly9912-May-03 10:52 
GeneralRe: .NET button that supports images and XP style Pin
jtilly9912-May-03 13:36
jtilly9912-May-03 13:36 
GeneralStarting external programs Pin
BoudewijnEctor12-May-03 10:46
BoudewijnEctor12-May-03 10:46 
GeneralRe: Starting external programs Pin
Jon Newman12-May-03 12:08
Jon Newman12-May-03 12:08 
GeneralHTML control Pin
BoudewijnEctor12-May-03 10:40
BoudewijnEctor12-May-03 10:40 
GeneralRe: HTML control Pin
J. Dunlap12-May-03 10:43
J. Dunlap12-May-03 10:43 
GeneralRe: HTML control Pin
BoudewijnEctor14-May-03 3:48
BoudewijnEctor14-May-03 3:48 
GeneralRe: HTML control Pin
Kant12-May-03 11:30
Kant12-May-03 11:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.