Click here to Skip to main content
15,909,324 members
Home / Discussions / C#
   

C#

 
AnswerRe: Newbie: Question about ListViews? Pin
led mike25-Oct-06 12:59
led mike25-Oct-06 12:59 
GeneralRe: Newbie: Question about ListViews? Pin
Phillip Hodges25-Oct-06 13:04
Phillip Hodges25-Oct-06 13:04 
GeneralRe: Newbie: Question about ListViews? Pin
led mike30-Oct-06 7:57
led mike30-Oct-06 7:57 
QuestionHow can I get the maximum length of a string that will fit into a textbox Pin
Dan Neely25-Oct-06 10:25
Dan Neely25-Oct-06 10:25 
AnswerRe: How can I get the maximum length of a string that will fit into a textbox Pin
led mike25-Oct-06 11:24
led mike25-Oct-06 11:24 
Questionhow do I binary search a struct array? Pin
kshet2625-Oct-06 10:23
kshet2625-Oct-06 10:23 
AnswerRe: how do I binary search a struct array? Pin
Guffa25-Oct-06 11:22
Guffa25-Oct-06 11:22 
GeneralRe: how do I binary search a struct array? Pin
kshet2625-Oct-06 11:47
kshet2625-Oct-06 11:47 
AnswerRe: how do I binary search a struct array? Pin
Guffa25-Oct-06 12:08
Guffa25-Oct-06 12:08 
GeneralRe: how do I binary search a struct array? Pin
kshet2626-Oct-06 2:33
kshet2626-Oct-06 2:33 
GeneralRe: how do I binary search a struct array? Pin
Guffa26-Oct-06 10:08
Guffa26-Oct-06 10:08 
QuestionInstantiate a HTMLDocument object with the Url or Html stream Pin
Nadia Monalisa25-Oct-06 8:53
Nadia Monalisa25-Oct-06 8:53 
QuestionSafeArray Pin
C++NewBe25-Oct-06 8:49
C++NewBe25-Oct-06 8:49 
AnswerRe: SafeArray Pin
led mike25-Oct-06 10:08
led mike25-Oct-06 10:08 
QuestionAny tool for code clean up ? Pin
Nadia Monalisa25-Oct-06 8:15
Nadia Monalisa25-Oct-06 8:15 
QuestionCompare types in a plugin API Pin
Jost Pedro25-Oct-06 7:09
Jost Pedro25-Oct-06 7:09 
AnswerRe: Compare types in a plugin API Pin
led mike25-Oct-06 8:55
led mike25-Oct-06 8:55 
GeneralRe: Compare types in a plugin API Pin
Jost Pedro26-Oct-06 0:00
Jost Pedro26-Oct-06 0:00 
Questionhow to deploy my app (vs2005) with crystalreport XI ? Pin
hdv21225-Oct-06 7:07
hdv21225-Oct-06 7:07 
AnswerRe: how to deploy my app (vs2005) with crystalreport XI ? Pin
bearfx25-Oct-06 8:33
bearfx25-Oct-06 8:33 
QuestionHow to debug when I'm developing an outlook add-in using COM? [modified] Pin
OctopusThu25-Oct-06 6:42
OctopusThu25-Oct-06 6:42 
QuestionHowTo make a dll, which can be called by VBA Pin
Ariadne25-Oct-06 6:29
Ariadne25-Oct-06 6:29 
AnswerRe: HowTo make a dll, which can be called by VBA Pin
bearfx25-Oct-06 8:35
bearfx25-Oct-06 8:35 
QuestionArray List Pin
iamnew2C#25-Oct-06 6:15
iamnew2C#25-Oct-06 6:15 
How would I return the below in an array list object I started to stub it out but I confused myself. Any advice, help.

public void Execute() {
string strRoot = ConfigurationSettings.AppSettings["Root"];
DirectoryInfo dir = new DirectoryInfo(strRoot);
//Pass the Directory for displaying the contents
getDirsFiles(dir);

}


public void getDirsFiles(DirectoryInfo d)
{
//create my array of files using FileInfo object
FileInfo [] files;
//This will passed in or set to find zip files
//get all files for the current directory
string strFileType = ConfigurationSettings.AppSettings["FileType"];
files = d.GetFiles(strFileType);

//iterate through the directory and print the files
foreach (FileInfo file in files)
{
//get details of each file using file object
String fileName = file.FullName;
String fileSize = file.Length.ToString();
String fileExtension =file.Extension;
String fileCreated = file.LastWriteTime.ToString();

}

//get sub-folders for the current directory
DirectoryInfo [] dirs = d.GetDirectories("*.*");
foreach (DirectoryInfo dir in dirs)
if (dirs.Length > 0)
{
{

getDirsFiles(dir);
}
}
}


public ArrayList GetGrantFileInfo(NameValueCollection psRootDirs, string psFileType, string psIncludeFilter, string psExcludeFilter, ArrayList oFolder, CriteriaType oCriteriaType)
{
//Impliment GetGrantFileInfo()

// How do I take the code above and put it in here???? HELP.

ArrayList arrGrantInfo = new ArrayList();
GrantFileInfo oGrantFileInfo = new GrantFileInfo()
arrGrantInfo.Add(oGrantFileInfo);

return arrGrantInfo;

}
QuestionMS Web Browser control Pin
CoolASL25-Oct-06 5:42
CoolASL25-Oct-06 5: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.