dcsimg

Search:

Type: Posts; User: dbasnett

Page 1 of 13 1 2 3 4

Search: Search took 4.51 seconds.

  1. VS 2012 Re: Reading hex data thro' serial port.

    Did you see this line? If AllDataQ.Count > 0 Then
    and the comment above it?
  2. VS 2012 Re: Reading hex data thro' serial port.

    Shouldn't matter.
  3. Replies
    10
    Views
    352

    Re: Dirctory not found

    Use IO.Path.Combine
  4. VS 2012 Re: Reading hex data thro' serial port.

    Just some ideas that reflect a methodology I use to read data. First some definitions and a handler


    Private WithEvents TheSP As IO.Ports.SerialPort
    Private HaveData As New...
  5. Replies
    2
    Views
    186

    VS 2012 Re: Sending data (Hex or Bin) via RS232

    Can you post a link to the tunstile device protocol?
  6. Replies
    14
    Views
    454

    Re: [RESOLVED] Reading and Filtering XML

    If you look through everything, including the link in post #8 you should have this. Good luck.
  7. Replies
    4
    Views
    239

    Re: String collection understanding

    How about like this


    Public Sub SaveColumnWidth()

    Dim myArray As New List(Of String)

    myArray.Add(DataGridView1.Columns(3).Width.ToString)
    ...
  8. Replies
    14
    Views
    454

    Re: [RESOLVED] Reading and Filtering XML

    One more time. (you're going to be on your own after this, at least until the middle of next week)

    Assuming you want the fields in the dataSet


    ...
  9. Replies
    14
    Views
    454

    Re: [RESOLVED] Reading and Filtering XML

    For future reference, when asking XML questions it is important to note whether the actual data has NameSpaces. The file you are trying to use does.

    You'll need to add this to your app.
    ...
  10. Replies
    14
    Views
    454

    Re: [RESOLVED] Reading and Filtering XML

    What error are you getting when try to load the file?
  11. Re: [RESOLVED] Net.HttpWebRequest.GetResponse

    And only on the home page. If there is a setting in IIS I can't find it..

    The incidence of this error has gone up on the site since I posted this question. ;) Imagine that.
  12. Re: [RESOLVED] Net.HttpWebRequest.GetResponse

    No. The solution I found was shown when accessing other sites.
  13. Re: [RESOLVED] Net.HttpWebRequest.GetResponse

    My guess is that it is a setting I have in IIS, but damned if I can find it.
  14. Re: Net.HttpWebRequest.GetResponse

    Adding this before getting the response

    WEBreqst.UserAgent = ".NET Framework Test Client"
    seems to have fixed the issue.
  15. [RESOLVED] Net.HttpWebRequest.GetResponse

    I was programmatically trying to access some pages on our web site and a funny thing happened on the way to the home page, it throws an error. If you use a WebBrowser control accessing the page...
  16. Replies
    14
    Views
    454

    Re: [RESOLVED] Reading and Filtering XML

    Step through this, look at the variables.


    For Each ds As XElement In _dataSet
    Dim prv As XElement = ds.<Query>.<DataSourceName>.FirstOrDefault
    Dim...
  17. Replies
    14
    Views
    454

    Re: Reading and Filtering XML

    Starting with this


    Dim xe As XElement
    ' xe = XElement.Load("path here") 'for production

    'for testing use a literal
    xe = <config>
    ...
  18. Replies
    14
    Views
    454

    Re: Reading and Filtering XML

    The XML posted is incorrect. Start by fixing that. Something like this maybe?????

    <config>
    <DataSources>
    <DataSource Name="DataSource1">
    <ConnectionProperties>
    ...
  19. Replies
    20
    Views
    539

    VS 2019 Re: Resizing Array in VB.NET

    You might find that using List is easier to work with.


    Dim MainArray As New List(Of Object)
    Dim initA() As Object = {"Hello World", 12D, 16UI, "A"c, "blob"}
    ...
  20. Replies
    4
    Views
    276

    Re: Threads and shared code?

    Without seeing the code it is hard to know the best approach. There are several mechanisms that can be used to lock sections of code.
  21. Replies
    13
    Views
    458

    VS 2010 Re: Shortening Hex values

    What? Are you trying to read a string of characters and then convert them to a byte array?

    Don't see why 700K characters would crash VB. Please explain.
  22. Replies
    17
    Views
    620

    Re: [RESOLVED] Reverse bit order of byte

    In general I agree. The OP will know or find out if the speed of reversing needs improvement.
  23. Replies
    17
    Views
    620

    Re: Reverse bit order of byte

    I think I'd use a table if there were many of these.


    Dim tbl() As Byte = {0, 128, 64, 192, 32, 160, 96, 224,
    16, 144, 80, 208, 48, 176, 112, 240,
    ...
  24. Replies
    17
    Views
    620

    Re: Reverse bit order of byte

    A hack I found somewhen, somewhere



    Public Function RevByte(byt As Byte) As Byte
    Dim b As Integer = byt
    b = (b And &HF0) >> 4 Or (b And &HF) << 4
    b = (b And &HCC)...
  25. Re: Weird Bug - If System.IO.Directory.Exists("C:\Windows\System32\OpenSSH")

    I tested on my PC with the same results.
  26. Re: HttpWebResponse content truncated

    No I do not. Sorry. Maybe someone else has an idea.
  27. Re: HttpWebResponse content truncated

    Can you post the code please.
  28. Re: Partial prime factorization of big number using trial division

    I went back and looked at a Sieve I wrote and found this performance(at the time)

    ' Performance based on Intel Dual Core @ 2.5GHz
    ' number of primes verified at ...
  29. Re: toString format specifier issue

    https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.numericupdown.value?view=netframework-4.8#System_Windows_Forms_NumericUpDown_Value
  30. Re: toString format specifier issue

    My guess would be that red.Value is not data type integer.
    This works

    Dim foo As Integer = 98
    Dim hex As String = foo.ToString("X")
  31. VS 2017 Re: Randomising (an array) without repeats VB.net

    $0.02


    Static prng As New Random
    Dim pth As String
    pth = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
    Dim di As New IO.DirectoryInfo(pth)
    ...
  32. VS 2017 Re: Need Help To Get IP Address - GetHostByName is Now Obsolete?

    For public IP use HttpWebRequest to access the following site.

    https://api.ipify.org

    Something like

    Dim page As String = "https://api.ipify.org"
    Dim respStr As String = ""...
  33. Re: How to make my application show message if user try to run second instance of it?

    Where is that code? It should be in ApplicationEvents.vb.

    All that is needed is


    Private Sub MyApplication_StartupNextInstance(sender As Object,
    ...
  34. Re: How to make my application show message if user try to run second instance of it?

    So I have two book marks that I use extensively FWIW.

    https://social.msdn.microsoft.com/Search/en-US?query=vb%20.net&ac=2

    https://docs.microsoft.com/en-us/dotnet/visual-basic/
  35. Re: How to make my application show message if user try to run second instance of it?

    Hope you are safe John.
  36. Replies
    7
    Views
    402

    Re: Prime number generator for big number

    This page has 10 100 digit prime numbers
    https://primes.utm.edu/lists/small/small.html#100

    Other info
    https://primes.utm.edu/largest.html
  37. Replies
    7
    Views
    402

    Re: Prime number generator for big number

    For the range specified, no you can't accomplish that on a PC.
  38. VS 2019 Re: Is there a quick way of wrapping a method call around a value?

    Maybe you could show us the method signature and how it is called.
  39. VS 2008 Re: [RESOLVED] Timer 1 function Seconds = Count Mod 60 advances minutes after 30 sec

    An approach using a stopwatch



    Private stpw As New Stopwatch
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    ...
  40. Replies
    29
    Views
    1,303

    VS 2019 Re: Stopwatch Resolution

    Wonder if there are any recent PC's that are not running with a frequency of 10,000,000? I do recall a time when that wasn't the case.

    Thank goodness that instances of Stopwatch have timespans.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width