i have included groupbox in gui i need to add list of items for example apple,mango,pineapple etc...
can any1 help me on this..
Groupbox
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Posted Jul 5, 2012, 12:25 AM EDT
http://www.functionx.com/vcsharp/controls/groupbox.htm
http://msdn.microsoft.com/en-us/library/system.windows.forms.groupbox.aspx
Satyapriya NayakRank #47 · 31.5K reputationPosted Jul 5, 2012, 12:37 AM EDT
Please refer the below links
http://www.c-sharpcorner.com/uploadfile/mahesh/groupbox-in-C-Sharp/
http://en.csharp-online.net/GroupBox
http://www.java2s.com/Code/CSharp/GUI-Windows-Form/GroupBox.htm
Thanks
VulpesRank #55 · 29.2K reputationPosted Jul 5, 2012, 1:18 AM EDT
If so, you first need to place a ListBox (listBox1 say) within the GroupBox in the VS designer and then add this code in (say) the Form_Load eventhandler:
string[] fruits = {"apple", "mango", "pineapple"};
listBox1.DataSource = fruits;
listBox1.SelectedIndex = 0;