I made this code:
private int a;
private int b;
private void Form1_Resize(object sender, EventArgs e)
{
adrBarTextBox.Width = b + this.Size.Width - a;
}
private void Form1_ResizeBegin(object sender, EventArgs e)
{
a = ((Form)sender).Size.Width;
b = adrBarTextBox.Size.Width;
}
when i open the program and i maximize the window the combobox become huge and you need to click at the arrow at right.
but if i open the program and i moving the window and after that maximize the window its work grate
you can see here at the video i made:
http://www.youtube.com/watch?v=g2FrwPhwDvc
thanks