Solved

Add image to vb.net form

Posted on 2008-10-02
4
1,505 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
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 …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

785 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