• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 869
  • Last Modified:

Need to make radio buttons larger

I have functioning radio buttons that I need to make larger. How do I do that?

I change the size but it reverts to the prior value...


Thanks,
newbieweb
0
newbieweb
Asked:
newbieweb
  • 5
  • 2
1 Solution
 
AshokCommented:
Is this WinForms application?

If so, try

chkBox1.AutoSize = false;  // you can do this in code or at runtime depending on where you are chaning size.
0
 
AshokCommented:
Is this WinForms application?

If so, try

chkBox1.AutoSize = false;  // you can do this in code or at runtime depending on where you are changing size.
0
 
newbiewebSr. Software EngineerAuthor Commented:
OK. It's like a label. But even when I can manually change the size, it's like I am resizing a label. The round button itself does not grow...
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
Roshan DavisCommented:
can you try to change the font size of that radio button. the size of the radio depends on the font. If you want to keep the same size font, one idea is
- Add only one space for radio button and change the font of that to a bigger size
- place another Label to show your normal font size text
0
 
AshokCommented:
You will not be able to simply use RadioButton from ToolBox and change its size.

The only way you might be able to do this it to inherit RadioButton and create your own control.  In your own control, you can probably change anything you like.

HTH
Ashok
0
 
AshokCommented:
OR

You might be able to override Paint method of RadioButton.

Look at

http://msdn.microsoft.com/en-us/library/cksxshce%28VS.71%29.aspx

Ashok
0
 
AshokCommented:
0
 
newbiewebSr. Software EngineerAuthor Commented:
Yes, changing the font did not change the button size. I'll have to over-ride paint as you'd said. Thanks, newbieweb
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now