Search:

Type: Posts; User: dbasnett

Page 1 of 13 1 2 3 4

Search: Search took 0.37 seconds; generated 8 minute(s) ago.

  1. VS 2022 Re: [RESOLVED] Confirmation dialog box not showing

    I have a strategy I use when closing form apps that have become 'complicated'. It is built-in to our standard app template.

    We define a 'Closing / Stopping' synchronization object in the form of...
  2. VS 2017 Re: Not showing any data exists on a form except a blank window while taking screensh

    Pass 'Me' to this method and then save the Bitmap


    Private Function TakeScreenShot(ByVal Control As Control) As Bitmap
    Dim tmpImg As New Bitmap(Control.Width, Control.Height)
    Using g...
  3. Replies
    4
    Views
    293

    VS 2022 Re: Dot in path name

    I would advise against using concatenation. Use IO.Path.Combine


    var = IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "\Apps")
  4. Replies
    4
    Views
    293

    VS 2022 Re: Dot in path name

    What version of .Net are you using? I was using 4.8.

    This worked for me, though GetFileName is returning a directory...


    'path = C:\Users\michael.basnett\AppData\Roaming
    Dim...
  5. VS 2022 Re: Issues when writing to a File using StreamWriter

    I tried to emulate what you say is happening. I think this captures what you said.


    Dim path As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
    path =...
  6. Re: how to show a string value in a double variable

    If you step through this code in the debugger you'll get some ideas. The snippet contains a link to format specifiers.


    Dim doubleValue As Double = 3.5#
    '...
  7. Replies
    3
    Views
    468

    Re: Vote for a new WCF Client code generator

    :eek::bigyello:
  8. VS 2022 Re: How to access form control from Microsoft.Office.Interop.Word event

    Change the one line that loads the .rtf file to this


    Me.Invoke(Sub()
    rtbAT.LoadFile("D:\xxxx\tmp.rtf")
    End Sub)
  9. Thread: loading forms

    by dbasnett
    Replies
    12
    Views
    801

    Re: loading forms

    I found this in the Reference Source. Didn't seem to matter if it was Show or ShowDialog.

    // MSDN: When a form is closed, all resources created within the object are closed and...
  10. Replies
    22
    Views
    1,054

    VS 2019 Re: Process faster in nested for loops

    It is a forms application running. Net 4.8
  11. Replies
    22
    Views
    1,054

    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
    ...
  12. VS 2022 Re: VB.net: Getting TextBox content as 'YYYYMMDD' or 'YYYYMM'

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

    Why would you store dates as strings? Generally not a good idea.
  14. 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
    ...
  15. VS 2019 Re: XML help: get subnode by value

    Then the XML you originally showed was different. Glad it worked.
  16. 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>
    ...
  17. Replies
    10
    Views
    1,144

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

    by dbasnett
    Replies
    8
    Views
    976

    Re: RFID reader

    Which RFID reader? Post a link please.
  19. Replies
    10
    Views
    841

    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,...
  20. Replies
    14
    Views
    959

    Re: System Re-write

    Thanks!
  21. 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.
  22. Replies
    14
    Views
    959

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

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

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

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

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

    Thanks for the kind words.
  28. Replies
    14
    Views
    959

    Re: System Re-write

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

    Re: System Re-write

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

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

    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,...
  32. Replies
    9
    Views
    744

    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...
  33. Replies
    9
    Views
    744

    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...
  34. Replies
    9
    Views
    744

    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...
  35. 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.
  36. 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...
  37. Replies
    6
    Views
    684

    VS 2017 Re: Select specific index item in a combobox

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


    ...
  39. Replies
    7
    Views
    767

    VS 2019 Re: Visual Studio & 4K

    What if you have two monitors with different resolutions?
  40. 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.
Results 1 to 40 of 498
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width