Hello,
I am using a MaskEdit TextBox with ##/##/#### in the mask property on my form to receive date entries like 01/01/2004, 03/15/2004 because you cannot mask regular textboxes (At least that is how it was explained to me). How do I pass the value of a MaskEdit TexBox to another variable or object? I have tried the following and it does not work....
Label4.Text = "'" & txtreceived.SelText & "'"
Label4.Text = "'" & txtreceived.Text & "'"
Label4.Text = txtreceived.SelText
Label4.Text = txtreceived.Text
Dim s As String = "'" & txtreceived.SelText & "'"
Dim s As String = "'" & txtreceived.Text & "'"
Dim s As String = txtreceived.SelText
Dim s As String = txtreceived.Text
unless I am missing something here, none of the above seemed to worked. Also, it seems to me that it is a complicated process handling date values and date entries in VB. I guess I'm spoiled from using Visual FoxPro for so many years. In VFP I can mask any textbox and format it for date values. And I can easily pass the value to another variable like this...
MyVar = Form1.TextBox1.value
and be done with it. How are the rest of you handling date formatted textboxes for data entry?
Thanks,
FoxT
I am using a MaskEdit TextBox with ##/##/#### in the mask property on my form to receive date entries like 01/01/2004, 03/15/2004 because you cannot mask regular textboxes (At least that is how it was explained to me). How do I pass the value of a MaskEdit TexBox to another variable or object? I have tried the following and it does not work....
Label4.Text = "'" & txtreceived.SelText & "'"
Label4.Text = "'" & txtreceived.Text & "'"
Label4.Text = txtreceived.SelText
Label4.Text = txtreceived.Text
Dim s As String = "'" & txtreceived.SelText & "'"
Dim s As String = "'" & txtreceived.Text & "'"
Dim s As String = txtreceived.SelText
Dim s As String = txtreceived.Text
unless I am missing something here, none of the above seemed to worked. Also, it seems to me that it is a complicated process handling date values and date entries in VB. I guess I'm spoiled from using Visual FoxPro for so many years. In VFP I can mask any textbox and format it for date values. And I can easily pass the value to another variable like this...
MyVar = Form1.TextBox1.value
and be done with it. How are the rest of you handling date formatted textboxes for data entry?
Thanks,
FoxT