JCreationsInc
Active member
Hello everyone!
I am a vb6 verteran and I am just begining to learn vb.net and it is going pretty well. Luckily I have found this site with such skilled programmers to ask questions to! Well then on to my questions.
What I am doing is creating a Program for my Programs that would allow you to easily create "Skins" using a type of designer like vb.net that allows you to drag the images arround the window and place them were you like them to be. But in testing when I drag the image arround the window using drawimage, I get HORRIBLE flicker and I Have tried everything to circumvent it, but to no avail.
In vb6 double buffering was pretty easy, all you had to do was create a DC (Device Context) in memory using "CreateCompatibleDC" then Create a Surface for the image in the DC using "CreateCompatibleBitmap". Then you would draw on you surface and the paint it to your form or picture box.
Now comes GDI+ and Managed code, AAAAAAAAAAAHHHHHHHHHH!!!!!!!! GDI+ has some nice features and is VERY much more robust than gdi32, but creating a graphics object in memory is so confusing and frustraiting!
So then I google it and I come to this site with these forums and I learn that you can envoke a double buffering method built right into the windows controlstyles namespace. So then I attempt to research it and I get nothing but a headache and a wicked urge to just smash this computer with a 50lb sledge hammer!
Anyways what I am asking you fine people stuck in my lil box on top of my desk is, how do you Double buffer using an object created in memory? OR how do you use the double buffering built into the .Net Framework?
All imput will be greatly Appreciated!
I am a vb6 verteran and I am just begining to learn vb.net and it is going pretty well. Luckily I have found this site with such skilled programmers to ask questions to! Well then on to my questions.
What I am doing is creating a Program for my Programs that would allow you to easily create "Skins" using a type of designer like vb.net that allows you to drag the images arround the window and place them were you like them to be. But in testing when I drag the image arround the window using drawimage, I get HORRIBLE flicker and I Have tried everything to circumvent it, but to no avail.
In vb6 double buffering was pretty easy, all you had to do was create a DC (Device Context) in memory using "CreateCompatibleDC" then Create a Surface for the image in the DC using "CreateCompatibleBitmap". Then you would draw on you surface and the paint it to your form or picture box.
Now comes GDI+ and Managed code, AAAAAAAAAAAHHHHHHHHHH!!!!!!!! GDI+ has some nice features and is VERY much more robust than gdi32, but creating a graphics object in memory is so confusing and frustraiting!
So then I google it and I come to this site with these forums and I learn that you can envoke a double buffering method built right into the windows controlstyles namespace. So then I attempt to research it and I get nothing but a headache and a wicked urge to just smash this computer with a 50lb sledge hammer!
Anyways what I am asking you fine people stuck in my lil box on top of my desk is, how do you Double buffer using an object created in memory? OR how do you use the double buffering built into the .Net Framework?
All imput will be greatly Appreciated!