Search:

Type: Posts; User: dbasnett

Page 1 of 13 1 2 3 4

Search: Search took 0.22 seconds.

  1. Replies
    10
    Views
    805

    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 =...
  2. Thread: RFID reader

    by dbasnett
    Replies
    8
    Views
    707

    Re: RFID reader

    Which RFID reader? Post a link please.
  3. Replies
    10
    Views
    582

    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,...
  4. Replies
    14
    Views
    738

    Re: System Re-write

    Thanks!
  5. 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.
  6. Replies
    14
    Views
    738

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

    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
  8. Replies
    5
    Views
    636

    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.
  9. Replies
    14
    Views
    738

    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...
  10. VS 2012 Re: Hardware Random Number Generator - ubld.it TrueRNG v3

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

    Thanks for the kind words.
  12. Replies
    14
    Views
    738

    Re: System Re-write

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

    Re: System Re-write

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

    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...
  15. Replies
    14
    Views
    738

    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,...
  16. Replies
    9
    Views
    579

    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...
  17. Replies
    9
    Views
    579

    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...
  18. Replies
    9
    Views
    579

    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...
  19. 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.
  20. 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...
  21. Replies
    6
    Views
    633

    VS 2017 Re: Select specific index item in a combobox

    Not in the code you posted does it.
  22. 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.


    ...
  23. Replies
    7
    Views
    686

    VS 2019 Re: Visual Studio & 4K

    What if you have two monitors with different resolutions?
  24. 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.
  25. 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.
  26. Replies
    9
    Views
    2,955

    VS 2008 Re: Changing process name?

    A very old thread marked as Resolved. Here's a thought, create a New Thread.
  27. 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...
  28. 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 =...
  29. 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...
  30. 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...
  31. 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.
  32. 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()
    ...
  33. Replies
    14
    Views
    1,144

    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.
  34. Replies
    14
    Views
    1,144

    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

    ...
  35. Replies
    9
    Views
    805

    VS 2022 Re: Backgroundworker query

    It would be interesting to see the 'telnet' code. Also post a link to the protocol of the data coming from the device.
  36. Replies
    3
    Views
    552

    Re: Math.log() give me wrong result

    2kaud is correct,


    Dim d As Double
    d = Math.Log(0.156#)
    ' d = -1.8578992717326

    'Wolfram Alpha answer
    ' ...
  37. Replies
    2
    Views
    431

    Re: FileSystem DeleteDirectory Restrictions

    Have you tried using IO.Directory.Delete? In the Catch you could use debugging to find issue....


    Try
    IO.Directory.Delete("path here")
    Catch ex As Exception

    ...
  38. Replies
    4
    Views
    418

    Re: how to add {} in each line of the array

    In this example I created some values to use. Once I had those I created your output using StringBuilder.


    ' Sample values
    ' Define the size of the array
    Const rows As...
  39. Replies
    11
    Views
    869

    Re: process exited

    You were given two suggestions. Here they are,


    Public Class Form1
    'process 1 was added in the Form designer
    Private Sub Process1_Exited(sender As Object, e As EventArgs) Handles...
  40. Re: Strange behavior of BackgroundWorker -- Sometimes very fast, sometimes very slow

    I ran this as a test. Note the comments for the results. The input folder is 327 MB.


    Public Class Form1

    Private Async Sub Button1_Click(sender As Object, e As EventArgs) Handles...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width