با تغییر برچسب آدرس به یک TextBox موضوع حل شد ولی چندان جالب به نظر نمی آد
SharedScreenshot03.jpg
Private Sub CustomButton1_ButtonClicked(sender As MDF_Production_Unit.CustomButton) Handles CustomButton1.ButtonClicked
With New FolderBrowserDialog With {.Description = "پوشه محل ذخیره سازی اطلاعات را تعیین و کلید OK را کلیک کنید...."}
If Me.DirectoryPathBox.Text.Length > 0 Then .SelectedPath = Me.DirectoryPathBox.Text
If .ShowDialog(Me) = Windows.Forms.DialogResult.Cancel Then
Me.DirectoryPathBox.Focus()
Exit Sub
End If
Me.DirectoryPathBox.Text = .SelectedPath
End With
End Sub
Private Sub DirectoryPathBox_GotFocus(sender As Object, e As System.EventArgs) Handles DirectoryPathBox.GotFocus
Me.DirectoryPathBox.SelectionStart = Me.DirectoryPathBox.TextLength
End Sub
Private Sub DirectoryPathBox_TextChanged(sender As Object, e As System.EventArgs) Handles DirectoryPathBox.TextChanged
Me.DirectoryPathBox.Focus()
End Sub