Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 207
  • Last Modified:

VB6 calender question?

If i want to create a drop list control, when the user click it, then it will popup a calender and then user can select a date from there and then the date will show on the drop list as selected date, how please ?
0
lungwa
Asked:
lungwa
  • 2
1 Solution
 
Shiju SasidharanCommented:
hi

goto Project Menu - > Components
select   Microsoft Windows Common Controls-2  6.0

now u will see four extra controls on ur tool box, from there select DTPicker Control and place it on ur Form
'==================
Private Sub Command1_Click()
    MsgBox DTPicker1.Value
End Sub
Private Sub Form_Load()
    DTPicker1.Format = dtpCustom
    DTPicker1.CustomFormat = "DD-MMM-YYYY"
    DTPicker1.Value = Date
End Sub
'=================

;-)
Shiju
0
 
Shiju SasidharanCommented:
Grade B ?
Not satisfied with the answer ??
anyway, thank u
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now