Click here to Skip to main content
15,891,764 members
Home / Discussions / C#
   

C#

 
QuestionResizing DateTimePicker to fit max value text Pin
hpjchobbes2-Jul-08 5:42
hpjchobbes2-Jul-08 5:42 
AnswerRe: Resizing DateTimePicker to fit max value text Pin
KaptinKrunch2-Jul-08 6:51
KaptinKrunch2-Jul-08 6:51 
AnswerRe: Resizing DateTimePicker to fit max value text Pin
led mike2-Jul-08 7:15
led mike2-Jul-08 7:15 
QuestionNeed help running Javascript when my toolbar button is clicked [modified] Pin
marc2212-Jul-08 5:30
marc2212-Jul-08 5:30 
AnswerRe: Need help running Javascript when my toolbar button is clicked Pin
benjymous2-Jul-08 22:37
benjymous2-Jul-08 22:37 
GeneralRe: Need help running Javascript when my toolbar button is clicked Pin
marc2213-Jul-08 3:04
marc2213-Jul-08 3:04 
QuestionFileSystemWatcher filter problem and how it works Pin
Xmen Real 2-Jul-08 5:24
professional Xmen Real 2-Jul-08 5:24 
AnswerRe: FileSystemWatcher filter problem and how it works Pin
KaptinKrunch2-Jul-08 6:45
KaptinKrunch2-Jul-08 6:45 
FSW monitors a directory for file creation, modification, deletion and renaming. The custom expression is to monitor only those file types that match that expression.

This example monitors only the directory where dir == the directory to monitor and only raise an event on file types of txt.
fileWatcher = new FileSystemWatcher(dir, "*.txt");
fileWatcher.EnableRaisingEvents = false;
fileWatcher.IncludeSubdirectories = false;
fileWatcher.NotifyFilter = NotifyFilters.FileName;
fileWatcher.Created += new FileSystemEventHandler(fileWatcher_Created);


Set fileWatcher.EnableRaisingEvents = true to enable the monitoring. To stop monitoring set the value to false.

http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx[^]

Just because we can; does not mean we should.

GeneralRe: FileSystemWatcher filter problem and how it works Pin
Xmen Real 2-Jul-08 7:02
professional Xmen Real 2-Jul-08 7:02 
GeneralRe: FileSystemWatcher filter problem and how it works Pin
KaptinKrunch2-Jul-08 7:23
KaptinKrunch2-Jul-08 7:23 
GeneralRe: FileSystemWatcher filter problem and how it works Pin
Xmen Real 2-Jul-08 7:27
professional Xmen Real 2-Jul-08 7:27 
QuestionHow to open a windows form window from an outlook mail Pin
sivasankar anumula2-Jul-08 4:56
sivasankar anumula2-Jul-08 4:56 
RantRe: How to open a windows form window from an outlook mail Pin
Spacix One2-Jul-08 5:03
Spacix One2-Jul-08 5:03 
AnswerRe: How to open a windows form window from an outlook mail Pin
PIEBALDconsult2-Jul-08 5:22
mvePIEBALDconsult2-Jul-08 5:22 
Questionneed answer Pin
Miss_hacker2-Jul-08 3:18
Miss_hacker2-Jul-08 3:18 
AnswerRe: need answer Pin
Simon P Stevens2-Jul-08 4:06
Simon P Stevens2-Jul-08 4:06 
AnswerRe: need answer Pin
KaptinKrunch2-Jul-08 6:55
KaptinKrunch2-Jul-08 6:55 
Questionhow to implement keyboard hotkeys to minimize an application & reopen it? Pin
WebMaster2-Jul-08 3:07
WebMaster2-Jul-08 3:07 
AnswerRe: how to implement keyboard hotkeys to minimize an application & reopen it? Pin
Xmen Real 2-Jul-08 5:30
professional Xmen Real 2-Jul-08 5:30 
AnswerRe: how to implement keyboard hotkeys to minimize an application & reopen it? Pin
Giorgi Dalakishvili2-Jul-08 8:18
mentorGiorgi Dalakishvili2-Jul-08 8:18 
QuestionOLE Objects & .Net Pin
euroUK2-Jul-08 3:06
euroUK2-Jul-08 3:06 
AnswerRe: OLE Objects & .Net Pin
led mike2-Jul-08 4:50
led mike2-Jul-08 4:50 
QuestionPropertyGrid questions Pin
Dewald2-Jul-08 2:43
Dewald2-Jul-08 2:43 
AnswerRe: PropertyGrid questions Pin
visualhint11-Aug-08 4:59
visualhint11-Aug-08 4:59 
Questionhow to get list of oracle servers running on network using c# Pin
ganeshdpatil2-Jul-08 2:42
ganeshdpatil2-Jul-08 2:42 

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.