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

Date Picker - create programatically

1 Answer 42 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Bruce
Top achievements
Rank 1
Bruce asked on 23 Jan 2008, 01:18 AM
How do I create a date picker in VB code (without having one explicitly defined on a form).

Thanks

1 Answer, 1 is accepted

Sort by
0
Leon
Top achievements
Rank 1
answered on 23 Jan 2008, 07:00 AM
That's an easy task, Bruce.

    Protected Sub Page_Load(ByVal sender As ObjectByVal As EventArgs)
        
Dim picker As RadDatePicker = New RadDatePicker
        PlaceHolder1.Controls.Add(picker)
    
End Sub

By the way, here is a good translator:

http://www.carlosag.net/Tools/CodeTranslator/Default.aspx

-Leon
Tags
Calendar
Asked by
Bruce
Top achievements
Rank 1
Answers by
Leon
Top achievements
Rank 1
Share this question
or