Hi All,
I need to create a user control having a label and button.
The label text size can be different, When the text length is
greater the user control must autosize the label as well as the
button(button size is fixed). My issue is when the label text is
greater the button control becomes invisible from that user control.
Please help me to solve this.

Thanks

Recommended Answers

All 2 Replies

I don't understand your question, where's your problem?

ah. you mean the label is set to autosize and if the text is too long it pushes the button off the control, and removes it from the visible control. simply set the label autosize to false, then set its size to fill the space available. it might be a good idea to set the autoelipses to true as well.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.