If I create a partial class of Form1 is there a way to access the controls that are on the form designer thru intellisense?
namespace PracticeUI1
{
public partial class Form1 : Form
{
Button1.Text = "blah";
}
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It will depend where you will initialize your button, lets say you are declaring in the same class and you do it as
inside Class Form, than you will be able to reach only from this part of class Form or from another partial class form in another file, but you woudnt be able to access it from the same namespace. I think you got the logic.
By the way for the answer with
it’s actually doesn’t matter if you will include
this.or you will not