controls

Can XSLT render MVC ASP.NET Controls/Code?

Is there any way to render ASP.net MVC controls or code directly within a XSLT/XSL transform file under the .NET Framework? If so can you provide me with a sample or link? ...

Does ASP.NET MVC use the regular toolbox controls?

In ASP.NET MVC, do I use the "regular" controls from the toolbox and assign data to them like I did with webforms? Can I use the gridview, for example? Thank you. EDIT: The answer appears to be no. So what do you use? Are there any drag and drop controls in Visual Studio like the webform controls? ...

Overriding the location of Controls even when they are directly accessed by myControl.Controls(index)?

Hi, I want to make a UserControl which holds and moves other controls within itself. I worry that the Controls collection can be used to destroy all the internal logic of the UserControl. Remembering that the .Net Framework TableLayoutPanel locates its own Controls, I created a 30x30 TableLayoutPanelm each cell containing a square Label...

Step through controls fail to see second dropdown

I have an ASP.net table. In several cells I have two dropdown lists. The item selected in each dropdownlist is supposed to be populated from an SQLServer 2005 database. To do this in my code behind I step through the controls in each table cell. The code sees the first dropdown and populates it and then goes to the next cell. My ASP...

Alternative to drop down list?

There are 30-35 items in a list and it is expected to grow further. What could be the best way to put it on the page? Dropdown list is the first control that comes to mind, but it could easily become a pain as the list grows. What could be the best usability control to present such kind of long list? ...

Is there a non-iterating control that allows data-binding syntax to be used?

Let's say I have a single XML node of content in my code-behind. I need to get some data out of the various nodes and onto a Web form. Traditionally, I would create a bunch of Literals on the page, then do stuff like this in the code-behind: MyLiteral.Text = myXmlNode.SelectSingleNode("/some/xpath").InnerText; This is fine and good,...

Design-time drag and drop in Delphi?

Before Delphi 2006 (I think) introduced the TFlowPanel and TGridPanel, I did a control that was similar in concept. It still does a couple of things those controls do not do, and when upgrading my code to Delphi 2009, I decided to add a couple of enhancements to that as well. Right now, the order of the child controls is determined by t...

ZedGraph (.NET) - Having axis labels for actual values only

Using the ZedGraph control, say I am plotting data that has Y values of 13, 34, and 55. How do I set up my Y Axis so that the only text labels shown (and I guess that grid lines would be synchronised) are those for 13, 34 and 55? I don't want regularly spaced labels in the range of my data (say 0, 25, 50, 75, ..). Just labels at the ac...

Any Html control libraries - a visual counterpart to jQuery/Prototype

jQuery provides a browser neutral library for accessing and manipulating the DOM. This is good. However I'm looking for a counterpart for the visual side of things - I need to build pixel measured interfaces, without wasting so much time testing and correcting cross browser issues (buttons having crazy margins in IE, or using the wrong ...

Windows Forms Controls in a ScrollableControl and Events

I have noticed that the Click event, or other control behaviour, is not always fired when a control contained in a ScrollableControl (Panel, etc) is clicked on. If the control being clicked doesn't have the focus and is only partially visible it is scrolled into view. This is what I am expecting, however the Click event doesn't get fire...

What kind of controls are used in the Windows Security Center?

Control Panel -> Security Center I really like the components/controls which are used to show if a firewall or the Automatic Updates are enabled. Are these reusable controls in C# or Delphi? ...

Toggle all controls Read-Only on Button Click in WinForm

I want to be able to set a bunch of controls on a Form to Read-Only and back with a button click. Is there a way to loop through them? this.Controls maybe...... Thanks! ...

Control.PointToScreen gives different results - why?

I have some Label controls sitting on Panel controls on a Form. I want to get the labels' positions relative to the form's origin so that at run time I can hide the panel and the labels and draw some other text in their place directly onto the form. Basically, I'm doing the following calculation: Get the absolute screen position of a la...

Are there good WPF control libraries out there?

Do you know any good WPF control library (even commercial) and what experiences have you made with them? ...

Auto resolution text box control for .NET Windows Forms

I need to create a text box which will auto resolve what the user types based on a list of values, something similar to the "To" field in e-mail clients. For example, my list has these values: Car House Tree Typing "hou" would automatically resolve to "House", and trying to delete a single letter (with backspace or delete) of that wor...

Index out of range error; Here but not There!?!?

I have a winform app that fills a lot of its dropdomn fields fram a maintenance table at runtime. Each Form has a Private void FillMaintFields() I have run into a strange error where setting the column visibility on 1 form works but on another gives me an index out of range error! Here is the abriged method on the offending form --> ...

Control vs UserControl in WinForms?

What is the difference between a Control and a UserControl in .NET WinForms? I want to create a custom control, but which one should I inherit from? I've always used Control in the past without any issues, but is the "recommended" way of creating a custom control? ...

ASP.NET control events exception handling

Suppose I have a button in an aspx page that performs a save of the form data to the database. In the associated event handler, before sending the updates, I read something from a webservice, operation that might result in an exception. In case of an error I want to have an adequate message displayed on the page, and all the data in the ...

.NET Compact Framework Component Serializer

I am porting .NET Framework component to .NET Compact Framework. Component has ImageList in it. This component implements custom CodeDomSerializer. The constructor of the custom CodeDomSerializer contains following code for ImageList code serialization. TypeDescriptor.AddAttributes(typeof(ImageList), new DesignerSerializerAttribute(type...

How to make a control "transparent" for the mouse or Route MouseMove event to parent?

I want to create a card playing game. I the use mousemove event to drag cards through the window. The problem is if I move the mouse over another card, it is stuck because the card underneath the mouse cursor gets the mouse events, so that the MouseMove event of the window isn't fired. This is what I do: private void RommeeGUI_MouseMo...