View Single Post
  #6 (permalink)  
Old 08-07-2007, 11:24 PM
Forrest
Posts: n/a
And for the record, creating a new instance of a form class is only half the battle. You can create and cache instances for later use ... but if you don't call Form.Show() or Form.ShowDialog() ... which Application.Run() does ... nothing happens.

In theory just instantiating a new form would allocate some memory and call its constructor, but I think the compiler will recognize that you're never using the object, and optimize it out of the final code.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote