Questions tagged [panel]

A panel is a simple container that allows other elements to be placed into it, especially visual user interface elements.

A panel is a simple container that allows other elements to be placed into it, especially visual user interface elements. Panels can generally aid in developing more complex user interfaces.

4086 questions
26
votes
2 answers

Panel vs GroupBox in a Windows Forms application

Aren't both doing the same thing? How is each different from the other in case of a Windows Forms application.
Anirudh Goel
  • 4,571
  • 19
  • 79
  • 109
25
votes
2 answers

Panel for drawing graphics and scrolling

I want to be able to use a Panel or similar to draw graphics onto a Winform. I cannot seem to see anything regarding adding scrollbars if the graphics become larger than the control? Is it possible to do this with a Panel or is there a similar…
Darren Young
  • 10,972
  • 36
  • 91
  • 150
25
votes
8 answers

How to Programmatically Scroll a Panel

I have a System.Windows.Forms.Panel with some content. I am trying to programmatically scroll the panel (vertically) either up or down. I have tried setting the AutoScrollPosition property to a new Point on the panel but that doesn't seem to do…
Marwan مروان
  • 2,163
  • 8
  • 30
  • 40
24
votes
4 answers

How can you stop a Winforms Panel from scrolling?

If you put a DataGridView that is 400 pixels high on a panel that's 300 pixels high, so that there's a scroll bar on the panel, then scroll down so that the lower half of the grid is shown, then click on a control outside the panel, then click on a…
Paul S
24
votes
3 answers

How to align PanelGrid to center? JSF-Primefaces

I know that there are many questions about this issue, but nothing worked for me properly. I need to align my PanelGrid to center(horizontal). this is my panelgrid and my CSS: .panelGridCenter…
Johnny2012
  • 1,512
  • 8
  • 31
  • 46
23
votes
6 answers

java TrayIcon using image with transparent background

I am using the following code to set a tray icon in Windows and Linux. It works wonderful in Windows and works okay in Linux. In Linux (Ubuntu) I have my panel set to be (somewhat) transparent and when I add a GIF (with a transparent background) the…
Jack
  • 20,735
  • 11
  • 48
  • 48
23
votes
3 answers

Width of element with 'white-space: nowrap' doesn't adjust to child content

I am trying to create a horizontally scrolling pane with (tiling) background image, using overflow-x: scroll & white-space: nowrap. The pane spans an arbitrary number of elements. CSS: .frame { overflow-x: scroll; } .pane { background-image:…
coprolit
  • 333
  • 1
  • 2
  • 6
21
votes
2 answers

How to not render a Panel Control as a

I use Asp.net 4 and C#. I have a common web control . It is my understanding that if the Panel is visible it renders in the Browser as a
tag. I would like to know if is possible to change this behavior and display the content…
GibboK
  • 71,848
  • 143
  • 435
  • 658
21
votes
6 answers

Removing dynamic controls from panel

I have dynamically generated controls on the panels of windows form and i have also generated a button for removing the controls, all in rows. int c = 0; private void button1_Click(object sender, EventArgs e) { int v; v = c++; …
shariq_khan
  • 671
  • 4
  • 16
  • 33
20
votes
2 answers

How to align console panel to right in codesandbox?

I'd like to align the browser/test/console panel to the right side of the js panel. First tried to drag them, but it didn't work. Is there any way?
20
votes
1 answer

Twitter Bootstrap grid inside a panel

I am trying to use the grid system of Bootstrap to accomplish having an image to the left side while being able to have content (text & other bootstrap components) filling the space to the right. The only problem I have with this is that I cannot…
user2994267
  • 201
  • 1
  • 2
  • 3
18
votes
1 answer

Binding to data breaking on VirtualizingStackPanel

First of all, a disclaimer, I'm working with .net 3.5's virtualizingstackpanel. If you get different behavior in future versions let me know. It's relatively simple to set up a test case with listviews that you can test this against. I have an…
James Joshua Street
  • 3,259
  • 10
  • 42
  • 80
17
votes
2 answers

Zooming in and zooming out within a panel

I have a Panel in which some 2D objects are moving about. I have overridden paintComponent() as necessary. Now I want to be able to zoom in and zoom out that area. When zooming in, scrollbars will appear by which one can view the entire field by…
aps
  • 2,452
  • 10
  • 35
  • 47
16
votes
3 answers

C# Flow Layout Panel Line break or New line

I am adding some controls to Flow layout panel. In between some controls I need a line break. How can I achieve this please. Thanks
dps123
  • 1,033
  • 6
  • 19
  • 26
16
votes
4 answers

Add Control Value before another Control value in C#

I have a "FlowLayoutPanel" and want to add series of "UserControl" to it: mainPanel.Controls.Add(fx); Every new usercontrol added after old one, I want to add new usercontrol before the previous usercontrol that was added how could I do this?…
Am1rr3zA
  • 7,115
  • 18
  • 83
  • 125