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

C#

 
GeneralRe: TCP/IP port control Pin
srini vas26-Dec-07 18:55
srini vas26-Dec-07 18:55 
GeneralImage.FromFile question Pin
Mike Hankey26-Dec-07 16:29
mveMike Hankey26-Dec-07 16:29 
GeneralRe: Image.FromFile question Pin
Luc Pattyn26-Dec-07 16:35
sitebuilderLuc Pattyn26-Dec-07 16:35 
GeneralRe: Image.FromFile question Pin
Mike Hankey26-Dec-07 16:47
mveMike Hankey26-Dec-07 16:47 
GeneralRe: Image.FromFile question Pin
Luc Pattyn26-Dec-07 16:53
sitebuilderLuc Pattyn26-Dec-07 16:53 
GeneralRe: Image.FromFile question Pin
Mike Hankey26-Dec-07 17:07
mveMike Hankey26-Dec-07 17:07 
GeneralRe: Image.FromFile question Pin
Luc Pattyn27-Dec-07 5:06
sitebuilderLuc Pattyn27-Dec-07 5:06 
GeneralRe: Image.FromFile question Pin
Mike Hankey27-Dec-07 6:31
mveMike Hankey27-Dec-07 6:31 
Luc Pattyn wrote:
1. file names can be case insensitive (Windows) or sensitive (Unix)
2. there are more image extensions (.TIF, .WMF, .EMF), and the list may grow
3. what if a file holds a valid image but does not carry the appropriate extension?


Hey Luc,

Thanks again for your time.
#1 I addressed by modifying the Regex expression to include insensitivity;
Regex r = new Regex(@"(?i-)(\b\.bmp\b|\b\.png\b|\b\.jpg\b|\b\.jpeg\b|\b\.gif\b)");

#2 I had thought about adding the ones I knew of and letting user add to list?

#2-3 I guess just try it and if it fails don't load?

This is for an article I'm going to submit here shortly. Its a Clipboard spy demo that shows what can be done and how to do it. The main thing I'm trying to convey is the formats, how to retrieve the data, etc.. But I do intend on extending it for another project i'm working on and will need the functionality you mention. But I'm not going to address it for the article.

I have these things locked somewhere in the back of the ole cranium for future reference.

Input always appreciated,
Mike

Life is not measured by the number of breaths we take, but by the
moments that take our breath away. "George Carlin"


Jokexxx cranium Pin
Luc Pattyn27-Dec-07 7:13
sitebuilderLuc Pattyn27-Dec-07 7:13 
GeneralRe: Image.FromFile question Pin
KaptinKrunch28-Dec-07 3:48
KaptinKrunch28-Dec-07 3:48 
GeneralRe: Image.FromFile question Pin
Mike Hankey28-Dec-07 4:02
mveMike Hankey28-Dec-07 4:02 
QuestionBinding DataGridView to a Collection. Pin
shehezada26-Dec-07 14:48
shehezada26-Dec-07 14:48 
General.NET serialPort dataReceived Event Help Pin
cmarcus197926-Dec-07 13:54
cmarcus197926-Dec-07 13:54 
GeneralRe: .NET serialPort dataReceived Event Help Pin
Luc Pattyn26-Dec-07 16:34
sitebuilderLuc Pattyn26-Dec-07 16:34 
GeneralRe: .NET serialPort dataReceived Event Help Pin
cmarcus197926-Dec-07 17:00
cmarcus197926-Dec-07 17:00 
Questionhow can i protect my program's in c# Pin
E_Gold26-Dec-07 10:12
E_Gold26-Dec-07 10:12 
AnswerRe: how can i protect my program's in c# Pin
Not Active26-Dec-07 11:22
mentorNot Active26-Dec-07 11:22 
AnswerRe: how can i protect my program's in c# Pin
Paul Conrad26-Dec-07 11:51
professionalPaul Conrad26-Dec-07 11:51 
GeneralRe: how can i protect my program's in c# Pin
E_Gold27-Dec-07 0:16
E_Gold27-Dec-07 0:16 
GeneralRe: how can i protect my program's in c# Pin
Paul Conrad27-Dec-07 5:11
professionalPaul Conrad27-Dec-07 5:11 
QuestionUsing avg function for new constructed column? Pin
omegazafer26-Dec-07 10:10
omegazafer26-Dec-07 10:10 
AnswerRe: Using avg function for new constructed column? Pin
J$26-Dec-07 10:23
J$26-Dec-07 10:23 
GeneralRe: Using avg function for new constructed column? Pin
omegazafer26-Dec-07 11:07
omegazafer26-Dec-07 11:07 
GeneralRe: Using avg function for new constructed column? Pin
omegazafer26-Dec-07 11:19
omegazafer26-Dec-07 11:19 
GeneralCustomizing the property grid.. Pin
slipster21626-Dec-07 9:16
slipster21626-Dec-07 9:16 

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.