dbasnett's Profile User Rating: -----

Reputation: 110 Stalwart
Group:
Contributors
Active Posts:
609 (0.27 per day)
Joined:
01-October 08
Profile Views:
8,056
Last Active:
User is offline Yesterday, 09:04 AM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Who Cares
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
50

Latest Visitors

Icon   dbasnett has not set their status

Posts I've Made

  1. In Topic: making a timer give a more accurate result

    Posted 18 Dec 2014

    View Postfrazereastm, on 18 December 2014 - 06:26 AM, said:

    here I attached my project as it is so far, I am yet to add the uncertainty of measurement labels (which will be placed above and below estimated end date, and will display the maximum finish date and the minimum finish date taking into account errors that could occur when taking the initial measurements) and I am sure there is some bugs I can fix, or things I can tweak.
    the sole user of this program will not be myself so I want to make it easier for someone with zero experience of the program to be able to use it.

    ANY suggestions are welcome and I will try implement all ideas I think will improve the program as this the first 'proper' program I am putting all my efforts into making it a good one,
    thanks in advance


    All of the math appears unnecessary. Stopwatches have properties that contain the values needed. Here is a short example.

        Dim stpw As New Stopwatch
        Dim whenStart As DateTime
    
        Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
            'start
            whenStart = DateTime.Now
            stpw.Restart()
        End Sub
    
        Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
            'stop
            stpw.Stop()
            Dim whenStop As DateTime = whenStart.Add(stpw.Elapsed)
    
            TextBox1.Text = stpw.Elapsed.TotalSeconds.ToString
            TextBox2.Text = whenStop.ToString
        End Sub
    
    
  2. In Topic: Challenge: Longest Bit Sequence

    Posted 6 Nov 2014

    Don't know spoiler tags...
    Spoiler
  3. In Topic: converting integer to a string

    Posted 5 Nov 2014

    You might find that using an Enum is what you want. It assumes that your names are statically defined.

        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
            Handles Button1.Click
            TextBox1.Text = GetName(CInt(NumericUpDown1.Value))
        End Sub
    
        Public Function GetName(ByVal ID As Integer) As String
            Dim Name As Names = CType(ID, Names)
            Return Name.ToString
        End Function
    
        Enum Names
            Noah = 1
            Sophia = 2
            Liam = 3
            Jacob = 4
            William = 5
        End Enum
    
    
  4. In Topic: Challenge: Outshots?

    Posted 26 Oct 2014

    An attempt is here (VS2012):
    Outshots Solution

    The binaries have been removed.
  5. In Topic: need help with network connectivity check

    Posted 20 Oct 2014

    View Postdeszolate_c, on 19 October 2014 - 01:26 PM, said:

    I want this function to check for 2 things
    1.check if network interface is still available
    2.if in 1. is yes then check if it's still connected

    if it's not just go to shutdown.


    And if it is still connected what will your app do then?

My Information

Member Title:
D.I.C Addict
Age:
Age Unknown
Birthday:
July 29
Gender:
Years Programming:
45

Contact Information

E-mail:
Private
Website URL:
Website URL  http://

Friends

Comments

dbasnett has no profile comments yet. Why not say hello?