Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Posted
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

  • *Experts*
Posted

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.

Member, in good standing, of the elite fraternity of mentally challenged programmers.

 

Dolphins Software

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...