panel

SVG in JAVA not displaying correctly

Ok, I have a java program, that displays some tiles that are SVGs in a FlowLayout. Does this by being a class ScrabbleRack, and extending JPanel, then adding JSVGCanvas tiles to this panel. Afterwards I created a frame and added the panel, this.(packed it and displayed it). On appearing, the panel does not display properly. It just dis...

Resize an asp.net panel width based on a checkboxlist?

Hi everyone, I have an asp.net panel that contains a checkboxlist. I'd like to resize it so that its width fits the list's contents snugly. Right now I'm handling the panel's pre rendering event, setting its width to match that of the checkboxlist. However it appears the checkboxlist's width property reads zero (at least in this pre ...

How to make Multi-Pane GUI in WPF or C#?

I have seen this user interface in some screen shots of some RSS Readers. It is a multi-pane user interface. THere are three panels or "panes" to the window, in other words, the window is divided into three parts and the user is able to mouse over the division and click on the seperation bar and resize the section. How is this sort of...

Modal Popup Extender panel height width

I have a ajax asp.net modalpopupextender, I wont when I desplay popup, the popup cover all the browser window. The popup display a panel ane is inside the form not other container. My .aspx code is: < asp:Panel ID="OptionPanel" runat="server" CssClass="mp" Style="display: block; width:100%; height:100%"> But don't work!!! A...

Hiding all panels on a web content form within a master page

I'm trying to hide all panels on a page, when a button click occurs. This is on a web content form, within a master page. The contentplageholder is named: MainContent So I have: foreach (Control c in Page.Form.FindControl("MainContent").Controls) { if (c is Panel) { c.Visible = false; } } This never find any panels....

Draggable Elements for Token Field like Mac clock format panel

I need to be able to make a token field with draggable elements like the Mac clock format panel (see the following image). Thanks so much, Alex. ...

WinForms GDI+ Polygon Events and custom shaped panels

I have converted postcode boundary polygons to point data (point[] for each polygon) from GIS Shape Files. I am wanting to show this in a c# windows forms application. I have managed to show this using the System.Drawing (GDI+) DrawPolygon() method. Graphics g = this.CreateGraphics(); Pen pen = new Pen(Color.Black); Brush brush = new ...

ExtJS panel scrolling

Hello! ExtJS. I want to control scrolling process of the image in the panel(receive scroll events to switch to the next picture in sequence). Tell me, please, what is the best way to do this? I'm newbie: the more detailed, the better. ...

Making Panel Control Visible Causes HTML Parsing Error

Exactly as the title suggests. When I click a button on my webpage it should display a asp .net panel control that was previously hidden. The error I get is Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917) The KB Article points to a few things but most notibly "Th...

C# & AJAX - Add controls dynamically but can't find them on postback

This really should be much easier, so I must be missing something obvious. I have a C# ASP.NET page that is AJAX enabled. I also have an ASP.NET panel that is initially empty but I create a couple of drop-down lists and add them in the code behind. This part works just fine. However, when the page does a postback, the controls"disappear"...

How do I create a WPF Dropdown panel

I'd like to create a dropdown panel in WPF the acts like a ComboBox/Expander hybrid. I'm currently using an Expander but it pushes the the controls underneath it down when it expands. I simply want it to act like a ComboBox and overlay it's dropdown. I've looked at using Popups but they don't move with the underlying window when it's mo...

creating link button dynamically and setting Click event to EventHandler...not working

I'm creating a paging class and trying to allow for some dynamic configuration for the method to call when Next/Previous links are clicked. The class looks like this: public class Pager { public int StartIndex { get; set; } public int Range { get; set; } public int NumRows { get; set; } public event EventHandler Paging;...

Panel does not expand vertically in a TabPanel.

Hi All, Using Extjs, I've got a TabPanel containing two Panels. Those panels do not automatically expand vertically. All layout are set with type 'fit' and forceFit is true. I've pastebin my code here: http://pastebin.com/s8ucY4TX Edit: I've updated my code according the Kunal's suggestion: http://pastebin.com/pu5PYuDN To describe t...

Recommendation for Windows.Forms Control that Supports Mouse Panning and Zooming

I found Customize a panel with Autoscroll property at http://www.codeproject.com/KB/miscctrl/CustomAutoScrollPanel.aspx that is wrapper around a Panel with AutoScroll = True. I like this control because it provides the "performScrollHorizontal" and "performScrollVertical" methods. Yet, it uses the Windows API functions instead of Scroll...

WPF, ShowGridLines equivalent for wrap panel

I need to display a 1 pixel wide border around all wrap panel cells, kinda like excel grid. Unfortunately the wrap panel does not implement the grid ShowGridLines property. I can't put a border inside every cell because adjacent cells will have a 2 pixel border instead of 1 pixel. Since the wrap panel arranges it's layout dynamically and...

How can I force a ListView with a custom panel to re-measure when the ListView width goes below the width of the previous measurement?

Sorry for the long winded question (I'm including background here). If you just want the question, go to the end. I have a ListView with a custom Panel implementation that I'm using to implement something similar to a WrapPanel, but not quite. I'm overriding the MeasureOverride and ArrangeOverride methods in the custom panel. If I do...

Dynamically changing Mouse speed

Guys, I have a C# Winforms application with a panel inside the form. What I want to do is, whenever the mouse pointer enters this panel, I want to slow the movement speed of the mouse by 50%. Once the pointer moves outside this panel, I want to speed of the mouse to resume normal 100% speed. How can I accomplish this in C#? ...

Adding a Design time Panel to a TabPage at run time

Hi, I wish to have a Panel with the controls on it at design time but I want to add this panel to a desired tabPage of my TabControl at run time. I wrote something like this, did not work : the panel does not show up in the tab page. please help me. panel2.Parent = tabGuy.TabPages[0]; tabGuy.SuspendLayout(); tabGuy.TabPages[0].Control...

Removing a querystring from url in asp.net

HI, I need to remove a querystring when a user clicks a particular LinkButton. So for example if the querystring is http://UserProfileManager.com?UserID=1234 .... when the user clicks on the Linkbutton, I want the url to be http://UserProfileManager.com. The issue is that everything is on one page, and I am using asp:panel to show and hi...

Wicket : Can a Panel or Component react on a form submit without any boilerplate code?

I am currently evaluating Wicket and I am trying to figure out how things work. I have a question regarding form submit and panels (or other components). Imagine a custom wicket panel which contains a text field, doing as-you-type validation using ajax. This panel is added to a form. How can the Panel react a form submit (let's say bec...