Good morning,afternoon or evening all!
What's the simple way of making a digital clock in vb.net and make it apear on the form giving users option of changing to 12 or 24 hr clock.
Thank you!
Printable View
Good morning,afternoon or evening all!
What's the simple way of making a digital clock in vb.net and make it apear on the form giving users option of changing to 12 or 24 hr clock.
Thank you!
You could look at the following:
http://www.codeproject.com/cs/miscct...ockControl.asp
Hth
that isnt visual basic is it isnt that visual studio or somethin? im new so i dono haha
Visual Studio is the IDE not a language. As it says at the top of that page, it's written in the C# language. Both VB and C# target the .NET Framework, so they both use all the same types and members, but they have different syntax. VB.NET is based on BASIC and, more specifically, Visual Basic while C# is based on C/C++. They are similar enough though that if you know a bit of one you should be able to translate at least bits and pieces. Sometimes the code is almost identical, for instance:Quote:
Originally Posted by cool_thang
VB.NET Code:
MessageBox.Show("Hello World")Now, as that page also says, you can add the compiled control to your Toolbox and use it in a VB project regardless. The whole .NET Framework was written in C# so you're doing that already. If you want to understand the code, then you're going to have to get your hands dirty. There are online code converters around, although they are not perfect. You could also see fellow member David Anton's signature for a link to his commercial tool that has a trial period.CSharp Code:
MessageBox.Show("Hello World");
alright thanks