Background doesn't repaint

Hi folks!

I want to create a level editor using c# and Direct3D.
At the beginnning i tested my stuff rendering directly to the form.
Now i render to an object derived from panel. Everything works fine, but
all the form's other controls aren't repainted.
the panel itself as well as the device, etc. is contained in a simple manager class.
Does anybody know, if that is a common problem, or am i doing something wrong
Shall i post some of my code
I hope, i wont have to write my own gui controls using d3d like in the sample framework ;)
Does anyone have a clue

thanks,

Martin


Answer this question

Background doesn't repaint

  • TrevorSB

    Hi,  I'm building a Science Modeling tool that renders to a PictureBox using C# and Managed D3D.  I'm have my own troubles with handling the proper events to re draw my 3D scene.  Such as Resizing the Main form, using a tab control with scenes on each tab page.

    I've handled a few events that help.  I've also implemented the 'reset device' logic in case the d3d device is lost.

    Any advice you can share with me

    Is it better to render to a panel instead of a picturebox

    Thanks!!

    David

  • William K

    Which events did you use to do it
    I don't think it makes a difference, using a picturebox or a panel...

    Bye,

    Martin

  • Olivier Cueilliez

    Hey Martin,  This is David Blue... you answered my questions via email.

    But for the rest of the forum...

    I believe the big key to my problem is to create a derived class from the picturebox so I can 'override' functions as necessary.

    Thanks!

  • dream123434

    stupid me... problem solved. don't know, how i ran into this ;)
  • Background doesn't repaint