It is a container that displays a frame around a group of controls with an optional header.
Questions tagged [groupbox]
415 questions
-1
votes
1 answer
WinForms and C#: How to disable buttons in a groupbox?
My goal is to disable all buttons (1 and 2) in groupbox1 (see the picture at the end). When I call the following Method DisableAllButtons(), only button 3 is disabled. What am i doing wrong?
private void DisableAllButtons()
{
try
…

christianbauer1
- 467
- 5
- 16
-1
votes
1 answer
Making the Visibility gone for a group Box placed at same position - C#
I have this windows form having three Group Boxes positioned at the same position.
On a selection of different option i want to make only one of them visible and rest invisible
By Default all are invisible .
here is the piece of code . I see only on…

Raulp
- 7,758
- 20
- 93
- 155
-1
votes
1 answer
Basic search in my form, but with a twist
I have a groupbox that contains a listbox that displays a bunch of .txt files.
Also in this groupbox is a textbox that I would like to use to search the list of files. I have added some code to my textbox textchange event, but all it does is clear…

Simeon EM
- 1
- 6
-1
votes
1 answer
C# WinForm - Drag and Drop PictureBox from One GroupBox to Another
I apologize in advance if this has been asked already. Searching stackoverflow and the internet didn't present any helpful examples.
In the running program, I have a picture box I need to be able to click and drag from one GroupBox to another. I…

Jess Stuart
- 23
- 8
-1
votes
1 answer
C# How do I reference a GroupBox using a string?
I want to reference a GroupBox name using a string.
My code currently works. I want to change this line of code:
Line1.buttonName.BackgroundImage = CircleColours[i];
Line1 is the GrouBox name.
I'd like to be able to change Line1 to a string. Like…

robrob
- 1
-1
votes
2 answers
Deleting a GroupBox with MouseClick event in c#
I am programmatically creating GroupBoxes which include delete buttons inside them. I want to delete the GroupBoxes when these buttons are clicked, via the btnSil_Click event.
Here is the code I have so far in form_load:
for…

Caner Ünver
- 61
- 9
-1
votes
1 answer
Making RadionButtons appear infront of a GroupBox
When I dynamically create a GroupBox and add 4 RadionButtons inside the GroupBox it somehow puts the RadionButtons behind the GroupBox.
I have the code for the GroupBox first therefore why do the RadionButtons not show over the GroupBox?
Code for…

rwan
- 1
- 6
-1
votes
1 answer
Add button to a GroupBox
i have a problem. I have a button who is creating an other button, but i want that the new button will be in a groupbox, but it's not working, the button is replacing all of the groupbox.
Private Sub button1_Click(sender As Object, e As EventArgs)…

Touyoo
- 1
- 1
- 2
-1
votes
1 answer
c sharp tooltip not working in groupbox
I have a pictureBox that has an image of a question mark. I have a tooltip tool added to my form. If I have the pictureBox on the main form area and set the Tooltip on the pictureBox to "test test" it shows up fine when i hover over it. If I then…

john johnson
- 699
- 1
- 12
- 34
-1
votes
1 answer
groupbox not becoming visible
I'm having a problem getting a second GroupBox visible, this is my code
Me.grpCallerDetails.Location = New Point(x:=0, y:=2000)
Me.grpCallerDetails.Visible = False
Me.grpCallDuration.Location = New Point(x:=0, y:=0)
…

JA12
- 61
- 1
- 4
- 12
-1
votes
1 answer
change groupbox header text via code wpf
I would like to change the label text of a group box outside the designer. I tried the content property but it it does not works. Any help ?

Zigma
- 529
- 6
- 37
-1
votes
1 answer
setGeometry on button in group with Qt?
So I am in the works of making my first GUI. So far I have made a groupbox and then made a layout and added buttons widgets to that layout(and then added that layout to the group).
All this works fine but when I then compile it, it fills the whole…

Sumsar1812
- 616
- 1
- 9
- 32
-1
votes
1 answer
Create same control of one already declared
I have found in an old topic this:
object newobject = Activator.CreateInstance(comboBox1.GetType);
but doesn't work:
The best overloaded method match for System.Activator.CreateInstance(System.Type, params object[]) has some invalid…

user3289840
- 241
- 1
- 2
- 10
-1
votes
1 answer
Programmatically access controls on GroupBoxes that are on multiple Tab Pages
How can you programmatically access controls on Tab Pages?
My code has many properties that I want to allow the user to initially set when the program starts. These properties will be used to define an Excel chart like title name, font colors, font…

Reckhound
- 35
- 5
-1
votes
2 answers
Using integer as if subject
Trying to have some main template to change visibility of groupboxes based on the number in main editbox.
EditDay is the edit box, where only numbers are in it
day:=DayOfTheYear(Now);
EditDay.Text:=day;
so it's basicaly the day of the…

That Marc
- 1,134
- 3
- 19
- 42