473,498 Members | 1,930 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I put the image as icon in form?

Ajay Bhalala
119 New Member
I have created 1 form. and I want to put image as a icon of that form into the form in vb.net How can I do this?

I have an image with ".png" extension which I want to put, and I have used the "ICON" property of the form to put my image into the form, but in this property, we can use only the files which have the ".ico" extension.
I changed the extension of the file, but there is still error occured like this "Argument 'picture' must be a picture that can be used as a Icon."

What can be done in this problem? It's urgent please help. It's deadline is tomorrow morning, please help.
Nov 16 '14 #1
3 2158
twinnyfo
3,653 Recognized Expert Moderator Specialist
Save the file as a bitmap, then rename the extension to .ico.
Nov 19 '14 #2
Ajay Bhalala
119 New Member
Sorry for the late relpy. It's really works.and thank you so much for the help.
Nov 20 '14 #3
twinnyfo
3,653 Recognized Expert Moderator Specialist
Glad I could be of assistance!
Nov 24 '14 #4

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

Similar topics

0
1124
by: Steve Teeples | last post by:
Can someone tell me the proper way of adding an image to a RESX file via the IDE? I understand how text is added but I don't know how to add an icon or bitmap to the file. -- Steve
3
6383
by: David | last post by:
Hi, I am very new in the asp.net realm so this may be a very simple question for most of you. I want to put a little image icon in every button on my web form but there is no attribute in...
0
1369
by: Terry Olsen | last post by:
I think I figured out how to put an icon on a button using the imageList. Is there a way I can scale the image or icon so that it will fill the button? No matter what size I make my button, the...
6
3060
by: comp.lang.php | last post by:
/** * Generate the random security image * * @access public * @param $willUseFilePath (default false) boolean to determine if you will be using a file path * @param mixed $filePath (optional)...
1
1199
by: mensuur | last post by:
hi. i was looking at the microsoft homepage and noticed that when i hovered over the large images in the centre only the tooltip came up. normally when i hover over large images, a little toolbar...
0
1786
by: gopal | last post by:
Hi, How to display the image icon in save button in SAveFileDialog control? Rgds JK
2
4650
by: Nhoung Ar | last post by:
Can anyone outhere advise me about a best practice of embedded the image into form or report. I have several forms and report which embedded images (logo) to the header. I observed that the...
8
12072
by: libish | last post by:
hi all.., i'm new in windows mobile application... i would like to kno if there exist any way to add a background image to "form"(windows mobile). thanks in advance..
4
8306
by: rakesh005 | last post by:
i want to save the employe image with his data in the database so i want to know how to add image in form and to save in database please send me the codes thanku
0
7125
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,...
0
7002
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...
0
7165
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6885
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...
0
5462
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4908
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...
0
3093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3081
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1417
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 ...

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.