Hi, my name is Dave and i'm new on this forum.
I get an error when running this code, it's vb.net and directx9.
display = New Microsoft.DirectX.DirectDraw.Device(CreateFlags.Default)
display.SetCooperativeLevel(Me.PictureBox1, CooperativeLevelFlags.Exclusive)
this is the error that i get:
An unhandled exception of type 'System.ArgumentException' occurred in microsoft.directx.directdraw.dll
Additional information: Value does not fall within the expected range
if some one could help me i would be grateful.
best regards /DrDave
I get an error when running this code, it's vb.net and directx9.
display = New Microsoft.DirectX.DirectDraw.Device(CreateFlags.Default)
display.SetCooperativeLevel(Me.PictureBox1, CooperativeLevelFlags.Exclusive)
this is the error that i get:
An unhandled exception of type 'System.ArgumentException' occurred in microsoft.directx.directdraw.dll
Additional information: Value does not fall within the expected range
if some one could help me i would be grateful.
best regards /DrDave