Results 1 to 5 of 5

Thread: [RESOLVED] Digital Clock in vb.net

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2007
    Posts
    24

    Resolved [RESOLVED] Digital Clock in vb.net

    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!

  2. #2
    Fanatic Member
    Join Date
    Nov 2004
    Location
    U.K
    Posts
    752

    Re: Digital Clock in vb.net

    You could look at the following:

    http://www.codeproject.com/cs/miscct...ockControl.asp

    Hth

  3. #3
    New Member
    Join Date
    Nov 2007
    Posts
    2

    Re: [RESOLVED] Digital Clock in vb.net

    that isnt visual basic is it isnt that visual studio or somethin? im new so i dono haha

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [RESOLVED] Digital Clock in vb.net

    Quote Originally Posted by cool_thang
    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:
    VB.NET Code:
    1. MessageBox.Show("Hello World")
    CSharp Code:
    1. 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.
    Last edited by jmcilhinney; Nov 6th, 2007 at 12:44 AM.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    New Member
    Join Date
    Nov 2007
    Posts
    2

    Re: [RESOLVED] Digital Clock in vb.net

    alright thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width