Just thought i wait, finally i decided to buy a book on C# (book is now being shipped to me bought it ebay, author wrox books), studying a lot in SQL so i can put the two together as a career and later go into C++ to have 3 languages under my belt, anyway on with the question:
i want to make a program with check boxes to select which type of files you want to find in a certain directly (sorta like windows search bar) except you can search it by type and name in a wild search and click on the search button and come up with a list below in a results box from a listbox etc, how can this be done in Visual studio 2008 C#, i made a small nice gui interface but of course me being only 1 month experience in C# i dont know squat, but of course if you can show me just a small sample that would help a lot, i got down the browse button down for anyones reference if they want to know how if you want to click on browse which is in the code below however how about what i am requesting?
OpenFileDialog fdlg = new OpenFileDialog();
fdlg.Title = "C# Corner Open File Dialog";
fdlg.InitialDirectory = @"c:\";
fdlg.Filter = "All files (*.*)|*.*|All files (*.*)|*.*";
fdlg.FilterIndex = 2;
fdlg.RestoreDirectory = true;
if (fdlg.ShowDialog() == DialogResult.OK)
{
textBox1.Text = fdlg.FileName;
}
Edited by Jordan, 22 July 2008 - 08:57 AM.


Sign In
Create Account


Back to top









