473,325 Members | 2,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

What wrong in this icon file

284 100+
I am trying to give the following Icon in my form in vb6.

http://www.mediafire.com/?ymzgkgyi50j

But , when I put this in my form I got error

Expand|Select|Wrap|Line Numbers
  1. "Invalid Picutre"
What wrong in it? How to add this in my forms?
Jun 3 '10 #1

✓ answered by Guido Geurs

I have done some tests and found that VB icon only can hold ICO files with limited size and color bits.
max colorbit = 8 (256 colors)
max size = 128

attached are your icons (without 256 size) and 8 bit.

3 7292
Guido Geurs
767 Expert 512MB
I have done some tests and found that VB icon only can hold ICO files with limited size and color bits.
max colorbit = 8 (256 colors)
max size = 128

attached are your icons (without 256 size) and 8 bit.
Attached Files
File Type: zip Icon_16-128x8.zip (11.8 KB, 806 views)
Jun 3 '10 #2
vb5prgrmr
305 Expert 100+
Several things are wrong with that Icon. One it uses too many colors and two it has sizes in it that vb cannot use. I believe and someone please correct me if I am wrong but VB only supports 256 colors and icons up to 48x48 pixels in size.



Good Luck
Jun 3 '10 #3
muddasirmunir
284 100+
@ggeu
Thanks this work.

By the way what utility you used to change/modify it
Jun 3 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

28
by: Madhur | last post by:
Hello what about this nice way to open a file in single line rather than using if and else. #include<stdio.h> void main() { FILE *nd; clrscr();...
4
by: Dan Sikorsky | last post by:
How do you set the this.Icon property of a windows form to the App.ico file specified in the Project Properties? I don't want to type in the path and filename; I want to set the form's icon...
4
by: Brian | last post by:
I have already created a resource file (icon1.ico).
3
by: John | last post by:
Hi I have a form frmcontacts in the solution explorer. If click on the plus sign next to the form name, I see another file frmconatcts.resx. What is this resx file and how is it created? ...
8
by: Wayne Hoover | last post by:
I have an embedded icon resource in my project - I need to reference this icon for a grid cell. I've tried using the following but it does not work. Any help appreciated: Dim im As...
1
by: Rich | last post by:
Hello, I have created icons before with icon editor that comes with VS2003 without any issues. Today I created another icon for my VB.Net app. But this .ico file is not displaying the figure...
1
by: Rich | last post by:
Hello, I noticed a round looking icon with a downward chevron symbol immediately to the left of the control box on the form title bar. When I click it the form seems to unload - whether in...
3
by: Jerry | last post by:
When I right-click on my project (in Solution Explorer) and go to add -> New Item, Icon File is not an option. Can I download this template from somewhere? -- Jerry
4
by: Frank | last post by:
Private Sub SaveBitmap(ByVal fileName As String, ByVal p As System.Drawing.Bitmap) ...snip p.Save(fileName, Imaging.ImageFormat.Icon) Does not produce an icon formatted file. At least if I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.