473,378 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

how to generate group boxes and buttons dynamically?

hi
i need learn how to generate buttons and group boxes dynamically.my scenario is from the settings the user has to select the amount of group boxes he wants then in every group box he has to select the amount of buttons he wants. how can i make this happen?

thanx
stephen
Aug 15 '10 #1
3 3107
Joseph Martell
198 Expert 128KB
What are you stuck on? Do you not know what code it takes to create the group boxes and buttons, do you not know how to get the information from the user, or something else?
Aug 16 '10 #2
exactly I'm stuck on both of them and I've been banging my head on this for a wile but i cant figure how it has to be done
Aug 16 '10 #3
truezplaya
115 100+
Create a drop down with some numbers in or even use the numeric up down control

Once they have selected a number either fire a selected index changed event or an on click event.

Something along these lines

Expand|Select|Wrap|Line Numbers
  1. //Convert the text from the drop down to an int
  2. //do a for loop
  3. Button objButton = new Button();
  4. objButton.Name = //for loop integer here
  5. // Set other button properties here
  6. // Add the button to the appropriate group box
  7. groupBoxName.Controls.Add(objButton);
This isn't a full working piece of code but it's not far off, Just have a tinker with it, Start off by doing it to one group box with a set amount of buttons. Then build from there.
Aug 16 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Bruce Wolfe | last post by:
We are developing an application using C#.net and we need to provide support for screen readers. Jaws works pretty good except that it can't read group box labels on dialog forms. The same version...
4
by: Stacey Levine | last post by:
All of the sudden all of my group boxes have disappeared from my forms at run time.. This is vb .net winforms. Any ideas? Thanks. Stacey
1
by: Helen Trim | last post by:
Is there a group box property that tells you which radio button was clicked? -- Helen
2
by: muthu | last post by:
Hi freinds, In my aspx page i have generated some check boxes dynamically using dhtml. When i check any check box and submit the form,how can i capture the value of check box. How should i...
0
by: Badis | last post by:
Hi, I have posted this question in ASPNET forum and now I'm posting here because I need the answer urgently Pleaaaaase. How to generate a Crystal report dynamically the way that I can define the...
3
by: Sin Jeong-hun | last post by:
Suppose there are 4 radion buttons on the form. There's no groupbox or panel to seperate them. By default, the 4 radio buttons are mutually exclusive. Is it possible to group them into two groups?...
5
by: zacks | last post by:
I am having a strange issue with an application written in .NET 2.0. Actually it is in VB.NET but I think my problem is not language specific, but a .NET Framework issue. On a form I have a...
1
by: Paddy | last post by:
The problem I am facing is as follows: I am populating an HTML table on my webpage with rows of data from a database. The rows may be sometimes 10 and sometimes say,3. I have two buttons on that...
7
by: moksha | last post by:
Hi, I am new to javascript and i am facing a problem in coding. plz help me out. I am using javascript for dynamically creating a table row which contains text boxes and radio...
3
by: MitchellEr | last post by:
Hi, I am in the process of creating several forms where a group of elements on the form need to be created dynamically. For example, in the case of one of the forms, I have a drop down for...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.