Search:

Type: Posts; User: PlausiblyDamp

Page 1 of 13 1 2 3 4

Search: Search took 0.12 seconds.

  1. Re: Implementing interfaces that inherit from IDispatch

    https://docs.microsoft.com/en-gb/windows/win32/api/oaidl/nn-oaidl-idispatch?redirectedfrom=MSDN

    IUnknown is pretty much the fundamental COM interface, everything inherits from this. IDispatch is...
  2. Replies
    4,792
    Views
    417,629

    Re: Corona virus, China major city lockdowns, etc.

    Evolution is a very slow and uncertain process, it can take thousands of years for even minor changes to occur.

    Medicine and related health improvements (call it Big Pharma if you like) have...
  3. Re: I want to ask the user to login only English text ??

    Your previous thread https://www.vbforums.com/showthread.php?894643-How-do-I-ask-the-user-to-enter-a-number-in-a-Text gave examples of how a particular condition could be imposed, the general process...
  4. Re: I want to ask the user to login only English text ??

    So only valid English words, as found in an English dictionary?
  5. Re: I want to ask the user to login only English text ??

    What do you mean by "only English" though? Just characters in the English alphabet? ASCII characters?
  6. VS 2019 Re: [RESOLVED] Unzip Archive from Resources

    Dim entryFullname = Path.Combine(dirPath, entry.FullName)
    Dim entryPath = Path.GetDirectoryName(entryFullname)

    Seems a bit redundant as you are combining the dirPath with the entry name, and then...
  7. VS 2019 Re: [RESOLVED] Unzip Archive from Resources

    Then check to see if the folder is there and create it if it isn't. Or handle the exception by creating the folder and trying it again.
  8. VS 2019 Re: [RESOLVED] Unzip Archive from Resources

    What errors do you get? The more information you provide the less we have to guess at what is going wrong. What version of .Net are you using? The code I posted will work with the latest version but...
  9. Re: I want to ask the user to login only English text ??

    What conditions though?
  10. VS 2019 Re: [RESOLVED] Unzip Archive from Resources

    A zip file is a binary file, trying to display it as UTF8 text makes no sense.
  11. VS 2019 Re: [RESOLVED] Unzip Archive from Resources

    If you were updating the MemoryStream then I could understand that exception, however if you are only reading from it that seems strange...

    Try the following...


    dim zipBytes as byte() =...
  12. VS 2019 Re: [RESOLVED] Unzip Archive from Resources

    In the second example you aren't using the same overload of the ExtractToDirectory method, try using the one that takes a second Boolean parameter.

    Which line in the first example gives the...
  13. VS 2019 Re: [RESOLVED] Unzip Archive from Resources

    Perhaps make the ZipArchiveMode.Read rather than update if you are only ever going to extract, according to the docs...
  14. VS 2019 Re: Unzip Archive from Resources

    Is the zip file embedded as a resource in your application? If so the resource My.Resources.Test is the zip file, not a path to the zip file.

    Not tested the code below, so it could very well be...
  15. Re: How do I set proper DPI setting in my application?

    https://docs.microsoft.com/en-us/dotnet/desktop/winforms/high-dpi-support-in-windows-forms?view=netframeworkdesktop-4.8 is probably worth a quick read.
  16. Re: I want to ask the user to login only English text ??

    So what exactly are you wanting? Do you wnat to limit the input? Display a message? What? Give as much detail as possible when asking a question, not a screenshot and virtually no words. This...
  17. Re: How's too of making a compressed file, of some sorts

    So if a multiple megabyte mkv film could be compressed to 100 bytes why would we not be using this format instead of mkv? mkv is already a compressed format, you aren't going to get one compressed to...
  18. Replies
    861
    Views
    280,258

    Re: TwinBasic

    Compact language syntax and runtime memory usage aren't really related. Yes in early versions of c ++ and +1 mapped to different Cpu instructions but that hasn't been the case for decades. Any decent...
  19. Replies
    3
    Views
    697

    Re: User Control, Visual Studio 2019

    It looks as though your new user control is inheriting from usercontrol1, if you check the code behind it might have an Inherits statement. Worth looking to see what it says.
  20. Re: [RESOLVED] Assuming VB6 goes multi-platform...APIs?

    After using .Net for many years I think this approach is the one that makes sense, intercepting WinAPI calls and redirecting to the local OS equivalent is always going to be slower, more error prone,...
  21. Replies
    4,792
    Views
    417,629

    Re: Corona virus, China major city lockdowns, etc.

    If they were sensible enough to have orchestrated a world wide epidemic I doubt they would have been stupid enough to then announce it publicly beforehand.
  22. Replies
    4,792
    Views
    417,629

    Re: Corona virus, China major city lockdowns, etc.

    https://www.dailymail.co.uk/video/tvshowbizbigbrother/video-2196054/Video-George-Galloway-pretends-cat-cringeworthy-CBB-episode.html might give you an idea of what he is like, anything for a bit of...
  23. Re: No help files for Visual Studio 2010

    2022 is already final, it also allows you to install the help files locally (no idea if that was available in previous versions of VS or not)
  24. Replies
    861
    Views
    280,258

    Re: TwinBasic

    So changing the option would effectively rewrite the relevant parts of the code? Or would it store the code the same way under the hood and just display / translate in the editor based on your IDE...
  25. Replies
    861
    Views
    280,258

    Re: TwinBasic

    The problem you get with that is somebody could then make the += operator do something non-obvious. That could result in the following two examples doing two completely different things...


    Dim i...
  26. Replies
    861
    Views
    280,258

    Re: TwinBasic

    The biggest problem with an IDE setting is what happens if you open a project from someone who has their IDE set up differently to yours? Would the code still compile if your IDE was set to not use...
  27. Re: Using Microsoft Cognitive Services in VB6

    The search service is changing anyway, it has a more on that page pointing this out. If you follow the link to the new search service you can see examples of calling the API using a restful approach....
  28. Replies
    6
    Views
    270

    Re: better way to convert seconds into dd:hh:mm:ss?

    That is probably the easiest way to get a number of seconds into a usable object, you might find that the ToString method of the TimeSpan useful to simplify generating the string though.
  29. Replies
    57
    Views
    1,888

    Re: Learning Visual Basic Net

    Nothing is ever simple on these forums :D we tend to get a bit enthusiastic in our attempts to be helpful! It isn't a bad thing, honest :)
  30. Replies
    57
    Views
    1,888

    Re: Learning Visual Basic Net

    Oddly enough I haven't tried Python with Visual Studio in years, used to be quite poor integration. Tended to use Anaconda or VS Code, just tried it with VS 2022 and I am amazed how much it has...
  31. Replies
    57
    Views
    1,888

    Re: Learning Visual Basic Net

    Try that in something like VB6 and it isn't likely to work without a form or a sub main and a project file configured to launch either the form or the sub main. Same with VB.Net, you can't just dive...
  32. Replies
    57
    Views
    1,888

    Re: Learning Visual Basic Net

    I think that it is unfair to compare C# and C directly in this way, as a starter language C is certainly impenetrable with a heavy reliance on pointers, raw memory allocation / frees, null terminated...
  33. Replies
    57
    Views
    1,888

    Re: Learning Visual Basic Net

    If you include some of the recent changes to C# in the latest release (top level statements, file scoped namespaces, etc.) it can really make C# an accessible language, possibly easier than VB.Net in...
  34. Replies
    57
    Views
    1,888

    Re: Learning Visual Basic Net

    Often in programming a new construct can seem difficult until you have either found a good reason to use it yourself, or a decent example / documentation can be found. The online help can really be...
  35. Replies
    57
    Views
    1,888

    Re: Learning Visual Basic Net

    VB.Net is a perfectly fine starter language, a lot of the constructs are things you would expect in any language - variables, arrays, functions etc. The fact it can get more complex doesn't prevent...
  36. Re: How can I create a larger Array?

    Check your application settings, you might have it set to build as a 32 bit application or have 32 bit preferred.

    Building as a 64 but might solve the problem, not actually near my pc at the...
  37. Re: Running program in Compatibility mode XP SP3. Can't execute win 10 .exe via shell

    Do you know what it is in your application that requires compatibility mode? If you can identify the reason you might be able to fix the application to no longer require compatibility mode.
  38. Re: Procedure to delete certain files

    Not sure bypass is the correct choice of word there. You will need to run your application with Admin rights or your application would need to be written to elevate the permissions it runs with....
  39. Re: problem converting listbox value to string

    ListBox1.Selected item is the actual item that is bound to that index in the listbox, presumably that is where DataRowView is coming from. It is trying to convert that to an Integer as that is how...
  40. Replies
    4,792
    Views
    417,629

    Re: Corona virus, China major city lockdowns, etc.

    Not sure what we expected when we voted in a known liar, did we suddenly expect him to stop lying? Utterly baffles me how people are willing to let him get away with the blatant lies, not even well...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width