Imagelist icon "Invalid Picture" problem.

Visual Basic

    Next

  • 1. Using HttpWebRequest to Submit form in VB
    Hi, Does anyone know of a way to load an HTML file from the local disk, open it and click the 'Submit' button without the user seeing the form, or having any interactrivity with it? I tried using the WebBrowser control, but the site pops messages that I don't want the user to see, as I am only retrieving the data returned after the Submit button is clicked. I'm using VB6. Tnanks for any help.
  • 2. WinSock Control and Multiple Local Hosts using TCP
    Hi, I have multiple local IP addresses on the same box and require to select a specific IP address when setting up a TCP connection. It is possible to specify the 2nd Local Host IP address in the Bind method when using UDP ; unfortunately I've not found a way to make the same selection when using TCP. With TCP, on .Connect the control appears to default to the 1st Local Host IP address. I've tried specifying the 2nd IP address in the Bind, however having issues te .Bind, on .Connect I get an "Invalid operation at current state." error, making it necessary to .Close after the .Bind and prior to .Connect. Any thoughts on how I can specify the 2nd Local Host IP address with TCP? thank you, Paul
  • 3. Dynamically creating controls
    I have an app that needs to create controls dynamically on a form. It works fine on my development machine but when I send it to others, it seems to collapse all the controls into 1 combobox in the top left of the form. Anyone seen this before and/or have a solution or know why this happens? Brian
  • 4. Passing an array as property in VB6
    Hi, I'm having some problems in the following. >From a form, I need to pass an array of integer to a dialog so that I can modify the values of the array from that dialog. Code of dialog: ***************** Option Explicit Private privArr() As Integer Public Property Let Arr(ar As Variant) privArr = ar End Property Public Property Get Arr() As Variant Arr = privArr End Property Private Sub Form_Load() Me.Show privArr(0, 0) = 1 End Sub ***************** So, basically, I created a property so I can pass the array to the dialog and modify a value of the array with the line privArr(0, 0) = 1 This is the code of Form1 **************** Dim Array1(5, 5) As Integer Private Sub Command1_Click() Dim dlg As Dialog2 Set dlg = New Dialog2 Array1(0, 0) = 2 dlg.Arr = Array1 Load dlg End Sub **************** So, here, in the click code of a button in Form1, I create the dialog, I Dim the array, I set a value with Array1(0, 0) = 2 and I pass it to dlg.Arr. The value then will (should) be modified by the code in the dialog Load event. Instead, when I close the dialog and I come back to the form, the value of Array1(0, 0) is still 2 and not 1 What's wrong? Thanks in advance
  • 5. textbox
    To go to specific lines when a textbox loads and to compare characters when they are typed in ?

Imagelist icon "Invalid Picture" problem.

Postby Whitey » Wed, 18 Jan 2006 04:59:41 GMT

Hey all,
I'm trying to give an XP facelift to a VB6 application.  I'm using a
listview control in report format, and I want to add some high color
icons to spruce up the look of it.  However, when I try to load the
images into the control at design time, it keep throwing an "invalid
picture" error.
Could anyone suggest a way to make the imagelist friendly to 256 color
icons?
Thanks,
Whitey


Re: Imagelist icon "Invalid Picture" problem.

Postby Jay Taplin » Wed, 18 Jan 2006 07:23:22 GMT

What is the color depth of the icons you are trying to use?  The
ImageList
supports 256, or at least the version I just tested does (v6.0 SP6).

Feel free to e-mail me the icon files you are trying to use, if you'd
like
me to test them.

Jay Taplin MCP


Re: Imagelist icon "Invalid Picture" problem.

Postby Whitey » Thu, 19 Jan 2006 01:07:48 GMT

The images I'm trying to use are 32 bit, and they exceed the 256 color
limit.  I wasn't sure if there was a way to supercede that limitation.
I've read that I can't use a resource file as a substitute for an
imagelist.  So, I think that I'm going to be stuck with 256 color
icons.
Thanks for your help,
Whitey


Re: Imagelist icon "Invalid Picture" problem.

Postby Jay Taplin » Thu, 19 Jan 2006 10:58:29 GMT

I was just doing a little research on 32 bit icons... you may want to be 
careful with trying to use them.  Systems that have a color depth of less 
than 32 bit may render them strangely.  Since most people are not yet at 
that resolution, your application may end up with an unexpected look. 
However, you know better what your target user is, so maybe this is not an 
issue.

Another option may be to try a third party control.  vbAccelerator has a 
nice one: 
 http://www.**--****.com/ 
There is also an ImageList that supports 32 bit, with code and documentation 
about that very issue to boot!

Good luck.

Jay Taplin








Similar Threads:

1.Loading Icon-Invalid Picture Error

I used to know the answer, but I've forgotten what it was! 

I got some new icons from my customer, but when I try to load them
into a VB6 form I get an "invalid picture" error. 

I think the last time this happened I used an icon editor (don't
remember which one!) and changed the format. Not sure what I changed,
or which icon editor I used.

2.Using SHGetFileInfo for icons - problems with adding to ImageList

3.Problem adding icons to imagelist

Hello

I added some icons to an imagelist. I checked first the image size and
image depth and adjusted the settings according in the imagelist before
adding the icon. The icon still gets distorted when I use it in the
application (Treeview).

What could cause the distortion of the icon. Did I miss some settings.
(I'm new to VB.Net)


Regards

Manfred

4.ImageList + Toolbar = "Invalid Parameter Used"

I have a simple app: a toolbar and an image list with 
32X32 icons.  When I try to add the icons to the list, it 
blows up with "Invalid Parameter Used"  What in the heck 
is this referring to????? 

Some icons appear to work OK, so I think it has to do with 
icons needing some strange combination of sizes.  The 
icons load properly (in any size) in a regular button, so 
I presume they are valid.

What is going on here???!!!

5.ImageList don't accept icon?

How to add an icon into imagelist in VB.Net?


6. Statusbar panel icon from ImageList

7. Check for icon in ImageList

8. How to edit system.windows.forms.form.imagelist icons



Return to Visual Basic

 

Who is online

Users browsing this forum: No registered users and 37 guest