Hi everybody,
I've decided to spend few more minutes on a little VB.NET Windows Forms application I wrote yesterday originally based on the code of Mike Cole.
Few questions.
1) I don't see a Tooltip property for the textbox. My textbox may not hold the whole value, so my question is - what should I do to make a tooltip text to show the whole value in the textbox in cases when the length of it is not enough?
2) I don't really like the MS DatePicker. I want a date textbox and a little button to show the calendar and pick the date. What would you suggest me to use here?
3) I have a texbox to type the name of the file to save the results into. I'm thinking of using SaveDialog, but I also want to be able to plainly type in the textbox without any dialogs. I'm thinking what would be a good approach here? Add this dialog invocation in the GotFocus of the textbox? What do you think?
UPDATE. Wow, got an error that causes the VS to shut down.
I had the following code in the GotFocus of the textbox:
Private Sub txtOutput_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtOutput.GotFocus
Dim result As DialogResult = Me.SaveFileDialog1.ShowDialog()
If result = DialogResult.OK Then
Me.txtOutput.Text = SaveFileDialog1.FileName
End If
End Sub
I guess I should try something different here.
Thanks a lot in advance.
If it's not broken, fix it until it is.
My Blog