Click here to Skip to main content
15,914,416 members
Home / Discussions / C#
   

C#

 
GeneralLoad Image File Pin
MasterSharp16-Jan-08 11:38
MasterSharp16-Jan-08 11:38 
GeneralRe: Load Image File Pin
Gareth H16-Jan-08 11:57
Gareth H16-Jan-08 11:57 
GeneralRe: Load Image File Pin
MasterSharp16-Jan-08 12:03
MasterSharp16-Jan-08 12:03 
GeneralRe: Load Image File Pin
Luc Pattyn16-Jan-08 12:05
sitebuilderLuc Pattyn16-Jan-08 12:05 
GeneralRe: Load Image File Pin
MasterSharp16-Jan-08 13:05
MasterSharp16-Jan-08 13:05 
GeneralRe: Load Image File Pin
Luc Pattyn16-Jan-08 13:38
sitebuilderLuc Pattyn16-Jan-08 13:38 
GeneralRe: Load Image File Pin
MasterSharp16-Jan-08 14:04
MasterSharp16-Jan-08 14:04 
GeneralRe: Load Image File Pin
Luc Pattyn16-Jan-08 14:24
sitebuilderLuc Pattyn16-Jan-08 14:24 
MasterSharp wrote:
a new Bitmap with a file extension


there is no such thing as a bitmap with a file extension, only files have an extension.

I'm guessing you are doing something like new Bitmap(filespec+".JPG")
and it throws the ArgumentException, so you must:
1. look at the exact value of the parameter you have there; is it a valid path?
2. if relative path is used, is the current directory at that point what you expect?
3. check that file exists
4. check that file contains a valid image (does it show a thumbnail in Windows Explorer).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralRe: Load Image File Pin
MasterSharp16-Jan-08 14:29
MasterSharp16-Jan-08 14:29 
GeneralRe: Load Image File Pin
MasterSharp16-Jan-08 14:33
MasterSharp16-Jan-08 14:33 
GeneralRe: Load Image File Pin
Ennis Ray Lynch, Jr.16-Jan-08 15:15
Ennis Ray Lynch, Jr.16-Jan-08 15:15 
GeneralRe: Load Image File Pin
Luc Pattyn16-Jan-08 21:48
sitebuilderLuc Pattyn16-Jan-08 21:48 
GeneralRe: Load Image File Pin
Luc Pattyn16-Jan-08 21:43
sitebuilderLuc Pattyn16-Jan-08 21:43 
QuestionHow do I publish a .chm file with an app in Visual C# 2005 Express Pin
jrs@dsl16-Jan-08 10:29
jrs@dsl16-Jan-08 10:29 
GeneralC# sms Pin
Nadia v D16-Jan-08 9:42
Nadia v D16-Jan-08 9:42 
GeneralRe: C# sms Pin
Gareth H16-Jan-08 11:58
Gareth H16-Jan-08 11:58 
GeneralRe: C# sms Pin
Ennis Ray Lynch, Jr.16-Jan-08 15:15
Ennis Ray Lynch, Jr.16-Jan-08 15:15 
GeneralRe: C# sms Pin
li32796531616-Jan-08 20:23
li32796531616-Jan-08 20:23 
GeneralAdding items at runtime to ContextMenuStrip Pin
Le centriste16-Jan-08 9:36
Le centriste16-Jan-08 9:36 
GeneralRe: Adding items at runtime to ContextMenuStrip Pin
Giorgi Dalakishvili16-Jan-08 9:45
mentorGiorgi Dalakishvili16-Jan-08 9:45 
GeneralRe: Adding items at runtime to ContextMenuStrip Pin
Le centriste16-Jan-08 9:59
Le centriste16-Jan-08 9:59 
GeneralRe: Adding items at runtime to ContextMenuStrip Pin
Giorgi Dalakishvili16-Jan-08 10:05
mentorGiorgi Dalakishvili16-Jan-08 10:05 
GeneralLocked files Pin
Johan Martensson16-Jan-08 8:50
Johan Martensson16-Jan-08 8:50 
GeneralRe: Locked files Pin
Giorgi Dalakishvili16-Jan-08 9:25
mentorGiorgi Dalakishvili16-Jan-08 9:25 
GeneralHighlight Pin
simworld16-Jan-08 8:47
simworld16-Jan-08 8:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.