473,320 Members | 1,694 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,320 software developers and data experts.

timedate.cpl

Is there a way to embed timedate.cpl into a form?
Aug 1 '08 #1
2 3096
On Aug 1, 10:07*am, "Big D" <BigDa...@newsgroup.nospamwrote:
Is there a way to embed timedate.cpl into a form?
do you care to explain what is timedate.cpl?
Aug 1 '08 #2
Ignacio Machin ( .NET/ C# MVP ) wrote:
On Aug 1, 10:07 am, "Big D" <BigDa...@newsgroup.nospamwrote:
>Is there a way to embed timedate.cpl into a form?

do you care to explain what is timedate.cpl?
Start a command prompt, enter "timedate.cpl" and see for yourself!

It's what English versions of Windows call "Date and Time" in the Control Panel.

To answer the OP's question: you don't want to do that. If your manager told
you to put it in, tell him some guy on Usenet thinks he's dumb for
duplicating OS functionality in a user app. It might work.

If you just want a way to *display* dates and times and have the user pick
from them, use the built-in Calendar control or one of the many third-party
alternatives. If you really want to be able to change the system time from
your application, that's the way to go too (hooking it up to a call to
SetSystemTime), but I'll say again that there's not much point in trying to
one-up Windows.

Even if it's possible to make Date and Time appear in your window, it'll be
a nasty hack. What happens when the next release of Windows doesn't ship
with a Date and Time control where your nasty hack works? Do you really want
to be the one maintaining that?

You can always have Date and Time display on its own by ShellExecute'ing
timedate.cpl (that's the Process class in .NET), but even that is iffy. Just
let the people who's business it is to change the system time call it up
themselves when needed. It shouldn't be a common task.

--
J.
Aug 1 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ralph Krausse | last post by:
Hello all, I am a total newbie to SQL. I created this sp and then with C++, called it. My return value was 100 (which it was) CREATE PROCEDURE sp_StoreIPs @IPSource varchar(16), @IPTarget...
3
by: Robert Misiak | last post by:
In a program that I wrote, it is very important for the user to have the correct time zone configured. As such, in its properties window I display the current configured time zone, and if it is...
3
by: msg | last post by:
SELECT TOP 100 w.TimeDate AS , p.ProdCode, COUNT(w.BoxID) AS cases, AVG(w.PrintedWeight / w.PkgsPerBox) AS avgtrayweight FROM dbo.WIPSixtyDay w INNER JOIN dbo.Products p ON w.PLUNo =...
3
by: Gordon | last post by:
Hi; I am trying to give my CPU some relief from comparing a group of values to now() while looping through an array. I tried using the windows.system.timer but i have been unable to find the...
0
by: Micheline | last post by:
How do I change the date or time field of the timedate control panel using the shell command (without displaying the applet). For example, I can change the timezone by specifying "control.exe...
3
by: =?Utf-8?B?TWFya3dhcmQgU2NodWJlcnQ=?= | last post by:
Hi! I wonder, how the declaration of the following c-function must look like in VB.NET STATUS LNPUBLIC ConvertTextToTIMEDATE( const void far *IntlFormat, const TFMT far *TextFormat, char...
5
jrtox
by: jrtox | last post by:
Hello expert, We all know that system calculator is found at "C:\WINDOWS\system32\calc.exe" My problem now is Where we can find Our System Clock, the executable one? Help Ervin
6
by: ssmeshack | last post by:
Hi All, I have problem that give error for timedate cell where I done some color coding. DateTime datenow = DateTime.Now; DateTime datethen =...
12
by: Slaunger | last post by:
Hi, I am new here and relatively new to Python, so be gentle: Is there a recommended generic implementation of __repr__ for objects equal by value to assure that eval(repr(x)) == x independet...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.