Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 0.11 seconds.

  1. Replies
    14
    Views
    289

    Re: Get text from screen.

    :D :thumb:
  2. Replies
    14
    Views
    289

    Re: Get text from screen.

    That bug…

    184927
  3. Replies
    8
    Views
    208

    Re: Sort observablecollection by two fields?

    Even with something simple like a bubbleSort?
  4. Replies
    8
    Views
    208

    Re: Sort observablecollection by two fields?

    ProductCollection = ProductCollection.OrderBy(Function(n) n.Name).ThenBy(Function(n) n.ID)
  5. Replies
    24
    Views
    645

    Re: [RESOLVED] Weird Timer Behavior Issue

    Instead of…


    dgScheduler.CurrentCell = Nothing

    Try…


    dgScheduler.EndEdit
  6. Replies
    3
    Views
    189

    Re: Import DLL - Convert c#>VB Error

    If you're trying to drag a Form or a Control...
    (To drag a Control is slightly different)



    Private Sub Form1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)...
  7. Replies
    14
    Views
    413

    VS 2022 Re: Prevent Duplicates in Array

    👍 That’d work. But I thought the original random numbers were 1-58 and should’ve been 1-59 inclusive
  8. Replies
    14
    Views
    413

    VS 2022 Re: Prevent Duplicates in Array

    That would mean…


    Dim allNumbers() As Integer

    Would have to be changed to…


    Dim allNumbers
  9. Replies
    14
    Views
    413

    VS 2022 Re: Prevent Duplicates in Array

    Shuffling the full 59 numbers and taking the first 6 would be something like this..


    Dim Lotto() As Integer
    Dim allNumbers() As Integer = Enumerable.Range(1, 59).ToArray
    Dim RndLotto As New...
  10. Replies
    14
    Views
    413

    VS 2022 Re: Prevent Duplicates in Array

    There were a couple of points i noticed. Check the comments...


    Dim Lotto(5) As Integer ' if you want a 6 element array
    Dim RndLotto As New Random

    For x As Integer = 0 To...
  11. Replies
    5
    Views
    242

    Re: ShowDialog with data from parent form

    Why not a Form you’ve designed at design time? You can add controls to a Form at run time, but in most cases you wouldn’t…
  12. Re: Beginner need some help with an Array that gets a System.NullReferenceException

    The problem is that you haven't dimensioned the array - you're attempting to use elements that don't exist


    Redim Preserve inventory(intCount)
    With inventory(intCount)
    .strProductNumber =...
  13. Re: How to handle events of subform cells at runtime in Access

    First... Is this a VB.Net question??? Is this an Access VBA question???
    The two aren't interchangeable - they're different technologies, and the answer to your question depends on the answer to...
  14. VS 2022 Re: Getting the difference between two lists Expandoobjects with the same properties.

    That’s not how ExpandoObjects work. That’s how EqualityComparers and Linq work. The same methods would work with any List(Of Custom Class)…
  15. Re: Fast way to determine if an obj exists in a List(Of ExpandoObject) based on 2 pro

    You could use Linq, but I’m guessing you don’t just want to find an element? It’d make more sense to find an index…

    To test for exists…


    Public Function ObjExistsInListofExpando(ByVal value1...
  16. Replies
    4
    Views
    304

    VS 2022 Re: VB 2022 Syntax Changes ??

    Viola??? :D

    et voila, ça a marché
  17. Replies
    3
    Views
    354

    Re: "e" throws error

    If you’re trying to use ‘e’ as a variable name in an event handler sub, it conflicts with the ‘e’ for eventargs in the signature. Just use a different variable name…
  18. Replies
    19
    Views
    1,049

    VS 2017 Re: Make The Web Browser Editable

    Client Profile supports just a subset of the full framework. Changing that will have positive effects…
  19. VS 2010 Re: how can i convert this dragdrop code to resize code

    Why would you even consider converting dragdrop code?
    The two operations are not similar or related. You need to write it from scratch...
  20. Replies
    17
    Views
    591

    VS 2010 Re: how to make a isometric tycoon

    It’s a comfort issue :D
  21. Replies
    8
    Views
    386

    VS 2017 Re: Sort a 2D Array on two columns

    As jm said, there's nothing in the framework for sorting a 2D array, but you can use a simple bubble sort for an array of any complexity...
    (Defining an object would be a more professional approach,...
  22. VS 2010 Re: showing captions of childforms on combobox in vb.net 2010

    It's simple enough to do as you originally wanted, but you need to run this code every time a form loads or closes...


    ComboBox1.Items.Clear()...
  23. VS 2010 Re: showing captions of childforms on combobox in vb.net 2010

    An MDI form has a built in WindowList feature, which is a part of a menu item. The ms link I provided shows you how to implement a WindowList in a menu. As JM told you, that’s available in both c#...
  24. VS 2010 Re: showing captions of childforms on combobox in vb.net 2010

    https://docs.microsoft.com/en-us/dotnet/desktop/winforms/controls/how-to-create-an-mdi-window-list-with-menustrip-windows-forms?view=netframeworkdesktop-4.8
  25. Replies
    7
    Views
    396

    Re: Sender,byval,byref ??

    Later versions of VB.Net don’t explicitly use ByVal in signatures. None of those parameters you’ve shown would be ByRef.
  26. VS 2017 Re: Help removing lines from a multiline string variable

    That’s what happens and also the indexoutofrange exception
  27. VS 2017 Re: Help removing lines from a multiline string variable

    If you remove items from a collection while looping through that collection, the indices are thrown out of alignment. Looping in reverse doesn’t cause that problem.
  28. VS 2019 Re: Loading DataGridView Hangs On Large CSV File

    I really do need to see your code, to see where it’s gone wrong. I’m not there looking at your screen and you’re not telling me what you’re seeing, except for the errors you’re getting. I tested all...
  29. VS 2019 Re: Loading DataGridView Hangs On Large CSV File

    You might have ambiguous names. Variables and controls named the same name, etc. Why declare an openfiledialog in the form if you want to use it in the module?
  30. VS 2019 Re: Loading DataGridView Hangs On Large CSV File

    What is the name of the openfiledialog in form1 (or form2, wherever your dgv is)?
    What is the name of the DataGridView in the same form as ofd?

    Your use of modules is what is causing these scope...
  31. VS 2019 Re: Loading DataGridView Hangs On Large CSV File

    Why use Modules? Just put the bgw in the form code for the form where the dgv resides
  32. VS 2019 Re: Loading DataGridView Hangs On Large CSV File

    You need to post your latest code for me to see your errors
  33. VS 2019 Re: Loading DataGridView Hangs On Large CSV File

    Public Class Form1

    Private WithEvents bgw As New System.ComponentModel.BackgroundWorker

    reportprogress safely passes data from your bgw thread to your ui thread...
  34. VS 2019 Re: Loading DataGridView Hangs On Large CSV File

    This is slightly faster...



    Public Class Form1

    Private WithEvents bgw As New System.ComponentModel.BackgroundWorker

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e...
  35. VS 2019 Re: Loading DataGridView Hangs On Large CSV File

    It's still not quick, but this removes the app freezing part...



    Public Class Form1

    Private WithEvents bgw As New System.ComponentModel.BackgroundWorker

    Private Sub...
  36. VS 2019 Re: Loading DataGridView Hangs On Large CSV File

    I'm trying to create a file with 100,000 lines and 10 fields with test data. I'll let you know when it's working...
  37. VS 2019 Re: Loading DataGridView Hangs On Large CSV File

    I'd suggest a BackgroundWorker, and AddRange. I'd get it working for you, but i have no files to test it with.
  38. VS 2019 Re: Loading DataGridView Hangs On Large CSV File

    Try this...


    Dim rows As New List(Of DataGridViewRow)()
    Dim TextFieldParser1 As New Microsoft.VisualBasic.FileIO.TextFieldParser(OFD.FileName)
    TextFieldParser1.Delimiters = New String() {","}
    ...
  39. VS 2019 Re: Loading DataGridView Hangs On Large CSV File

    It’s definitely the repainting. You would see much better results if you create a list(of DataGridViewrow), then use AddRange to add it all at one time…
  40. VS 2019 Re: Loading DataGridView Hangs On Large CSV File

    The dgv repainting is the bottleneck. There's an AddRange method you could use, shown here...

    https://stackoverflow.com/questions/148854/adding-rows-to-datagridview-with-existing-columns
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width