Search Results - VBForums

Search:

Type: Posts; User: dbasnett

Page 1 of 13 1 2 3 4

Search: Search took 0.15 seconds.

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

    Re: multithread not working?!?

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

    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...
  7. 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)
  8. 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
  9. Replies
    4
    Views
    216

    Re: Color Contrast

    I agree with all that you have said.
  10. Replies
    12
    Views
    404

    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...
  11. Replies
    12
    Views
    404

    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...
  12. Replies
    4
    Views
    216

    Re: Color Contrast

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

    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...
  14. Replies
    8
    Views
    319

    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...
  15. Replies
    0
    Views
    197

    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
    '''...
  16. Replies
    3
    Views
    190

    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 " &...
  17. 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:
  18. Replies
    5
    Views
    250

    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
  19. Replies
    5
    Views
    250

    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
    ' ...
  20. Replies
    5
    Views
    250

    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 ...
  21. Replies
    5
    Views
    250

    [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...
  22. Replies
    12
    Views
    355

    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...
  23. Replies
    12
    Views
    355

    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
  24. Replies
    12
    Views
    355

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

    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....
  26. Replies
    12
    Views
    355

    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)...
  27. Replies
    12
    Views
    355

    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...
  28. Replies
    12
    Views
    355

    VS 2012 Re: ComboBox Behavior - error/bug

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

    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...
  30. 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 />...
  31. Replies
    12
    Views
    355

    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...
  32. Replies
    12
    Views
    355

    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
  33. Replies
    13
    Views
    387

    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!
  34. Replies
    13
    Views
    387

    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.
  35. Replies
    13
    Views
    387

    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...
  36. Replies
    13
    Views
    387

    [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...
  37. Replies
    6
    Views
    361

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

    There is a link in my signature that might provide you some insight.
  38. Replies
    6
    Views
    283

    VS 2010 Re: Questions on TreeView.

    Here is a test that has some basic ideas. You'll need to modify it for error handling. BTW - when posting code use code tags please.



    Private Sub Button3_Click(sender As Object, e As...
  39. VS 2010 Re: setting a chart datasource where the datatable is defined out of scope

    Here are two versions to find controls. The first will find all control in a TabControl, the second in a TabPage.


    'all controls in a TabControl
    Dim allControls As New List(Of...
  40. VS 2010 Re: [RESOLVED] Start a timer from another thread and use timer.tick

    There is no guarantee of when the CPU will come back around to any of your threads. In this particular case, because of the time between invocations (500 ms.), a Timer may have been a better...
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.