This is a migrated thread and some comments may be shown as answers.

Setting TimePicker to a null value in VB

3 Answers 1259 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Art
Top achievements
Rank 1
Art asked on 09 Sep 2015, 11:29 PM

I'm not databinding, just trying to set the timepicker to null. I can set the nulltext property, but how to set the value to null?

Later

Art

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 10 Sep 2015, 09:28 AM
Hello Art,

Thank you for writing.

The following snippet shows how you can set the value to null:
private void radButton1_Click(object sender, EventArgs e)
{
    radTimePicker1.NullText = "Null";
    radTimePicker1.Value = null;
}

Let me know if you have additional questions.

Regards,
Dimitar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Art
Top achievements
Rank 1
answered on 10 Sep 2015, 02:17 PM

That doesn't look like VB code to me. 

radTimePicker1.Value = null doesn't work in VB.Net​

0
Dimitar
Telerik team
answered on 10 Sep 2015, 03:00 PM
Hello Art,

I just noticed that you have specified the preferred language in the subject. The code in Visual Basic is similar:
Private Sub radButton1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles radButton1.Click
     
    radTimePicker1.Value = Nothing
End Sub

I hope this will be useful.

Regards,
Dimitar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Art
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Art
Top achievements
Rank 1
Share this question
or