I want to open a new dialog box. I have a couple of text boxes in it that I want to initialize. However, I can't seem to access them from the class from where I am opening the dialog. For instance, I want to init the EditLatitude text box, but I get this compiler error:
System.Windows.Forms.Form does not contain a definition for EditLatitude.
Expand|Select|Wrap|Line Numbers
- private void EditLocationButton_Click(object sender, EventArgs e)
- {
- Form newLocationForm = new NewLocation();
- newLocationForm.EditLatitude = m_nString;
- newLocationForm.ShowDialog();
- }