I have a question on how to group 2 radiobuttons into the same group for Windows application. I googled, usually there are 2 solutions: using groupbox or using panel.
I also find someone saying just setting the GroupName attributes of the 2 radiobuttons to be the same name, then .net will regard them of the same group. However, this radiobutton attribute comes starting from .net 3.0. And I find the radiobutton component in the toolbox is of .Net 2.0.
So I guess the solution is to add radiobutton of .Net 3.0 to Toolbox and use this radiobutton while building the layout of the WinForm, then the attribute will appear.
But I cannot find relevant item in the "Choose Toolbox Items" Dialog box and don't know the name and the path of the System.Windows.Forms dll.
Anyone has idea? Also, is there any other way to group 2 radiobuttons into the same group (especially without using GroupBox or panel)?
PS: My Windows application project's Target Framework is set to .Net 3.5 originally, and I cannot find the GroupName attribute of a RadioButton on a WinForm. When I hover on the RadioButton component in Toolbox, it shows it's of .Net 2.0.
Thanks for help in advance.