"following i have tried:
private void Panel_Extras_MouseHover(object sender, EventArgs e)
{
Panel_Extras.Height = 750;
Panel_Extras.Width = 40;
Panel_Extras.Location = new Point(1410,0);
}
but thats bad in my mind, cause the window could change his width, this i ment by: new Point and the value 1410. I would ruther prefere to tell them, get window width, and pop +2% out."
Indeed it is: try
Panel_Extras.Height = Height;
Panel_Extras.Width = 40;
PanelExtras.Location = new Point((int) ((float) Width * 1.02), 0);
Width
and
Height
will pick up the Form width and height (or whatever the current class is based on)