I want to set the contents of a control on a form from within another form. The problem is the target control is on a form that is a child form on an MDI parent form and I don't know the format for doing that. I do know the format for hitting a control on the parent form:
This works as far as putting "abcde" in CommentTextBox if it is on MDIMainParentForm. What I want to do is put "abcde" in a text box called CommentTextBox on a form called StockItemsForm which I place on MDIMainParentForm as a child form. I'm sure this is simple. I just don't know the format and can't find it in searching.Code:My.Forms.MDIMainParentForm.CommentTextBox.Text = "abcde"




Reply With Quote