Drawing in a picturebox

Co2

Active member
Joined
May 29, 2003
Messages
34
Location
Universe 2.4.37
Hello,

I want to draw my primary surface in a picturebox but Ive not been able to do so properly. Im programming with vb.net and managed directx 9 using vs studio ent arch 2003.

Here is my code which was greatly base on a sample in the sdk:

Code:
Imports Microsoft.DirectX
Imports Microsoft.DirectX.DirectDraw

Public Class frmMain
	Inherits System.Windows.Forms.Form

	D
 
It seems that the picturebox control is doing something wrong with graphics. When I try the same code using the form as the device control and the clipper window, it works flawlessly.

Ill investigate that.
 
Ive switch the picturebox for a panel and it is much better. Drawing works fine now. I would suggest anyone who doesnt want to draw on the form itself to draw on a panel.

Thanks everyone (and a great thanks to me :) )
 
Back
Top