Articles in this section
Category / Section

How to access the parent control of a PopUpControlContainer?

1 min read

 

You can access the Parent control of PopUpControlContainer through the Parent property.Here this shows an example of size of Parent control being resized once the PopUpControl is popped up.

Private Sub buttonAdv1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)

 If e.Button = MouseButtons.Left Then    Me.popupControlContainer1.Show    Me.popupControlContainer1.Parent.Size = New Size(560, 408)  End If

End Sub

private void buttonAdv1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)   {       if(e.Button==MouseButtons.Left)    {            this.popupControlContainer1.Show();     this.popupControlContainer1.Parent.Size=new Size(560,408);         }

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied