Click here to Skip to main content
15,887,256 members
Home / Discussions / C#
   

C#

 
GeneralRe: Registration required Pin
#realJSOP8-Nov-09 1:48
mve#realJSOP8-Nov-09 1:48 
GeneralRe: Registration required Pin
Christian Graus7-Nov-09 9:11
protectorChristian Graus7-Nov-09 9:11 
GeneralRe: Registration required [modified] Pin
_Madmatt7-Nov-09 21:35
_Madmatt7-Nov-09 21:35 
GeneralRe: Registration required Pin
#realJSOP8-Nov-09 1:54
mve#realJSOP8-Nov-09 1:54 
QuestionSpeech Recognition for vista and xp too using c# 2008 Pin
krinaljariwala7-Nov-09 4:43
krinaljariwala7-Nov-09 4:43 
AnswerRe: Speech Recognition for vista and xp too using c# 2008 Pin
0x3c07-Nov-09 5:34
0x3c07-Nov-09 5:34 
QuestionEventHandler in DirectoryTreeView App Pin
thungphan7-Nov-09 3:54
thungphan7-Nov-09 3:54 
AnswerRe: EventHandler in DirectoryTreeView App Pin
Luc Pattyn7-Nov-09 4:19
sitebuilderLuc Pattyn7-Nov-09 4:19 
Hi,

If I correctly understood your problem, you could store the filename in pic.Tag

Some comments:

1. there is a bug: GIF files won't work (typo)

2. you should never catch an unspecified exception and then ignore it; at the minimum log its ToString() result somewhere, maybe in a log file. The only ones that are fine to ignore, are very specific ones about which you don't care (such as not getting access to some folder, in your app).

3. isn't your app terribly slow on directories that contain lots of images?

4. you should call Dispose() on all the images and all the PictureBoxes you no longer need. This applies to thumbnailsFLP.Controls.Clear(); (of which you have 2!).

5. pic.Image = Image.FromFile(fn); locks the file, so you can't delete the image file while the PB is present on your Form. The solution is to use Image.FromStream().

Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


GeneralRe: EventHandler in DirectoryTreeView App Pin
thungphan7-Nov-09 5:05
thungphan7-Nov-09 5:05 
QuestionTCP Connections and Threads Pin
SimpleData7-Nov-09 3:16
SimpleData7-Nov-09 3:16 
AnswerRe: TCP Connections and Threads Pin
Jimmanuel7-Nov-09 3:45
Jimmanuel7-Nov-09 3:45 
AnswerRe: TCP Connections and Threads Pin
N a v a n e e t h7-Nov-09 7:45
N a v a n e e t h7-Nov-09 7:45 
Questionhow to create database backup programmatically in mysql using c#.net Pin
gopal_bnvs7-Nov-09 1:54
gopal_bnvs7-Nov-09 1:54 
AnswerRe: how to create database backup programmatically in mysql using c#.net Pin
mihirpt1231-Jul-10 11:41
mihirpt1231-Jul-10 11:41 
GeneralRe: how to create database backup programmatically in mysql using c#.net Pin
Bhaumik Lathia17-Jun-11 23:39
Bhaumik Lathia17-Jun-11 23:39 
Questionget Datetime array through DataReader Pin
Mr.Kode7-Nov-09 0:09
Mr.Kode7-Nov-09 0:09 
AnswerRe: get Datetime array through DataReader Pin
N a v a n e e t h7-Nov-09 1:50
N a v a n e e t h7-Nov-09 1:50 
GeneralRe: get Datetime array through DataReader Pin
Mr.Kode7-Nov-09 2:06
Mr.Kode7-Nov-09 2:06 
GeneralRe: get Datetime array through DataReader Pin
N a v a n e e t h7-Nov-09 2:38
N a v a n e e t h7-Nov-09 2:38 
AnswerRe: get Datetime array through DataReader Pin
PIEBALDconsult7-Nov-09 3:26
mvePIEBALDconsult7-Nov-09 3:26 
Questioncall a c# funcation in html code Pin
saurabh8april6-Nov-09 22:23
saurabh8april6-Nov-09 22:23 
AnswerRe: call a c# funcation in html code Pin
Richard MacCutchan6-Nov-09 22:40
mveRichard MacCutchan6-Nov-09 22:40 
AnswerRe: call a c# funcation in html code Pin
OriginalGriff6-Nov-09 22:59
mveOriginalGriff6-Nov-09 22:59 
AnswerRe: call a c# funcation in html code Pin
Christian Graus6-Nov-09 23:36
protectorChristian Graus6-Nov-09 23:36 
GeneralRe: call a c# funcation in html code Pin
saurabh8april7-Nov-09 2:23
saurabh8april7-Nov-09 2:23 

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.