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?
7 14833
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.
You need to manually format the date.
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. : )
QVeen72 1,445
Recognized Expert Top Contributor
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 : -
Text1.Text = Format(Calander1.Value,"dd/mm/yyyy")
-
Regards
Veena
I 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.
It gives an error........Ob ject 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.
QVeen72 1,445
Recognized Expert Top Contributor
I 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.
Hi,
Sorry, Spelling mistake there..
Text1.Text = Format(Calendar 1.Value, "dd/mm/yyyy")
Regards
Veena
Sign in to post your reply or Sign up for a free account.
Similar topics |
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
|
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.
|
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 article uses a regular HTML input box, and I need to use an
ASP Web control textbox. When the latter is rendered in the browser, some
extra stuff like _ctl0 is added to the name of the textbox. So the calendar
can't find the box to populate it.
|
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
|
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 ?
waitng fo ur reply.
Thanks,
Jayender
| |
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 then subsequent
calls to next return subsequent dates. The seed could be a standard
calendar/datetime object.
03-12-2006
|
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 c:\",AppWinStyle.Hide)
when pressed button1, i want the result is displayed into textbox.
Thanks
|
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 the MYSQL Tables DateTime Type as Text.
Time-formet 1. 04:02:27 16/01/2009
Time-formet 2. 16/01/2009 13:53:19
Time-formet 3. 00901E+13
Time-formet 4. Wed Jan 14 00:09:09 BDT 2009
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
| |
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |