Help with DirectX 9 in a picturebox

  • Thread starter Thread starter chapmjw
  • Start date Start date
C

chapmjw

I'm looking for an C# example of a form with a picture box that Directx
can draw to. My program plots the flight of a golf ball and I need to
do it realtime. I would like to keep as a child window on the form
because there are 15 or so parameters that can be changed just above
it.

Could you please point me to an example or advise to get me started.
thanks
jim
 
Firstly, forget about that PictureBox idea. It will cause you pain.

Secondly, get the DX9 SDK with the .NET managed extensions. It's pretty
simple to define a windowed area into which the DirectX gets drawn. The DX9
app wizard will get you goin on the right track.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Thanks Bob, but the wizard is no longer a part of DirectX 9.0 Sdk. The
sample bowser doesn't help much either.
Any other suggestions
jim


Tools
New Additions
AppWizards were removed. They were complicated and very labor intensive
to maintain. To replace them, we have extended the functionality of the
Sample Browser to allow you to choose any sample as a starting point
for a new project. Simply navigate to the sample you want to use and
click on the "Install Project" link. This open a dialog allowing
you to rename the sample and choose the path of where to place the
source files. This process copies both the media and the common
framework as well as renames the files and does a search/replace in the
files to truly rename the project.
 
Back
Top