Diesel Posted September 22, 2005 Posted September 22, 2005 Sorry if I offended anyone in the past few days. I am an ******* and if I don't instant gratification at times I get really illogical. Aimed Specifically @ DiverDan. Quote
bri189a Posted September 22, 2005 Posted September 22, 2005 Sorry if I offended anyone in the past few days. I am an ******* and if I don't instant gratification at times I get really illogical. Aimed Specifically @ DiverDan. Yeah, that was a interesting set of posts, and I don't mean to intrude on your appology - it's good that you can recoginze that about yourself; I have the same issue at times. Here's a working example that doesn't resize in case you still need it. I just over-rode the OnResize property and cut and paste that code Dan had mentioned on the control.Visual Studio Projects.zip Quote
*Experts* DiverDan Posted September 22, 2005 *Experts* Posted September 22, 2005 Your appology is accepted Diesel. I was the same when I was young also, but, with age, have learned that when you lose your temper ...you lose. Other than that, aging sucks! I haven't seen bri189a's code but just enter your control's width and height dimensions in the Overrides OnResize sub. I've also tried SetStyle to FixedWidth and FixedHeight in the New sub, but for some reason, it didn't seem to work. Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
bri189a Posted September 22, 2005 Posted September 22, 2005 That's exactly what I did Dan - had a constant that defined the width and height. Quote
*Experts* DiverDan Posted September 22, 2005 *Experts* Posted September 22, 2005 Hi bri189a, Great!...I'm still wondering why SetStyle to FixedWidth, True and FixedHeight, True didn't seem to work. Any ideas? Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
bri189a Posted September 22, 2005 Posted September 22, 2005 I think the problem lies in the fact that common sense say FixedHeight and FixedWidth means that the control won't resize...that was my thoughts at least. But from the below text from help documentation is more of 'Don't resize the control because of font changes or any other system auto resizing'. Just an example of bad naming convention. FixedHeight: If true, the control has a fixed width when auto-scaled. For example, if a layout operation attempts to rescale the control to accommodate a new Font, the control's Width remains unchanged. FixedWidth: If true, the control has a fixed height when auto-scaled. For example, if a layout operation attempts to rescale the control to accommodate a new Font, the control's Height remains unchanged. Quote
*Experts* DiverDan Posted September 23, 2005 *Experts* Posted September 23, 2005 Thanks bri189A, So it works similar to the AutoScale properity. Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.