Hi everbody,
I'm just wondering why VB.Net FolderBrowserDialog control have no event handler (same as SelectionChanged and etc.) to handle some events if necessary!:angryfire:
The problem is unlike VB6 which we could handle events same as SelectionChanged in BrowseFF control to disable or enable Ok button if the Selected Path was null or empty, here in VB.Net I have not found any way to do that. Years ago in VB6 we simply used to write following codes and it was finshed:
Private Sub BrowseFF1_SelectionChanged(CurrentItem As MBBrowse.ShellItem, OKEnabled As Boolean)
If CurrentItem.fullPath = "" Then
OKEnabled = False
Else
OKEnabled = True
End If
End Sub
But now I'm confused! Should I write a new class for it and declare new event handler, or what? Any idea will be appreciated previously. thnx.
I'm just wondering why VB.Net FolderBrowserDialog control have no event handler (same as SelectionChanged and etc.) to handle some events if necessary!:angryfire:
The problem is unlike VB6 which we could handle events same as SelectionChanged in BrowseFF control to disable or enable Ok button if the Selected Path was null or empty, here in VB.Net I have not found any way to do that. Years ago in VB6 we simply used to write following codes and it was finshed:
Private Sub BrowseFF1_SelectionChanged(CurrentItem As MBBrowse.ShellItem, OKEnabled As Boolean)
If CurrentItem.fullPath = "" Then
OKEnabled = False
Else
OKEnabled = True
End If
End Sub
But now I'm confused! Should I write a new class for it and declare new event handler, or what? Any idea will be appreciated previously. thnx.