How to set Datetimepicker in vb.net windows form as default to -Select Date-

I want to set the datetimepicker in vb.net windows form to its default value as --select date--
Because otherwise what default value can be put
searchsanjaysharmaAsked:
Who is Participating?
 
searchsanjaysharmaConnect With a Mentor Author Commented:
kindly give inputs for windows form in vb.net datetimepicker
0
 
Anuradha GoliConnect With a Mentor Systems Development / Support SpecialistCommented:
Use javascript to set watermark text for text box
 
function watermark(inputId,text)
    {
        var inputBox = document.getElementById(inputId);
        if (inputBox.value.length > 0)
        {
            if (inputBox.value == text)
            inputBox.value = '';
        }
        else
            inputBox.value = text;
    }

Open in new window


<input type="text" name="startdate" class="tcal" id="startdate" readonly="readonly"
                                onfocus="watermark('startdate','select startdate');" onblur="watermark('startdate','select startdate');" />

so that text disappears when mouse hovered

yo can use calendar code attached
index.zip
0
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
not sure if you can write something because it isn't a valid value. one thing for sure, you can leave it empty. check http://emoreau.com/Entries/Articles/2005/01/The-DateTimePicker-control.aspx
0
 
searchsanjaysharmaAuthor Commented:
ok
0
All Courses

From novice to tech pro — start learning today.