Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

Why can't I set my object for scripting?

In VS 2005, the form is no longer COM-Visible by default. This prevents it from being set as the object for scripting. To allow scripting to target the form, do the following:

  1. In VS select "Project" from the main menu
  2. Select "<YourAppName> Properties..."
  3. Select the "Application" tab
  4. Click the "Assembly Information..." button
  5. Check the "Make assembly COM-Visible" checkbox