Click here to Skip to main content
15,911,715 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can I load an image in C# Pin
apoll20-Nov-07 6:50
apoll20-Nov-07 6:50 
GeneralRe: How can I load an image in C# Pin
Skippums20-Nov-07 6:58
Skippums20-Nov-07 6:58 
GeneralRe: How can I load an image in C# Pin
apoll20-Nov-07 7:07
apoll20-Nov-07 7:07 
GeneralRe: How can I load an image in C# Pin
MCEdwards20-Nov-07 7:23
MCEdwards20-Nov-07 7:23 
GeneralRe: How can I load an image in C# Pin
apoll20-Nov-07 7:53
apoll20-Nov-07 7:53 
GeneralRe: How can I load an image in C# Pin
Skippums20-Nov-07 7:58
Skippums20-Nov-07 7:58 
GeneralRe: How can I load an image in C# Pin
apoll20-Nov-07 8:25
apoll20-Nov-07 8:25 
GeneralRe: How can I load an image in C# Pin
Skippums20-Nov-07 9:02
Skippums20-Nov-07 9:02 
Just do this...

static class Program
{
[STAThread]
static void Main(string[] arguments)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1(arguments));
}
}


public partial class Form1 : Form
{
Bitmap m_Img null;

public Form1(string[] arguments)
{
InitializeComponent();
if (arguments != null)
{
foreach (string filePath in arguments)
{
if (File.Exists(filePath)) {
try {
m_Img = new Bitmap(filePath);
} catch {
// Do something if error reading file as bitmap
}
}
}
}
}
}

Jeff
GeneralRe: How can I load an image in C# Pin
apoll20-Nov-07 9:26
apoll20-Nov-07 9:26 
QuestionHow can I read the file's content on server? Pin
pcphuc20-Nov-07 5:57
pcphuc20-Nov-07 5:57 
AnswerRe: How can I read the file's content on server? Pin
Judah Gabriel Himango20-Nov-07 8:07
sponsorJudah Gabriel Himango20-Nov-07 8:07 
GeneralRe: How can I read the file's content on server? Pin
pcphuc20-Nov-07 14:14
pcphuc20-Nov-07 14:14 
GeneralRe: How can I read the file's content on server? Pin
pcphuc20-Nov-07 14:43
pcphuc20-Nov-07 14:43 
GeneralRe: How can I read the file's content on server? Pin
pcphuc20-Nov-07 17:10
pcphuc20-Nov-07 17:10 
GeneralRe: How can I read the file's content on server? Pin
Judah Gabriel Himango21-Nov-07 5:16
sponsorJudah Gabriel Himango21-Nov-07 5:16 
QuestionPreventing Control Painting Pin
DahrkDaiz20-Nov-07 5:34
DahrkDaiz20-Nov-07 5:34 
AnswerRe: Preventing Control Painting Pin
Skippums20-Nov-07 6:02
Skippums20-Nov-07 6:02 
QuestionFree unmanaged memory issue Pin
sampdoria20-Nov-07 5:33
sampdoria20-Nov-07 5:33 
Questioninteresting topic plz help Pin
sivaramireddy p20-Nov-07 4:57
sivaramireddy p20-Nov-07 4:57 
AnswerYou must be kidding! Pin
leckey20-Nov-07 5:08
leckey20-Nov-07 5:08 
AnswerRe: interesting topic plz help Pin
duncanmhor20-Nov-07 5:38
duncanmhor20-Nov-07 5:38 
AnswerRe: interesting topic plz help Pin
MasterSharp20-Nov-07 10:42
MasterSharp20-Nov-07 10:42 
GeneralRe: interesting topic plz help Pin
Pete O'Hanlon20-Nov-07 11:07
mvePete O'Hanlon20-Nov-07 11:07 
GeneralRe: interesting topic plz help Pin
MasterSharp23-Nov-07 17:45
MasterSharp23-Nov-07 17:45 
Questionhow to send value in port(tcp/ip) Pin
sivaramireddy p20-Nov-07 4:50
sivaramireddy p20-Nov-07 4:50 

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.