Search:

Type: Posts; User: Niya

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds; generated 9 minute(s) ago.

  1. Replies
    42
    Views
    565

    Re: Stop whining - just get numb

    It's called being rich and living behind high walls and security check points. Sadly not all of us can afford this so we have to live among psychos and hope we don't piss them off or they don't want...
  2. Replies
    42
    Views
    565

    Re: Stop whining - just get numb

    So letting the psychos do what they want because you have no way to fight back is better. Is this what you're saying?
  3. Replies
    42
    Views
    565

    Re: Stop whining - just get numb

    The topic of gun rights in America is not something I can weigh in on too deeply since I don't live in the US. However, as someone that lives in a country where it's illegal to own a firearm of any...
  4. Replies
    11
    Views
    254

    Re: Public Variables in a Class Module

    To be perfectly honest, I tend to default to using properties over public fields in classes whenever writing OO code. However, I would not hesitate to prefer public fields in VB6. I found that other...
  5. Replies
    10
    Views
    197

    Re: The most lacking language feature in VB6

    Fair enough. Carry on soldier ;)
  6. Replies
    4
    Views
    127

    Re: How to simulate "try-catch-finally" in VB6

    Also I should mention, I didn't account for Exception objects in my example but that I think you could figure out how to work that in. I wanted to keep it as thin as possible so you can understand...
  7. Replies
    4
    Views
    127

    Re: How to simulate "try-catch-finally" in VB6

    This:-


    private void Form1_Load(object sender, EventArgs e)
    {
    Debug.WriteLine("Entering function.");

    TestTryCatch();

    ...
  8. Replies
    10
    Views
    197

    Re: The most lacking language feature in VB6

    Careful, you're starting to sound like me. We all know how that turns out eventually.
  9. Replies
    20
    Views
    523

    Re: Get text from screen.

    Yea I tested this and it works too. It requires that you reference two extra assemblies but it's a lot more compact than my solution which is a more low-level approach.
  10. Replies
    20
    Views
    523

    Re: Get text from screen.

    This is very tedious to do, but otherwise relatively easy to accomplish if you know what APIs to use:-

    https://www.vbforums.com/images/ieimages/2022/05/23.png

    Here is the entire program:-

    ...
  11. Thread: Stuff to watch

    by Niya
    Replies
    133
    Views
    9,464

    Re: Stuff to watch

    God I hope this is real. If it is, they'd have no problem getting my money for nothing more than the fact than they have the balls to speak out against woke leftist garbage. Even if they made the...
  12. VS 2019 Re: Prevent "Conversion from type DBNull to type String" error

    This takes quite a while to get a handle on. This used to trip me up when I first came across the concept of a null value in databases. However with time and experience one begins to appreciate it's...
  13. Thread: Monitor Numbering

    by Niya
    Replies
    6
    Views
    290

    Re: Monitor Numbering

    Did you see this thread?
    https://superuser.com/questions/1455322/windows-10-change-display-numbers-identity

    What I read there gave me some ideas, things I'd try if I were doing this.
  14. Replies
    9
    Views
    265

    Re: Sort observablecollection by two fields?

    Recently I've grown more fond of query syntax LINQ. I started preferring it to functional syntax because it tends to be more concise and a lot easier to follow. As such this:-

    ProductCollection =...
  15. Replies
    8
    Views
    208

    Re: Animation Implementation

    I believe that the animations like a tail wagging would be pre-calculated in 3D modelling software like Maya or whatever is the top 3D modelling software is today or perhaps even something made...
  16. Re: COMInterop - System cannot find file - VB6 IDE only

    Ah ok. Glad you solved it.

    COM is tricky because of how easy it is to break. A wrong GUID here or a wrong path there is all it takes. My line of questioning was me trying to narrow down where the...
  17. Replies
    8
    Views
    208

    Re: Animation Implementation

    In this case they are almost certainly 3D.



    3D graphics use a wire mesh of triangles with texture mapped onto it. Movement is achieved by moving vertices of the triangles of the mesh. Certain...
  18. Re: COMInterop - System cannot find file - VB6 IDE only

    Ok that's fine. Help me to understand what your binaries look like. You said it references a type library from VB6 yet there is obviously executable code which means there will also be a DLL that...
  19. Replies
    8
    Views
    208

    Re: Animation Implementation

    Are the graphics in this game using any kind of specially effects like glowing effects, shadows, lighting ect? Or are they just plain sprites being moved around without any kind of effect being...
  20. Re: COMInterop - System cannot find file - VB6 IDE only

    Ok. Do you consider this C# component proprietary software? If not, can you upload it so I can take a look at it?
  21. Re: COMInterop - System cannot find file - VB6 IDE only

    Also, I want you to go to your project references in VB6 and tell me if you're referencing the C# component through a type library or a DLL. Just look at the extension of the file it's referencing. A...
  22. Re: COMInterop - System cannot find file - VB6 IDE only

    Is the C# assembly written by you or is it a 3rd party component you downloaded from the internet?
  23. Re: COMInterop - System cannot find file - VB6 IDE only

    Did you try creating a new VB6 project to test the COM component? Create a new VB6 project then add a reference to COM Interop type library and try to instantiate your object. See if that fails. The...
  24. Replies
    14
    Views
    364

    Re: microsoft, do you have brain

    OP really puts the mods to work around here doesn't he :D
  25. Replies
    20
    Views
    743

    Re: VB6 Package and Deployment Wizard

    Well I don't really want to get into this too much today. I'm sorry you had such a poor experience with .Net. My guess would be that you didn't take the time to really dig into .Net and as a result...
  26. Replies
    20
    Views
    743

    Re: VB6 Package and Deployment Wizard

    In theory, all of this sounds scary but in actual practice, none of it matters one bit. The size of the framework accounts for 0.000005% the size of a modern Windows installation and .Net handles...
  27. Replies
    11
    Views
    340

    Re: newer VS versions and subscriptions

    I've downloaded and used VS2019 CE and I'm currently using VS2022 CE. I don't recall ever being required to log in to anything.
  28. Replies
    17
    Views
    535

    Re: READ part of string

    Oh that file is definitely JSON. It's not "well formed" or as dilettante said, legal JSON but it's JSON nonetheless. Such files really should be parsed using the proper tools. Using ad-hoc methods...
  29. Re: VB6 QUESTION: How many here have rolled their own msgbox dialog boxes?

    I passed through this phase at one time. I once write an entire message box class from scratch for some program I was writing in VB.Net many years ago. I wrote it specifically for reporting error...
  30. Replies
    20
    Views
    743

    Re: VB6 Package and Deployment Wizard

    It's not really a matter of agree or disagree. I'm telling him what my actual experience was replicating functionality and programs to VB.Net from VB6. I've re-written a lot of my VB6 stuff in VB.Net...
  31. Replies
    14
    Views
    425

    VS 2022 Re: Prevent Duplicates in Array

    Fair enough.
  32. Thread: Foreign Aid???

    by Niya
    Replies
    38
    Views
    685

    Re: Foreign Aid???

    A little pre-warning. Please don't take what I'm about to say as an attack on you.

    This is exactly why I'm critical of mainstream media. It keeps so many people asleep, numb and ignorant about how...
  33. Replies
    20
    Views
    743

    Re: VB6 Package and Deployment Wizard

    I just want to touch on this. Your first instinct might be to do a line-by-line translation of the source code. I don't know if this is what you're doing but if so, do not do this. I've migrated...
  34. Thread: FYI: Adios

    by Niya
    Replies
    67
    Views
    8,442

    Re: FYI: Adios

    I doubt he still comes here. The last time he touched these forums was in September 8th, 2021. Keep your fingers crossed though.
  35. Replies
    14
    Views
    425

    VS 2022 Re: Prevent Duplicates in Array

    This is definitely the right idea but that algorithm has a slight problem. OP implies that he wants to have an array of a specific size, 6 items in his case. Depending on how the random numbers are...
  36. Replies
    2
    Views
    166

    Re: Return Offsets of Hex String in file

    You could write something like this:-


    Private Function FindOffsets(ByVal filePath As String, ByVal findHex As String) As Long()

    Dim bytes = (From i In Enumerable.Range(0,...
  37. Thread: Monitor Numbering

    by Niya
    Replies
    6
    Views
    290

    Re: Monitor Numbering

    EnumDisplayMonitors and the Windows Display Settings are only loosely related. The Windows Display Settings could be calling EnumDisplayMonitors, however it can then choose to number the information...
  38. Re: Fast way to determine if an obj exists in a List(Of ExpandoObject) based on 2 pro

    This is precisely why data structures like hash tables were invented:-


    Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Dim find_x As...
  39. Replies
    8
    Views
    303

    Re: Problem with Asc()

    I'm going to give you the best piece of advice you've ever gotten, please for the love of God and everything sacred in this life stop using ASCII. ASCII is a dinosaur that the world has forgotten...
  40. Thread: TwinBasic

    by Niya
    Replies
    992
    Views
    379,100

    Re: TwinBasic

    This is exactly why I stopped installing anti-Virus software on my PC years ago. It's Windows Defender and no more.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width