Click here to Skip to main content
15,903,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: WinForms Update A Dialog Pin
Kevin Marois29-Apr-15 13:16
professionalKevin Marois29-Apr-15 13:16 
GeneralRe: WinForms Update A Dialog Pin
Sascha Lefèvre29-Apr-15 13:33
professionalSascha Lefèvre29-Apr-15 13:33 
QuestionFit text to label without changing label font and size Pin
Al-Rehman29-Apr-15 2:55
Al-Rehman29-Apr-15 2:55 
AnswerRe: Fit text to label without changing label font and size Pin
OriginalGriff29-Apr-15 4:58
mveOriginalGriff29-Apr-15 4:58 
GeneralRe: Fit text to label without changing label font and size Pin
Al-Rehman29-Apr-15 5:10
Al-Rehman29-Apr-15 5:10 
GeneralRe: Fit text to label without changing label font and size Pin
Sascha Lefèvre29-Apr-15 5:14
professionalSascha Lefèvre29-Apr-15 5:14 
GeneralRe: Fit text to label without changing label font and size Pin
Pete O'Hanlon29-Apr-15 5:15
mvePete O'Hanlon29-Apr-15 5:15 
GeneralRe: Fit text to label without changing label font and size Pin
OriginalGriff29-Apr-15 5:22
mveOriginalGriff29-Apr-15 5:22 
Questionc# window Application"How to resize the control proportionally at runtime using c# window application " Pin
Pranita Gupta29-Apr-15 0:14
professionalPranita Gupta29-Apr-15 0:14 
AnswerRe: c# window Application"How to resize the control proportionally at runtime using c# window application " Pin
Pete O'Hanlon29-Apr-15 0:18
mvePete O'Hanlon29-Apr-15 0:18 
AnswerRe: c# window Application"How to resize the control proportionally at runtime using c# window application " Pin
Eddy Vluggen29-Apr-15 1:12
professionalEddy Vluggen29-Apr-15 1:12 
GeneralRe: c# window Application"How to resize the control proportionally at runtime using c# window application " Pin
OriginalGriff29-Apr-15 4:59
mveOriginalGriff29-Apr-15 4:59 
QuestionWhy designer save Bad COORDINATES of UserControl's Child (EnableDesign) ? Pin
Emanuele Bonin28-Apr-15 23:39
Emanuele Bonin28-Apr-15 23:39 
AnswerRe: Why designer save Bad COORDINATES of UserControl's Child (EnableDesign) ? Pin
BillWoodruff30-Apr-15 3:37
professionalBillWoodruff30-Apr-15 3:37 
GeneralRe: Why designer save Bad COORDINATES of UserControl's Child (EnableDesign) ? Pin
Emanuele Bonin30-Apr-15 6:08
Emanuele Bonin30-Apr-15 6:08 
QuestionMake a faster search of folders Pin
Member 1140151628-Apr-15 11:34
Member 1140151628-Apr-15 11:34 
AnswerRe: Make a faster search of folders Pin
Mycroft Holmes28-Apr-15 14:05
professionalMycroft Holmes28-Apr-15 14:05 
AnswerRe: Make a faster search of folders Pin
Dave Kreskowiak28-Apr-15 14:16
mveDave Kreskowiak28-Apr-15 14:16 
AnswerRe: Make a faster search of folders Pin
Abhinav S28-Apr-15 17:38
Abhinav S28-Apr-15 17:38 
GeneralRe: Make a faster search of folders Pin
Eddy Vluggen28-Apr-15 23:13
professionalEddy Vluggen28-Apr-15 23:13 
GeneralRe: Make a faster search of folders Pin
Abhinav S28-Apr-15 23:24
Abhinav S28-Apr-15 23:24 
AnswerRe: Make a faster search of folders Pin
Pete O'Hanlon29-Apr-15 1:00
mvePete O'Hanlon29-Apr-15 1:00 
SuggestionRe: Make a faster search of folders Pin
Richard Deeming29-Apr-15 1:40
mveRichard Deeming29-Apr-15 1:40 
AnswerRe: Make a faster search of folders Pin
Richard Deeming29-Apr-15 1:35
mveRichard Deeming29-Apr-15 1:35 
As I said in the comments, if the directories you're looking for are immediate children of the root directory, you'll probably get faster results using this:
C#
private void btn_procura_Click(object sender, EventArgs e)
{
    string toFind = txt_procura.Text;
    var root = new DirectoryInfo(@"c:\");
    var matchingDirectories = root.EnumerateDirectories(toFind, SearchOption.TopDirectoryOnly);

    foreach (DirectoryInfo directory in matchingDirectories)
    {
        Process.Start(new ProcessStartInfo
        {
            FileName = directory.FullName,
            UseShellExecute = true,
            Verb = "open"
        });
    }
}

That will also let you use wildcard characters (* and ?) in the search box.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


AnswerRe: Make a faster search of folders Pin
V.29-Apr-15 2:50
professionalV.29-Apr-15 2:50 

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.