0

need help for codings.. currently developing a kinect game for my final year project.. wanted to add in the swf files in my wpf app for the splash page.. followed the instructions and put in reference.. but this.Controls got error..

error

added what i am asked to add..but i still have this error..

error2

one more thing..i cant find the AxHost2Components in my toolbox..and i am not sure how to add.. =(

toolbox

suppose to have this..but don't have.. anyone know how?

mtijn
  • 3,610
  • 2
  • 33
  • 55

1 Answers1

0

Controls is a WinForms property, not a WPF Window property. so if it's not finding a property Controls I think you may have a WPF app when you expected a WinForms app, or you may have a WPF app and you're using the wrong property.

I don't know about the missing AxHost2 Components in the ToolBox Window because I've never used those but if you've got yourself a WPF app instead of a WinForms app then maybe that's why it's not showing up?

FYI: here's another post on how to embed SWF in your WPF app. Apparently the classes you are using are meant to be used with WinForms so I'm now assuming you set up a WPF project when you should have set up a WinForms project instead. that or you still have some work to do.

PS: there's some more text and code on how to do this in this online readable book (you may need to scroll up a bit, hope that stuff will help you).

Community
  • 1
  • 1
mtijn
  • 3,610
  • 2
  • 33
  • 55