Solved

Add image to vb.net form

Posted on 2008-10-02
4
1,502 Views
Last Modified: 2008-10-03
I know it is possible to change icon on a vb.net form but what I would like to do is dsplay an image that is contained in a jpeg file.  I tried to convert the jpeg to an icon but it is way to small

Any ideas?
0
Comment
Question by:johnnyg123
  • 2
4 Comments
 
LVL 11

Expert Comment

by:ladarling
ID: 22628154
If you go the the project properties, Resources, and add a new Icon resource you may be able to cut>paste into the VStudio Icon Editor. If you are the artistic type, you might be able to recreate what you want. I am not, so I outsource :-)
If that wont work for you, its probably a job for a graphic designer. I usually hire somebody from Rent-A-Coder, they usually do a good job for like $20 and get it back to you quickly.
http://www.rentacoder.com/RentACoder/DotNet/default.aspx
 
0
 
LVL 25

Accepted Solution

by:
SStory earned 500 total points
ID: 22628172
Do you want to show the JPEG image as the form's icon?
If so you should open it in Photoshop, install the ICO plugin to photoshop.
Crop and resize the image to the appropriate size for icons.. I think 16x16 for that one...or maybe 16x15.
At this size no photo is going to look very well.

If you were talking about showing a picture on a form...just drop a picturebox control and set the Image property to the picture.
0
 

Author Comment

by:johnnyg123
ID: 22628219
hmmmm

well...I guess I could go with the picture box

I have set the text to nothing...is it possible to change the color of the title bar to something other than blue?
0
 
LVL 25

Expert Comment

by:SStory
ID: 22637961
Well you can't use a picturebox in the title bar itself unless you come up with your own title bar...this is doable, but means you must provide for minimize, maximize, windows dragging, etc.

I don't think you can change the color in code if it is adhering to a Windows Theme.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now