Results 1 to 10 of 10

Thread: User Control Similar to Picturebox but using DirectX Render

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2020
    Posts
    63

    Question User Control Similar to Picturebox but using DirectX Render

    Hi, I've been meaning to ask this question for a while, because in my experience with vb6 I've never been good at rendering graphics with DirectX, there are plenty of examples on the internet but they're really so long in lines of code that it's a bit confusing.

    I've always used a PictureBox and PaintPicture to get by, and I think it's the easiest way for me to generate graphics and animate them with code in a way that's easy to understand, but in terms of performance when running the application, it's extremely inefficient with resources, especially at larger scales. That's why I'd really like to ask for your help.

    I'd like to create a UserControl that does this task as if it were a PictureBox with the method similar to PaintPicture, but that actually uses DirectX technology so that the graphics processing is actually done by the GPU.

    I share with you an example of what the programming logic that I follow would be like using PaintPicture, but I would love to achieve this with any version of DirectX that the vb6 IDE supports.


    Thanks guys!
    Attached Files Attached Files
    Last edited by Maatooh; Mar 5th, 2025 at 04:33 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width