469,926 Members | 1,717 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,926 developers. It's quick & easy.

Clicking calendar date transfer it into a textbox

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?
Nov 21 '07 #1
7 14482
lotus18
866 512MB
In 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....
Just copy the value property of the window calendar (click event) to the textbox.
Nov 21 '07 #2
debasisdas
8,127 Expert 4TB
You need to manually format the date.
Nov 21 '07 #3
lotus18
866 512MB
In 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....
Hi mesubham

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. : )
Nov 21 '07 #4
QVeen72
1,445 Expert 1GB
In 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....
Try This :

Expand|Select|Wrap|Line Numbers
  1. Text1.Text = Format(Calander1.Value,"dd/mm/yyyy")
  2.  
Regards
Veena
Nov 21 '07 #5
I have written the code in calendar1 click event.
Text1.Text = Format(Calander1.Value, "dd/mm/yyyy")

It gives an error........Object required, ERROR runtime 424

Help.
Nov 21 '07 #6
Killer42
8,435 Expert 8TB
It gives an error........Object required, ERROR runtime 424
Assuming this code was copied accurately to TheScripts, I'd say the error is caused by the fact that you mis-typed the name of your control.
Nov 22 '07 #7
QVeen72
1,445 Expert 1GB
I have written the code in calendar1 click event.
Text1.Text = Format(Calander1.Value, "dd/mm/yyyy")

It gives an error........Object required, ERROR runtime 424

Help.
Hi,

Sorry, Spelling mistake there..

Text1.Text = Format(Calendar1.Value, "dd/mm/yyyy")

Regards
Veena
Nov 22 '07 #8

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by praba kar | last post: by
2 posts views Thread by Dooglo | last post: by
4 posts views Thread by Marcus | last post: by
5 posts views Thread by kimiraikkonen | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.