Search Results - VBForums

Search:

Type: Posts; User: dbasnett

Page 1 of 13 1 2 3 4

Search: Search took 0.10 seconds.

  1. 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.
  2. Replies
    10
    Views
    242

    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...
  3. Replies
    2
    Views
    157

    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.
  4. 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
    '''...
  5. Replies
    10
    Views
    227

    Re: multithread not working?!?

    Is this code being executed from the load event on a 64 bit machine?
  6. 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...
  7. 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
  8. 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
    ...
  9. Replies
    37
    Views
    592

    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...
  10. 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)
  11. 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
  12. Replies
    4
    Views
    266

    Re: Color Contrast

    I agree with all that you have said.
  13. Replies
    12
    Views
    454

    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...
  14. Replies
    12
    Views
    454

    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...
  15. Replies
    4
    Views
    266

    Re: Color Contrast

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

    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...
  17. Replies
    8
    Views
    406

    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...
  18. Replies
    0
    Views
    250

    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
    '''...
  19. Replies
    3
    Views
    214

    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 " &...
  20. 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:
  21. Replies
    5
    Views
    275

    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
  22. Replies
    5
    Views
    275

    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
    ' ...
  23. Replies
    5
    Views
    275

    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 ...
  24. Replies
    5
    Views
    275

    [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...
  25. Replies
    12
    Views
    385

    VS 2012 Re: ComboBox Behavior - error/bug

    I did find a workaround.


    Private Sub ComboBox1_SelectionChangeCommitted(sender As Object, e As EventArgs) Handles ComboBox1.SelectionChangeCommitted
    Debug.WriteLine("CB1Committed...
  26. Replies
    12
    Views
    385

    VS 2012 Re: ComboBox Behavior - error/bug

    This behavior is a known bug as it turns out.

    http://support.microsoft.com/kb/2868238/en-us
  27. Replies
    12
    Views
    385

    VS 2012 Re: ComboBox Behavior - error/bug

    This behavior is a known bug as it turns out.

    http://support.microsoft.com/kb/2868238/en-us
  28. Replies
    12
    Views
    385

    VS 2012 Re: ComboBox Behavior - error/bug

    I tried the textbox approach, and the interface is not good. I didn't mention this before, and maybe I should have. If the mouse is used to make selections in the combobox it displays properly....
  29. Replies
    12
    Views
    385

    VS 2012 Re: ComboBox Behavior - error/bug

    Maybe this will help. They have to be set in a certain order. When I get to work I'll see if I can use a textbox to accomplish this.



    Private Sub LoadMe(sender As Object, e As EventArgs)...
  30. Replies
    12
    Views
    385

    VS 2012 Re: ComboBox Behavior - error/bug

    Here is what this is about.

    I am re-writing an application, in VB 2012, that manages / edits / prints an index of statutes. This is an index like you might find in the back of a book but it has...
  31. Replies
    12
    Views
    385

    VS 2012 Re: ComboBox Behavior - error/bug

    I have several confirmations of how this behaves on the two platforms, but no resolutions.
  32. Replies
    12
    Views
    385

    VS 2012 Re: ComboBox Behavior - error/bug

    The problem only occurs if I .Select the other combobox. If you comment out ComboBox2.Select() and do this the problem doesn't happen.
    type ab
    press enter
    press tab
    press shift tab
    type ab...
  33. VS 2012 'DbProviderFactories' section can only appear once per config file - Problem

    I have run across the error in the title when using DbProviderFactories. It appears that some of the providers (I suspect IBM's DB2) writes an extra tag that looks like this <DbProviderFactories />...
  34. Replies
    12
    Views
    385

    VS 2012 Re: ComboBox Behavior - error/bug

    The combobox is to allow the user to select a pair of letters and when they press enter it uses those values to load the second combobox with items from a DB that start with the letter pair. When I...
  35. Replies
    12
    Views
    385

    VS 2012 [RESOLVED] ComboBox Behavior - error/bug

    Create a combobox and add the following to the Items collection

    Ab
    Ac
    Ad
    El
    En

    Set the following properties
    DropDownStyle = DropDownList
  36. Replies
    13
    Views
    436

    Re: Access Denied

    Never mind. Operator malfunction! When trying to read the lines from the file I inadvertently used the path name, not the file name. DOH!!! I'll post the code when I am done testing. Thanks!
  37. Replies
    13
    Views
    436

    Re: Access Denied

    Yes. The manual process works in both locales.

    edit: I just double checked the manual process and it does work as I said.
  38. Replies
    13
    Views
    436

    Re: Access Denied

    I am the developer and I am one of the admins. What I am trying to avoid is doing this manually, which is what I do now. The manual process is:

    Run NotePad as Administrator
    Open the...
  39. Replies
    13
    Views
    436

    [RESOLVED] Access Denied

    When first using DBFactories with IBM's DB2 the

    <system.data>
    <DbProviderFactories>

    section of the machine.config file is written incorrectly(you have an extra closing tag). This...
  40. Replies
    6
    Views
    385

    VS 2013 Re: A from to read data from an ECU

    There is a link in my signature that might provide you some insight.
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.