Click here to Skip to main content
15,908,274 members
Home / Discussions / C#
   

C#

 
AnswerRe: Memory allocation Pin
mikone30-Aug-06 5:05
mikone30-Aug-06 5:05 
GeneralRe: Memory allocation Pin
leppie30-Aug-06 11:17
leppie30-Aug-06 11:17 
GeneralRe: Memory allocation Pin
mikone30-Aug-06 11:33
mikone30-Aug-06 11:33 
GeneralRe: Memory allocation Pin
pawelpus30-Aug-06 11:59
pawelpus30-Aug-06 11:59 
GeneralRe: Memory allocation Pin
mikone30-Aug-06 12:28
mikone30-Aug-06 12:28 
GeneralRe: Memory allocation Pin
pawelpus30-Aug-06 22:15
pawelpus30-Aug-06 22:15 
GeneralRe: Memory allocation Pin
mikone31-Aug-06 7:25
mikone31-Aug-06 7:25 
AnswerRe: Memory allocation Pin
Robert Rohde30-Aug-06 5:45
Robert Rohde30-Aug-06 5:45 
GeneralRe: Memory allocation Pin
pawelpus30-Aug-06 12:01
pawelpus30-Aug-06 12:01 
AnswerRe: Memory allocation Pin
Colin Angus Mackay30-Aug-06 9:56
Colin Angus Mackay30-Aug-06 9:56 
GeneralRe: Memory allocation Pin
pawelpus30-Aug-06 11:58
pawelpus30-Aug-06 11:58 
QuestionCreating dependent programs Pin
ToBrax30-Aug-06 4:53
ToBrax30-Aug-06 4:53 
AnswerRe: Creating dependent programs Pin
albCode30-Aug-06 4:56
albCode30-Aug-06 4:56 
AnswerRe: Creating dependent programs Pin
mikone30-Aug-06 4:59
mikone30-Aug-06 4:59 
QuestionCompare 2 DataTables Pin
Omkar Ghaisas30-Aug-06 4:44
Omkar Ghaisas30-Aug-06 4:44 
AnswerDon't crosspost Pin
leckey30-Aug-06 7:42
leckey30-Aug-06 7:42 
QuestionPorts.SerialPort freezes Pin
sjembek30-Aug-06 4:44
sjembek30-Aug-06 4:44 
AnswerRe: Ports.SerialPort freezes Pin
sjembek30-Aug-06 5:20
sjembek30-Aug-06 5:20 
GeneralRe: Ports.SerialPort freezes Pin
Dave Kreskowiak30-Aug-06 5:51
mveDave Kreskowiak30-Aug-06 5:51 
QuestionSearch Pattern Pin
Sabry190530-Aug-06 4:38
Sabry190530-Aug-06 4:38 
AnswerRe: Search Pattern Pin
mikone30-Aug-06 4:52
mikone30-Aug-06 4:52 
if it works like the filter for openfiledialog it should be enough to pass a string like
"*.jpeg|*.htm|*.html" - if not you could easily write it by yourself.

<br />
searchpattern[0] = "*.jpeg";<br />
searchpattern[1] = "*.html";<br />
searchpattern[n] = ...;<br />
<br />
FileInfo filelist[n];<br />
<br />
// (where n is the number of filetypes you would like to include in your searchpattern)<br />
<br />
for (int i = 0; i < searchpattern.GetLength(0) -1; i++)<br />
{<br />
   filelist[i] = Directory.GetFiles("C:\WhatEver", searchpattern[i]);<br />
}<br />
<br />
// At this point you will have an Array of Fileinfos which you will have to join.<br />


Since I haven't had to do anything similar there may be a built-in function (for passing multiple searchpattern) i dont know of...


Good luck,
mik
GeneralRe: Search Pattern Pin
Dave Kreskowiak30-Aug-06 5:49
mveDave Kreskowiak30-Aug-06 5:49 
AnswerRe: Search Pattern Pin
Judah Gabriel Himango30-Aug-06 5:12
sponsorJudah Gabriel Himango30-Aug-06 5:12 
AnswerRe: Search Pattern Pin
Judah Gabriel Himango30-Aug-06 7:02
sponsorJudah Gabriel Himango30-Aug-06 7:02 
GeneralRe: Search Pattern Pin
Sabry190530-Aug-06 7:44
Sabry190530-Aug-06 7:44 

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.