Search:

Type: Posts; User: PlausiblyDamp

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: Why are my controls not being disposed ?

    Remove then from the controls collection might do it. Not sure if you would need to remove any event handlers as well or not.
  2. Re: Why are my controls not being disposed ?

    Dispose doesn't destroy the object, it simply calls a function intended to clean up the object's unmanaged resources.
  3. Re: How to Divide a Task Across all CPU Cores (Multithreading?)

    Not all code will benefit from multiple threads, so without knowing exactly what your calculation is doing it is very difficult to say if threading is the correct approach or not...

    Also if you...
  4. Re: Why can't I add to a list of string ?

    Lyst(0) = New List(Of String)
  5. Re: Why can't I add to a list of string ?

    Could you not come up with more helpful variable names? Just reading through that it is confusing to figure out exactly what Lizt, Lyst,and Lst are!

    Also you don't have a global List(Of String)...
  6. Replies
    10
    Views
    344

    Re: What is happening here ?

    In fact, the more I think about this the more I am convinced you shouldn't be doing things this way. If you really must do this through code then just handle the KeyPress or KeyDown events, however a...
  7. Replies
    10
    Views
    344

    Re: What is happening here ?

    .ToLower works but .ToUpper throws an error? That sounds weird - what error does it throw?
  8. Replies
    10
    Views
    344

    Re: What is happening here ?

    That seems really messy and confusing code. It is calling ToString on a .Text property that is already a string, it doesn't have Option Strict set either.

    The problem you are seeing is down to...
  9. Replies
    1
    Views
    208

    Re: Check if Directory in use.

    Probably easier to just try and then catch the error. Even if you could check, you get a potential race condition....

    You check and nothing is using the directory, then something starts using it,...
  10. Replies
    2
    Views
    201

    VS 2022 Re: textbox max length 1024

    Could it be because you are sizing your string to 102 4 spaces in your read function?
  11. Re: Visual Small Basic v1.8.5 for kids and beginners

    Only had a brief look at it myself and I am not really sure what benefits it would bring over just learning VB.Net - I think the fact variables don't seem to use "Dim" to declare them threw me...
  12. Replies
    6
    Views
    339

    Re: Command Prompt in Windows 10?

    It really depends on what you are overwriting and what you are overwriting it with - in this case presumably they have studied the original file and figured out how to safely change it to get the...
  13. Re: Should I use a Class or a Structure, (Matrix Tool)

    Looking at this and your original post, I am not convinced that switching between a struct and a class would yield much of a performance difference. If there are speedups to be had they are probably...
  14. Re: Best Alternative to VB6 for teaching and training

    May not be to your taste but have you considered C#? The IDE and language is free, installs just fine on a modern OS.

    The language can start from a very simple console "Hello World" in fact the...
  15. Re: Should I use a Class or a Structure, (Matrix Tool)

    I suppose the easiest way would be to try both approaches and time them.

    https://benchmarkdotnet.org/ is a great tool for benchmarking dotnet code.
  16. Replies
    694
    Views
    271,423

    Re: Vb6 , the Future, and what I have discovered

    Don't forget that it also targets x64, so I completely agree that generating correct code is far more important than optimised code at this stage.
  17. Re: variables in a sealed class retain value after form close

    [QUOTE=DaveDavis;5579686]I like your describes that I can understand. Now I 'reset' those 'global' static variables when I create new instance of my UserControl:



    public MyUC()
    {
    //...
    ...
  18. Re: variables in a sealed class retain value after form close

    Because static variables belong to the class, not an instance of the class. The lifetime is not the same as the lifetime of an instance.
    The static variable retains its value for the lifetime of...
  19. Re: variables in a sealed class retain value after form close

    https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/static
  20. Replies
    14
    Views
    959

    Re: Another Winsock question

    Exactly, when the server listens for incoming connections it will need to listen on a specific port. The client needs to connect on the same port for things to work.

    You could give the server a...
  21. Replies
    14
    Views
    959

    Re: Another Winsock question

    If somebody is going to connect to a server then they will need to know the name / ip address of the server - displaying the information makes it easier to find.

    An IP address might change,...
  22. Replies
    23
    Views
    770

    Re: Network Logic

    If a hashed password is all it takes to authenticate then you are correct, this is no more secure than not hashing - someone who can intercept the hash can impersonate the account.

    This is why you...
  23. Replies
    23
    Views
    770

    Re: Network Logic

    VB.Net is the current release, you just install it - no fuss, no workarounds. VB6 has issues because when it officially left support in 2008 Windows Vista was the current OS and no further updates...
  24. Replies
    23
    Views
    770

    Re: Network Logic

    This is why you would also want to use some form of encrypted connection, https is an example of this.
  25. Replies
    23
    Views
    770

    Re: Network Logic

    Normally you would be looking a some sort of firewall between your application and the internet, this could be a software solution, might be built in to your router, could be a 3rd part device if you...
  26. Replies
    4
    Views
    365

    Re: Winsock background questions

    [QUOTE=AccessShell;5578565]
    When I try to move off a LAN into the WORLD, I believe my code ould be



    me.sckMain.RemoteHost = Winsock.LocalIP
    Me.sckMain.RemotePort = Me.lblPort.Caption...
  27. Re: Closing Forms confuses me!

    The windows UI is ultimately driven by messages, which the underlying window itself will process. When you call .Close() on a form you are really doing nothing more than sending a WM_CLOSE message to...
  28. Replies
    13
    Views
    1,015

    Re: News for VB.NET!!!

    The article explains how to launch VS in a new hive, unless your question was something different.

    it is under Step 1. Launch Visual Studio in a new Hive. It even explains why as part of that...
  29. Replies
    60
    Views
    1,475

    Re: W11 idiotic.

    I think there is, I used chocolatey before the official one existed and haven't found a reason to change.
  30. Replies
    60
    Views
    1,475

    Re: W11 idiotic.

    On Windows I use chocolatey wherever possible to install software, at least that way I can install, update, and remove software from a command line. I just wish it worked the same for the OS itself.
  31. Replies
    4
    Views
    365

    Re: Winsock background questions

    Exiting an application with just an End statement is generally bad practice anyway, so I would avoid doing things that way....

    I am assuming cmdDisconnect is a specific example, but it is...
  32. VS 2022 Re: Mysql Sprocs Not running Mysql 8 and VS2022

    Shouldn't the command object be configured to use the connection your are creating and opening?
  33. Replies
    15
    Views
    882

    VS 2022 Re: Reading an API

    Still not 100% sure what you are trying to do, I think you are saying you want to search the results by filename and find the current version of a particular file. Is that correct?

    If so you could...
  34. Replies
    5
    Views
    370

    Re: Cookie help

    The API is the supported way of making requests, automating the web UI is against the T&Cs for just this reason (See section 8.2)
  35. Replies
    5
    Views
    370

    Re: Cookie help

    That seems an awful lot of effort to call their API, I have never seen an official api that requires the caller to mimic a Webbrowser like that.

    https://www.deepl.com/en/docs-api shows a much...
  36. Replies
    15
    Views
    882

    VS 2022 Re: Reading an API

    In your example above you have the line


    rawresp = reader.ReadToEnd()


    what does the contents rawresp look like?
  37. VS 2022 Re: Read multiple JSON files

    Does it give an error?
  38. VS 2022 Re: Read multiple JSON files

    Does your code throw any errors? If you step through it in a debugger is it correctly loading the json files and deserialising them?
  39. VS 2022 Re: Read multiple JSON files

    What have you tried so far? When you say you weren't successful what happened and how did it differ to what you expected to happen?
  40. Replies
    2
    Views
    261

    VS 2022 Re: Check for free memory

    I would say you are going wrong by taking an numeric value, converting it to a string and then converting it back to an number. Why not just use the number value directly?



    Dim full, drive As...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width