Results 1 to 4 of 4

Thread: Me.FolderBrowserDialog1.ShowDialog() << i need help??

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    50

    Me.FolderBrowserDialog1.ShowDialog() << i need help??

    i have a code Me.FolderBrowserDialog1.ShowDialog() where in the event handler button1 but i want to appear the selected folder in the textbox1 how this can be??? thanks
    Last edited by info; Mar 31st, 2006 at 02:31 PM. Reason: resolved

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: Me.FolderBrowserDialog1.ShowDialog() << i need help??



    just replace the
    VB Code:
    1. Me.FolderBrowserDialog1.ShowDialog
    with
    VB Code:
    1. If Me.FolderBrowserDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
    2.             Textbox1.text = Me.FolderBrowserDialog1.SelectedPath
    3.         End If

    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Question Re: Me.FolderBrowserDialog1.ShowDialog() << i need help??

    oops
    Last edited by MrGTI; Mar 31st, 2006 at 02:20 PM. Reason: :)
    ~Peter


  4. #4
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: Me.FolderBrowserDialog1.ShowDialog() << i need help??

    VB Code:
    1. Private fbrowser As New Windows.Forms.FolderBrowserDialog
    2.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    3.         fbrowser.ShowDialog()
    4.         If Not fbrowser.SelectedPath = String.Empty Then
    5.             Me.TextBox1.Text = fbrowser.SelectedPath
    6.         End If
    7.     End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width