how can i adjust the width and height of that static control to fit the text inside?

its just one line adjust in the width