Saturday, July 28, 2007

Some problems and solutions VS.NET 2005

Issue1:
Category: C#.NET 2005
Issue Title:
Toogle Button in C#.NET 2005
Issue Description:
Want to use a toogle button in C#.NET 2005
Solution:

Use CheckBox control and change its "Appearance" property to "Button". Also RadioButton control may be used and change its "Appearance" property, but if only one RadioButton added, will be clicked only once and need another radiobutton to toogle it. RadioButton will be useful in case you need to choose one button out of group of buttons but in classic Button appearance style not the Radio button common appearance.


Issue2:

Category: C#.NET 2005

Issue Title:
CheckBox cannot be resized from GUI designer and cannot be exceed some bounds of size even using code

Issue Description:
CheckBox control cannot be resize using mouse in design mode. Also when adjust its width and height using code, it is not affected.

Solution:

Simply set "AutoSize" property to false. Also check "MaximumWidth" and "MaximumHeight" properties, if all of these are 0, it will response to resizing.


to be cont'd

No comments: