473,387 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 14772
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

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

Similar topics

2
by: praba kar | last post by:
Dear All, In Php strtotime() will change a date string into timestamp. I want to know which python function will change a date string into timestamp. Date string format is below
5
by: goochey | last post by:
I'm trying to convert a Julian Date (Format "4365") into an actual calendar date in Visual Basic, can anyone help me out with this.
3
by: Chris | last post by:
I am trying to use a calendar popup to populate a date in a textbox. I am using the example described in this article: http://aspnet.4guysfromrolla.com/articles/030202-1.aspx However, this...
2
by: Dooglo | last post by:
I'd like to have the system Date in a textbox every time I start my program, "Today Date: ??/??/???? (M/D/Y)", so that I may be able to save data with that date. Thanks, Dooglo
3
by: Jay | last post by:
Hi, I need to upload a text file (say some letter ) from one of the drive (say the path is C:\letter.doc), here i need to display the content of the file into textbox , how is it possible ?...
4
by: Marcus | last post by:
Hi, I'm looking for useful starting points, suggestions, and sample code, to implement a calendar iterator. Simply, the iterator is seeded with an initial calendar date, e.g., "03-12-2006", and...
5
by: kimiraikkonen | last post by:
Hello, I have a textbox named "textbox1" and a button named "button1" How can i retrieve the console (cmd) data into textbox? For example when i run Shell("cmd.exe /k dir...
4
by: ahmurad | last post by:
Dear Brothers, I am struggling the following four Date-Time type values which were inputted into MYSQL database in different tables. As MYSQL Default Time Format: YYYY-MM-DD HH:MM:SS, So I used...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.