July 31. 2007

Windows Forms : Owner and Owned Forms

Tuesday, 31 July 2007

Posted by Sébastien Lachance with Comments (0)

Since I'm pretty new to Windows Forms I learned a lot this weel (I have a lot more experience in ASP.NET development). I came across this feature and found it really interesting, Owner and Owned Forms. We can say that for the user it's the same thing as the ShowDialog() method (grayed parent form, etc...). However, with ShowDialog there is no built-in way to make a link between the parent and the child form.

There is 2 way we can make this relation and making the child window aware of the parent:

1. As a parameter in the Show() method

Form1 childForm = new Form1();
childForm.Show(this); //this is the parent form


2. Using the properties

Form1 childForm = new Form1();
childForm.Owner = this; //this is the parent form


And you can iterate through the child form of the parent form with the OwnedForms property.



ScummVM

Tuesday, 31 July 2007

Posted by Sébastien Lachance with Comments (0)

Do you remember Sam & Max, Full Throttle and Day of the Tentacle (Dott!)? ScummVM allow you to replay these "point and click" adventure games. You need to have the data file for them and you are ready to go. There are also different port: Nintendo DS, Dreamcast, PlayStation 2, etc... I think I'm gonna give it a try on the DS as soon as I have all the component. I would really like to play Monkey Island in the bus.

ScummVM is the winner of the Best Project for Gamers award on the SourceForge 2007 Community Choice Awards.