Search:

Type: Posts; User: Inferrd

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. VS 2015 Re: Binance order API : The remote server returned an error: (400) Invalid command

    There's a few things wrong that I can see:



    There's an error in the HashString Function in Post #1. It should be using a HMACSHA256 algorithm, not HMACSHA1.
    Your TotalParam query string has...
  2. Re: Hand cursor (VB) doesn't follow Link cursor (System)

    (looking at the Cursors Class source code) it appears the hand cursor and half a dozen other cursors are not mapped to the system cursors. They are hard coded as resources in the...
  3. Replies
    10
    Views
    1,675

    VS 2017 Re: How do I move data in a DataGridView DOWN?

    Yes. If I select the 4th row and click the button 4 times, then I see the following message box messages (2 messages per click):


    5, 3
    6, 4
    7, 5
    8, 6
  4. Replies
    10
    Views
    1,675

    VS 2017 Re: How do I move data in a DataGridView DOWN?

    It works perfectly for me when using a button to do the moving. Here's the code I'm using, which is your code from post#3 with the last two lines altered to use the + 1.

    Private Sub...
  5. Replies
    10
    Views
    1,675

    VS 2017 Re: How do I move data in a DataGridView DOWN?

    You make a copy of the row at index currow. You insert this row at index currow+2, so the new current row is at currow+2.
    You then delete the original row at index currow. This moves all the...
  6. Replies
    18
    Views
    2,755

    VS 2019 Re: Create a List for multiple entries

    If you want to store and retrieve a chunk of data based on a keyword, then a Dictionary is a good choice. You had one set up in Post #12.

    However, to retrieve values you do not iterate through...
  7. Replies
    5
    Views
    2,664

    VS 2019 Re: remove Listview column sortorder

    Do you realise that it's your code that is adding the arrow?

    m_SortingColumn = new_sorting_column
    If sort_order = SortOrder.Ascending Then
    m_SortingColumn.Text = ChrW(&H25B2) & " " &...
  8. Replies
    5
    Views
    1,460

    Re: Element ID not Found

    Never done this before. Don't understand JavaScript. May not be (probably isn't) the best approach. No idea what errors could be raised (eg: what if the element does not exist?). But it seems to work...
  9. Replies
    20
    Views
    2,729

    Re: [RESOLVED] Arrays- Sorting and initialization

    Too many versions!! ;-)

    I normally create projects from a template I made years ago and haven't updated in a while. It still targets 4.5.2, so I got the same errors as db. Tbh, I didn't even know...
  10. Replies
    20
    Views
    2,729

    Re: [RESOLVED] Arrays- Sorting and initialization

    .NET Framework 4.7.1 or later. Or any of the .NET Cores/.NETs.
  11. Re: How do I code pointers in Visual Basic? (Relating to Cheat Engine) I'm so confuse

    You probably want to start by rewriting your code library so it can properly handle 64 bit processes and their use of a 47 bit address space.
  12. Re: How do I code pointers in Visual Basic? (Relating to Cheat Engine) I'm so confuse

    Looks like your memory addresses are 8 Byte, not 4 Byte.

    In your first image you have 1C6B64B7050 + A4 = 1C6B64B70F4

    and in your last image where you have 'Type' set to '4 Bytes', you have...
  13. Replies
    7
    Views
    2,910

    VS 2019 Re: uncheck all parent nodes

    Not sure what you're doing - the attachment isn't showing.

    Do you have the TreeView.CheckBoxes property set to True or False?

    If it is set to True and you also have a TreeView.StateImageList...
  14. Replies
    7
    Views
    2,910

    VS 2019 Re: uncheck all parent nodes

    You would use the same code that performs the node unchecking, except you would call it from a Button.Click event handler rather than from the TreeView.AfterCheck event handler.
  15. Thread: Sort an Array

    by Inferrd
    Replies
    4
    Views
    1,089

    VS 2017 Re: Sort an Array

    How have you created the ar array?

    Given that you have created the ars array like this:
    Dim ars(arraylength, 5) As Object to hold data from rows of 5 columns, I'd guess that you have used the...
  16. Replies
    11
    Views
    6,706

    VS 2019 Re: Serialport error

    Ah. I see how what I wrote is confusing. I meant that the package available via Nuget is System.IO.Ports.

    My mention of .NET Platform Extensions 5.0 was in reference to what currently appears in...
  17. Replies
    11
    Views
    6,706

    VS 2019 Re: Serialport error

    In the .NET Framework, the SerialPort Class is part of the System.dll assembly which is referenced by default.

    The OP's project is using some flavour of .NET Core/.NET 5 and it's those versions of...
  18. Replies
    3
    Views
    3,195

    VS 2019 Re: add icon to Listview subitem

    No, the Listview doesn't support images in any column other than the first column (details view). However, if you were in a masochistic mood you could set the ListView.OwnerDraw Property to True and...
  19. VS 2017 Re: Interval on the Y-axis for an Excel graph

    It looks like you need the Axis.MajorUnit property.

    So building on ChrisE's code above, you could use something like:
    Dim ax = DirectCast(chartPage.Axes(XlAxisType.xlValue), Excel.Axis)...
  20. VS 2019 Re: Loop through Listitems not working

    You repeatedly add the MyPath object to the YearsList list without ever creating a new MyPath object. So you are storing the same object every time through the loop, so every item in the list will be...
  21. VS 2019 Re: Using hoot to create indexes of documents in a folder

    Try
    Dim hOOters As New RaptorDB.Hoot(SearchFolder, "documents", True)
  22. Replies
    16
    Views
    2,857

    Re: Loop and search in bin file for bytes?

    If you have a number of objects you need to loop over you would add them to some sort collection object. You can then access each item from the collection in turn using a For Each loop, or by index...
  23. Replies
    10
    Views
    2,356

    VS 2019 Re: ∞ in console with Server 2019?

    After a little more thought, I remembered there's an overload of the StreamReader constructor that accepts a buffer size, and sure enough, specifying a larger buffer size allows more characters to be...
  24. Replies
    10
    Views
    2,356

    VS 2019 Re: ∞ in console with Server 2019?

    Sorry for the delay in replying. Just back from mandatory cultural sensitivity training :p

    According to the documentation for the Console.ReadLine Method, there's a 256 character limit to the size...
  25. Replies
    10
    Views
    2,356

    VS 2019 Re: ∞ in console with Server 2019?

    Yeah, several of the single byte encodings have the '∞' character, but many don't.

    The 'en-US' culture defaults to Encoding IBM437 for the console, and that has a mapping for '∞'. However 'en-GB'...
  26. Replies
    10
    Views
    2,356

    VS 2019 Re: ∞ in console with Server 2019?

    Looks like an issue with the text Encoding. '8' is typically the fallback character used by encodings that don't support the '∞' character, but do support fallback.

    Try setting the...
  27. Replies
    8
    Views
    2,290

    Re: How to find a control in a TableLayoutPanel

    Please bear in mind what jmc said here:


    Regarding your original question: jmc has overlooked the fact that the Controls.Find method returns an array of the controls that match the name you...
  28. Replies
    13
    Views
    2,829

    Re: Hex value to Byte of Hex value

    You are getting the wrong CRC value because you have a typo in this block of code:
    frame(3) = CByte(&H14)
    frame(4) = CByte(COBID1 Mod 100)
    frame(5) = CByte(COBID1 \ 100)
    frame(6) = 0
    frame(7) =...
  29. Replies
    8
    Views
    2,258

    VS 2019 Re: Help needed translating c# code

    Nice. My cat died 2 years ago and I still miss her deeply, so I thank you :)
  30. Replies
    8
    Views
    2,258

    VS 2019 Re: Help needed translating c# code

    Glad it worked for you. I'm happy to help when I'm able to, just as others have helped me. Always been an advocate for "Pay it Forward" :thumb:
  31. Replies
    8
    Views
    2,258

    VS 2019 Re: Help needed translating c# code

    The problem lies in the overridden Attach method.

    As it stands, it returns True if text is about to be rendered using the Calibri Font, and False for all other circumstances.

    Returning True...
  32. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    I've tested it and it does work. If it's returning Nothing, then the path you are looking for doesn't exist in the node collection. You're using .Equals(filename) in your code. Make sure you are...
  33. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    Try something like:
    Dim lastChangeTime As Date? = nodes.FirstOrDefault(Function(n) n.FullName.Equals(mypath))?.LastChangeTime

    Note the 2 question marks. lastChangeTime is a Nullable Date, and...
  34. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    Sounds like you've got it sussed :thumb:
  35. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    Looks good, even with the evil this forum does to images (resizes them to max 600px wide).

    You must be recursing through all the folders on the drive to get the sizes? Is that what takes the time?
  36. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    Do you mean that you are fetching the dirs and files lists for many search paths? If so how many?

    I notice that the Path.Combine approach does not scale well. For 100 search paths, I'm seeing...
  37. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    Yeah, it will be slower as that method is called for every node in the list, whereas adding the \ to the end of the search path is only done the one time. That said, I wouldn't have expected an extra...
  38. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    Yeah, I was a bit puzzled there. :)

    With a little refactoring, you can use the Path.Combine Method from the Path Class to build your paths and sort that out for you automatically inside the LINQ:...
  39. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    Aye, you can't beat a good forum ;)
  40. VS 2019 Re: Extracting specific information from an IEnumerable using LINQ?

    OK. Thanks for the links. Will check them out later.

    You're actually using the OrderBy in your GetFileNodes method to order the IEnumerable(Of INode) returned by the NtfsReader:...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width