Search Results - VBForums

Search:

Type: Posts; User: dbasnett

Page 1 of 13 1 2 3 4

Search: Search took 0.12 seconds.

  1. Replies
    0
    Views
    56

    Dart Out Shots

    Calculates all 3 dart checkouts for a given score.

    Dart Outshots Solution
  2. Replies
    14
    Views
    271

    Re: [RESOLVED] Timer spanning multilpe forms

    DateTime is much coarser. There is even a remark in the DateTime.Now method description that addresses this; "The Now property is frequently used to measure performance. However, because of its low...
  3. Replies
    10
    Views
    259

    Re: Rock paper scissors code problem

    Last night there was a re-run of one of the Big Bang episodes that had rock-paper-scissors-lizard spock. If you take a look at the code bank you will find my answer to that.
  4. VS 2010 Re: When you begin creating an application, what........

    Let me add a quote I once heard, "It is not all you know that is the problem, it is all you think you do that is." The original designers of the internet 'knew' that 32 bits of address space was...
  5. Replies
    0
    Views
    89

    Rock Paper Scissors Lizard Spock

    Simple classes and enum to implement the game.


    Public Class RPSLS
    ' Rock Paper Scissors Lizard Spock
    'Rock 0 -1 1 1 -1
    'Paper 1...
  6. Replies
    14
    Views
    330

    Re: Communication DB Location

    I was thinking of two 'apps', one of which ran all the time broadcasting the location. The other app would be the 'real' app and would work the same for all machines, even the one with the DB.
  7. Replies
    14
    Views
    330

    Re: Communication DB Location

    If the machine with the DB had a service that ran continuously it could send the location messages periodically. That would eliminate the need for the other machines to parrot the location messages,...
  8. VS 2010 Re: 1's Complement Checksum problem..... please HELP!!

    This code is close to the C code, though it does produce a checksum of zero for one of the cases...


    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    ...
  9. Replies
    0
    Views
    156

    Roman Numerals - Conversion to/from

    Code to aid in the conversion of standard Roman Numerals (1 - 3,999).


    Public Class RomanNumerals
    'I 1
    'V 5
    'X 10
    'L 50
    'C 100
    'D 500
  10. Replies
    32
    Views
    526

    Re: VS 2010 - Integer to Roman Numeral

    FWIW - code to work with standard roman numerals (1 - 3,999)


    Public Class RomanNumerals
    'I 1
    'V 5
    'X 10
    'L 50
    'C 100
    'D 500
  11. VS 2010 Re: Connection to aux equipment via usb/serial

    If you want to add SerialPorts to your PC you can do so by installing a USB to Serial Port adapter.
  12. Replies
    9
    Views
    408

    Re: reading data from serial port

    I'd check that the speed, databits, stopbits, and parity of the sender and receiver match. Also check the connections and ensure that the cable is in good condition. If this is an electrically...
  13. Replies
    3
    Views
    157

    VS 2013 Re: Need help editing .xml file

    It is unclear what you are trying to do. Here is a short example that changes the activeOption nodes value to 9.


    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles...
  14. Replies
    8
    Views
    221

    VS 2010 Re: Simple List Question

    This is because the load event is throwing an error (NullRef) that you aren't seeing. If you search for errors in load event you will find out why you don't see it. To find YOUR error create a...
  15. Replies
    10
    Views
    309

    VS 2012 Re: Prime Number Checker Code Question.

    Isn't it the square root of the number?
  16. VS 2012 Re: String Array to Byte Array conversion

    Why not skip the conversion to and from strings? The TCP socket can send bytes.
  17. VS 2013 Re: HowTo Fix a Little "End Of Statement Expected." Error? [With Source Code Photo]

    Is this a picture of the actual code producing the error? Normally there is a squiggly line under the offending statement somewhere.
  18. Replies
    10
    Views
    310

    Re: Recursive file searching

    No, a recursive search of folders will return to the original caller when all folders have been searched. e.g.



    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles...
  19. Replies
    2
    Views
    202

    Re: infinite loop...

    Only one serial port event(handler) can be active at one instance in time. Take a look at the link in my signature. You will see that I use another thread so that the handler executes minimal code.
  20. VS 2010 Re: Cambridge (Exam) Question and Answer - Don't understand recursion

    Here is the function written without the old string functions. To turn this in you will have to figure out how to use those functions.



    ''' <summary>
    ''' reverses a string
    '''...
  21. Replies
    10
    Views
    276

    Re: multithread not working?!?

    Is this code being executed from the load event on a 64 bit machine?
  22. VS 2013 Re: NotifyIcon balloon disappearing before timeout

    Since the documentation says, "Minimum and maximum timeout values are enforced by the operating system and are typically 10 and 30 seconds, respectively, however this can vary depending on the...
  23. Re: [VB2010] Top string and its recourrences in a List by Linq

    add this class to get rid of the annonnymous type


    Class someclass
    Public theLtr As String
    Public theCt As integer
    End Class


    and then change the other code to
  24. Re: [VB2010] Top string and its recourrences in a List by Linq

    How about this:


    Dim l As New List(Of String) From {"b", "a", "e", "a", "f", "h", "e", "a", "m", "b", "a", "v"}

    Dim ltrCts As IEnumerable = From s In l
    ...
  25. Replies
    37
    Views
    686

    Re: [RESOLVED] Document Fully 100% Completed

    FWIW - give this a try.


    Imports System.IO
    Imports System.Net
    Public Class Form1

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim request As...
  26. VS 2010 Re: Problem sending receiving formatted string commands via serial port.

    If outPkt was defined outside the loop then this

    Dim outPkt As String = String.Format("DM{0:X4}", x)

    would be changed to

    outPkt = String.Format("DM{0:X4}", x)
  27. VS 2010 Re: Problem sending receiving formatted string commands via serial port.

    Try this:


    For x As Integer = 0 To 65535 Step 128
    Dim outPkt As String = String.Format("DM{0:X4}", x)
    Debug.WriteLine(outPkt)
    Next
  28. Replies
    4
    Views
    405

    Re: Color Contrast

    I agree with all that you have said.
  29. Replies
    12
    Views
    532

    Re: [RESOLVED] Modify InnerText of XML File

    Another opinion, Principles of XML design: When to use elements versus attributes

    You are correct about it being an opinion, so we just have differing opinions. I have experienced both and on...
  30. Replies
    12
    Views
    532

    Re: [RESOLVED] Modify InnerText of XML File

    I would not use attributes for this (Elements v. Attributes). Here is an example that shows the functionality I think you want. It is just some ideas to consider. Look at how I changed the XML...
  31. Replies
    4
    Views
    405

    Re: Color Contrast

    I was just showing what I found. If I were to use one it would be YIQ.
  32. Replies
    4
    Views
    405

    Color Contrast

    I ran across a question about selecting the text color of a control based upon the background color. With some research I found three different methods. They are:


    Public Function...
  33. Replies
    8
    Views
    484

    Re: datetimepicker only time on 99 hours

    Here is some code that shows how a text box might be used:


    Dim hrs As Integer = -1
    Dim mins As Integer = 0
    Dim s As String = TextBox1.Text.Trim
    Dim p() As...
  34. Replies
    0
    Views
    337

    Number to Words

    Converts longs > Long.MinValue to words. The code uses recursion FWIW.


    Public Class NumberToWords

    ''' <summary>
    ''' Convert any Long (except Long.MinValue) to words
    '''...
  35. Replies
    3
    Views
    279

    Re: Combining byte arrays

    Why not use List(of Byte) and add them as you go?

    something like this


    Dim ReturnStr As New List(Of Byte)

    ReturnStr.AddRange(System.Text.Encoding.UTF8.GetBytes("239 0 " &...
  36. Re: Collection was modified...or not

    OT, I guess... In researching this I ran across something I have not seen before.

    ExpandoObject

    You see them all the time at WalMart. :rolleyes:
  37. Replies
    5
    Views
    325

    Re: Regex Hel(p|l)

    Resolved - see http://social.msdn.microsoft.com/Forums/vstudio/en-US/591ad265-f678-40ad-aaa4-fc71a491cd93/regex-helpl?forum=vbgeneral
  38. Replies
    5
    Views
    325

    Re: Regex Hel(p|l)

    After looking at this it could (should) be a couple of regexes


    ' (CH. 2)

    ' 400.2A-101
    ' 400.10-101
    ' 400.2A-101 to 400.2A-200
    ' ...
  39. Replies
    5
    Views
    325

    Re: Regex Hel(p|l)

    The actual text then with the references highlighted.

    Worst (CH. 9999) All 42.42, foo blah 23.010 to 23.040 blah 400.2A-101; foo 400.2A-101 to 400.2A-200, bar Const. Art. I, Sec. 4, foobar IV ...
  40. Replies
    5
    Views
    325

    [RESOLVED] Regex Hel(p|l)

    I am working on an index of statutes. As with all indexes you have some text followed by a reference. In a book the reference would likely be a page number. In my case the reference is a statute...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.