Public Sub set_date_picker(intmonth As Int, intyear As Int) As Panel
Dim devwidth As Int = GetDeviceLayoutValues.Width
Dim devheight As Int = GetDeviceLayoutValues.height - 40dip ' title bar height not included
pnlpicker.Initialize("pnlpicker")
pnlpicker.RemoveAllViews
Private btnprev As Button = set_button("PREV",Colors.ARGB(100,182,221,249),"btnprev")
pnlpicker.AddView(btnprev,0dip,0dip,70dip,40dip)
lblseldate = set_label("",Colors.ARGB(100,230,230,230),"")
pnlpicker.AddView(lblseldate,140dip,0dip,devwidth - 210dip,40dip)
Private btnnext As Button = set_button("NEXT",Colors.ARGB(100,182,221,249),"btnnext")
pnlpicker.AddView(btnnext,devwidth - 70dip,0dip,70dip,40dip)
Private pnlmonth As Panel
pnlmonth.Initialize("pnlmonth")
pnlmonth = set_month_panel(intmonth,intyear)
Private btntoday As Button = set_button("NOW",Colors.ARGB(100,182,221,249),"btntoday")
pnlpicker.AddView(btntoday,70dip,0dip,70dip,40dip)
pnlpicker.AddView(pnlmonth,0dip,40dip,devwidth,devheight-40dip)
pnlpicker.SetLayoutAnimated(0dip, 0dip, 0dip, devwidth, devheight-40dip)
Return pnlpicker
End Sub