الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

help in radio box

مغلق
بدأه mufic_semsem في 22 يونيو 2007 · 3 رد · 613 مشاهدة · في Microsoft Visual C#.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

i have in the same form 6 radiobox

i need to make every 3 raidobox in a group

how to do that

when i put them all i found that the whole 6 only one i can check

i need to check one from the frist group and one from the second group

i wish you get what i mean . . .

لا اله الا الله .......................................... محمد رسول الله

#2

سأجاوب على حسب فهمى لأسئلتك ..

أولاً بعد اضافه جميع الراديو بوتون .. سيكون احدى أوامرها ..

Controls.Add(radio1);
Controls.Add(radio2);
Controls.Add(radio3);
Controls.Add(radio4);
Controls.Add(radio5);
Controls.Add(radio6);

هذا الأمر موجود في جميع الراديو بوتون ..

الآن قم بإنشاء 2 جروب بوكس

GropBox a = new GropBox();
GropBox b = new GropBox();

ثم قم بإضافة عنصري الجروب بوكس إلى الراديو بوتون

ليكون هكذا

a.Controls.Add(radio1);
a.Controls.Add(radio2);
a.Controls.Add(radio3);

b.Controls.Add(radio4);
b.Controls.Add(radio5);
b.Controls.Add(radio6);

هذه الأوامر تعني أنك أضفت ثلاثه راديو بوتون في بوكس a

وثلاثه في b

اتمنى يكون شرحي مفهوم

تم تعديل هذه المشاركة بواسطة Pro_S00 في 22 يونيو 2007 في 08:27

#3

i do what u say but when i run i dont find the radio box on the form

it deleted from the form

لا اله الا الله .......................................... محمد رسول الله

#4

Do not add the radio buttons to the form, add them only to the group boxes. And since you are using Visual Studio, you may use Drag & Drop to do this task instead of writing code

1- Drag two GroupBoxes from the ToolBox and drop them on the form

2- Drag three RadioButtons from the ToolBox and drop them on GroupBox1.

3- Repeat step 2 for GroupBox2

4- Hit F5 and give thanks to Allah :D

#Read

http://MoutazShams.blogspot.com

projects003.gif

أعتذر عن التغيب هذه الأيام نظرا للانشغال المريب

هذا الموضوع مغلق.

مواضيع مشابهة