Visualstudio Designer does not generate some variables

Asked

Viewed 28 times

0

In the Visualstudio 2010 I am having this problem, where some components have no variables and they are initialized in the method InitializeComponent.

But in this way the components are not accessible to be programmatically altered, the Designer does this in some Forms, but not at all.

  • Because this occurs?
  • What is the right way to resolve this situation?

Note

Of course I can handle it manually, but in case I need to change something on Form the code would be generated again like this and would have to redo everything.

  • I advise you to read the community guidelines of how to ask a good question.

  • I checked and left the more general question in order to help more people, I believe that now it follows the guidelines.

  • 1

    this same, I edited your question for some improvements, finally it is much better than before your way of asking.

1 answer

1


Has a component property Generate Member that controls whether the component will have a variable. Normally it should be true but sometimes it comes set as false for some reason.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.