Search:

Type: Posts; User: dbasnett

Page 1 of 13 1 2 3 4

Search: Search took 0.18 seconds; generated 39 minute(s) ago.

  1. Replies
    18
    Views
    494

    VS 2019 Re: Process faster in nested for loops

    So my PC is fast with a lot of cores. The code in the Load takes less than 500ms, and the code in Button1 takes less than 100ms


    Public Class Form1

    Private Shared prng As Random
    ...
  2. VS 2022 Re: VB.net: Getting TextBox content as 'YYYYMMDD' or 'YYYYMM'

    Obviously there IS manipulation.
  3. VS 2022 Re: VB.net: Getting TextBox content as 'YYYYMMDD' or 'YYYYMM'

    Why would you store dates as strings? Generally not a good idea.
  4. VS 2019 Re: XML help: get subnode by value

    Depending on the structure of the XML and uniqueness of the names you might get away with this,


    'the given
    Dim path As String = ""
    Dim assembliesElement As XElement
    ...
  5. VS 2019 Re: XML help: get subnode by value

    Then the XML you originally showed was different. Glad it worked.
  6. VS 2019 Re: XML help: get subnode by value

    The assumptions


    Dim path As String = ""
    Dim assembliesElement As XElement
    ' assembliesElement = XElement.Load(path)
    assembliesElement = <Job>
    ...
  7. Replies
    10
    Views
    965

    VS 2013 Re: Set Cursor Position in VB 2013

    Here is a little example. I have a button and label on a form.


    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim lblPos As Point =...
  8. Thread: RFID reader

    by dbasnett
    Replies
    8
    Views
    835

    Re: RFID reader

    Which RFID reader? Post a link please.
  9. Replies
    10
    Views
    668

    Re: VB.net Slots game bug not easily apparent

    A gimmeee

    Private Shared Generator As New Random 'once and only once
    Public Function GetRandom(ByVal Min As Integer, ByVal Max As Integer) As Integer
    Return Generator.Next(Min,...
  10. Replies
    14
    Views
    858

    Re: System Re-write

    Thanks!
  11. VS 2022 Re: 2nd form not showing on desktop

    Are you manually positioning / remembering the location of the forms? I've done that and had the user remove monitors with a form on it.
  12. Replies
    14
    Views
    858

    Re: System Re-write

    They were given code in the form of .DLLs. Not sure what they code have learned by de-compiling and we all work for the same organization if you go far enough up the food chain.

    Can you recommend...
  13. Replies
    14
    Views
    858

    Re: System Re-write

    So my first test didn't work, but this did.

    DLL1

    Namespace MOON
    Public Class FOO
    Public myName As String = "FOO"
    End Class
    End Namespace
  14. Replies
    5
    Views
    736

    VS 2005 Re: Menu Style issue

    Do you have an example of how you want it to look because I'm not sure what you want.
  15. Replies
    14
    Views
    858

    Re: System Re-write

    In the Namespaces documentation I came across this, "Multiple assemblies can use the same namespace. Visual Basic treats them as a single set of names. For example, you can define classes for a...
  16. VS 2012 Re: Hardware Random Number Generator - ubld.it TrueRNG v3

    Yes it was. Better than if it had gone the other way.:check:
  17. VS 2012 Re: Hardware Random Number Generator - ubld.it TrueRNG v3

    Thanks for the kind words.
  18. Replies
    14
    Views
    858

    Re: System Re-write

    Not sure I see the distinction. I don't want the other devs in the House / Senate to see source.
  19. Replies
    14
    Views
    858

    Re: System Re-write

    There was a time when that would have been relevant and ignored. Better living through chemistry.
  20. Replies
    9
    Views
    678

    VS 2015 Re: Program hang when running outside of VS

    What follows will not be a surprise to long term members. My first serial port program in .Net (2.0) was to interpret GPS NMEA sentences. The device I had transmitted sentences on a continuous...
  21. Replies
    14
    Views
    858

    System Re-write

    We are in the beginning stages of a complete re-write of all systems owned by the Missouri Revisor of Statutes.

    The current systems were written in a little over a year and is always the case,...
  22. Replies
    9
    Views
    678

    VS 2015 Re: Program hang when running outside of VS

    And this code RS232_ReadByte(1000)? In the data received event handler you have this, If Not (e.EventType = SerialData.Eof) Then. Why? Does the device send x1A for control purposes?

    Are you...
  23. Replies
    9
    Views
    678

    VS 2015 Re: Program hang when running outside of VS

    So Me.StatusUpdate is also checking for Me.InvokeRequired? You said,"Narrow down to this line when it gets stuck: Me.BeginInvoke(New UpdateUI_Delegate(AddressOf PopulateForm))", and I find that...
  24. Replies
    9
    Views
    678

    VS 2015 Re: Program hang when running outside of VS

    There is a lot missing from the code posted. Like what is ATEData and where is it being populated? What is Me.StatusUpdate? In the data being received can you have a x1A character?

    Try your...
  25. VS 2019 Re: Populating a Combobox display/value of states from text file

    For this probably not, not sure if there is even a difference.
  26. VS 2019 Re: Populating a Combobox display/value of states from text file

    The kludgey way


    Private Sub Form1_Shown(sender As Object, e As EventArgs) Handles Me.Shown
    Dim lns() As String = My.Resources.StatesAndCapitals.Split({ControlChars.Cr})
    Dim...
  27. Replies
    6
    Views
    656

    VS 2017 Re: Select specific index item in a combobox

    Not in the code you posted does it.
  28. Re: how to get and set of a property that is of type Flags enum

    As far as the numbers representing a Boolean I follow the remarks here.

    Some code to illustrate flag manipulation based on CheckBox checked. I added other flags for testing. See Button3.


    ...
  29. Replies
    7
    Views
    710

    VS 2019 Re: Visual Studio & 4K

    What if you have two monitors with different resolutions?
  30. VS 2019 Re: VB.NET Application Process Name in Task Manager

    Since you didn't show code I'll guess that you are using Process.Start and storing the Process. Each process has an ID. Using Resource Monitor you can see each process and it's ID.
  31. VS 2019 Re: VB.NET Application Process Name in Task Manager

    Why not use the program that launched??? the executables as a monitor? Show the code that does the launching. Please.
  32. Replies
    9
    Views
    2,978

    VS 2008 Re: Changing process name?

    A very old thread marked as Resolved. Here's a thought, create a New Thread.
  33. VS 2019 Re: Use X number of threads to perform Y number of tasks

    They are small, but overall threading is the way to go. After one thread has read a block of data and is writing it to disk another thread could be reading a block of data for another file. I agree...
  34. VS 2019 Re: Use X number of threads to perform Y number of tasks

    Test copying remote files to local machine.


    Dim iPath As String = "\\someserver\_LRSys_\PubDocs\2018\sections"
    Dim oPath As String =...
  35. VS 2019 Re: Use X number of threads to perform Y number of tasks

    That surprises me. I say that because a download is more than the actual transfer. But maybe a test is in order...
  36. VS 2019 Re: Use X number of threads to perform Y number of tasks

    Another possibility would be Parallel.ForEach.


    Private Async Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim URLs As New List(Of String) From...
  37. VS 2019 Re: Use X number of threads to perform Y number of tasks

    For the collection of URL's use a ConcurrentQueue. The act of removing will alleviate the concurrency concern.
  38. Re: Get Testbox Contents - Thread safe

    Another approach, create a method to accomplish what you want.


    Private Sub AddLine(FileName As String, lineCount As Integer)
    If Me.InvokeRequired Then
    Me.Invoke(Sub()
    ...
  39. Replies
    14
    Views
    1,176

    Re: Excel data lookup function fine-tuning

    Not sure why but that has been my experience also. Way back when I chased it for a short period of time but ended up being OK with the behavior.
  40. Replies
    14
    Views
    1,176

    Re: Excel data lookup function fine-tuning

    It seems to me that I have used this sequence,


    xlWb.Save()
    xlWb.Close(SaveChanges:=False) 'close WB
    xlApp.Quit()
    xlApp = Nothing
    xlWb = Nothing

    ...
Results 1 to 40 of 498
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width