473,761 Members | 2,410 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What wrong in this icon file

284 Contributor
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
3 7345
Guido Geurs
767 Recognized Expert Contributor
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, 807 views)
Jun 3 '10 #2
vb5prgrmr
305 Recognized Expert Contributor
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 Contributor
@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
3276
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(); fopen("c:\\autoexec.bat","r")&&printf("success") || printf("error opeing
4
23838
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 programmatically in the Form Load section. -- Thank you kindly, Dan Sikorsky MSCS, BSCE, BAB
4
6922
by: Brian | last post by:
I have already created a resource file (icon1.ico).
3
1658
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? Thanks Regards
8
440
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 System.Drawing.Image im = CType(getobject("CHECKMRK.ICO"),System.Drawing.Image) <-- Fails here. g_mainform.fg.SetCellImage(g_mainform.FG.Row, 5, im)
1
1850
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 that I drew on it in the editor (32x32). When I add the icon to the project, the icon does not display the figure on the form, but it does display in the Alt-Tab box, and it displays in the Project Properties page. Also, the icon does not display...
1
1307
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 debug mode or standalone. Does this icon do anything more than the close form icon? Is there a way to eliminate it without eliminating the control box? Do I want to eliminate it? Thanks, Rich
3
1465
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
3582
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 try to open it with icon reading programs it does not open.
0
9522
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9336
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9948
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9902
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9765
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7327
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5364
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3866
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2738
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.