In VB toolbox, I put a window calendar, I have also put a textbox beside calendar. What is the code of VB6, when I click on calendar date, it will transfer to the textbox in dd/mm/yyyy format?
Clicking calendar date transfer it into a textbox
Collapse
X
-
Originally posted by mesubhamIn VB toolbox,I put a window calendar,I have also put a textbox beside calendar,wat is the code of VB6,when I click on calendar date,It will transfer to the textbox in dd/mm/yyyy format.... -
-
Originally posted by mesubhamIn VB toolbox,I put a window calendar,I have also put a textbox beside calendar,wat is the code of VB6,when I click on calendar date,It will transfer to the textbox in dd/mm/yyyy format....
Why don't you try the DTPicker? It has a nicer UI than the Window Calendar anyway they have just the same functions I think. : )Last edited by Killer42; Nov 22 '07, 02:07 AM.Comment
-
Originally posted by mesubhamIn VB toolbox,I put a window calendar,I have also put a textbox beside calendar,wat is the code of VB6,when I click on calendar date,It will transfer to the textbox in dd/mm/yyyy format....
[code=vb]
Text1.Text = Format(Calander 1.Value,"dd/mm/yyyy")
[/code]
Regards
VeenaComment
-
Originally posted by mesubhamI have written the code in calendar1 click event.
Text1.Text = Format(Calander 1.Value, "dd/mm/yyyy")
It gives an error........Ob ject required, ERROR runtime 424
Help.
Sorry, Spelling mistake there..
Text1.Text = Format(Calendar 1.Value, "dd/mm/yyyy")
Regards
VeenaComment
Comment