controls

Hiding the header on an Infragistics Winform UltraCombo

I've gone through just about every property I can think of, but haven't found a simple way to hide the header on a winform UltraCombo control from Infragistics. Headers make sense when I have multiple visible columns and whatnot, but sometimes it would be nice to hide it. To give a simple example, let's say I have a combobox that displ...

User Control Public Shared Variables in ASP.NET 1.1 Not Working As Expected

Let's say I have a web form that includes some user controls. The title tag for my "main" web form is generated in one of the user controls. Passing this data to the web form is currently done like this. Public Sub SetPageValues(ByVal sTitle As String, ByVal sKeywords As String, ByVal sDesc As String) MySystem.Web.UI.Main.PageSett...

Implementing rulers in C# form

Does anyone have a good technique (or tutorial) to implement rulers within a C# Windows form? I want to display an image while showing rulers that indicate your mouse position to allow a more accurate positioning of the cursor. Just like the image below: I tried using splitter controls to hold the tick marks but I don't know how to ma...

Open source .net windows form based controls like: gantt chart, calendar and scheduler

Is there any open source or free .net ui toolkit containing at least one of the following controls: gantt chart (ms project like) calendar (google calendar like or ms outlook 2003, 2007 like) scheduler (outlook 2007 like) Thanks ...

Customized DataGridView column does not accept the entered decimal seperator under Windows Vista

Hello everybody! For a project I built a custom DataGridView column which contains NumericUpDown controls. It is implemented similar to the suggestion from Microsoft The column works fine under Windows XP. It accepts the entered digits and decimal separator. Under Windows Vista I have the odd problem that the control only accepts the d...

How to freeze GridView header?

As in a title, does anyone know how to freeze GridView header in ASP.NET ? ...

Setting Focus on a Control within a ControlTemplate in WPF

In an application I'm working on, we have a bunch of custom controls with their ControlTemplates defined in Generic.xaml. For instance, our custom textbox would look similar to this: <Style TargetType="{x:Type controls:FieldTextBox}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Ty...

How do I make a ListView row draggable in .NET?

I am not the most experienced GUI programmer, so bear with me here. I have a custom list view. I would like to be able to drag a row from the ListView to another control on a form. I know how to catch events that are fired when an object is dragged to a control, but I am not sure how to make a row itself draggable. I could always hac...

Usability: Should the ENTER key close a wizard form as OK even if the focus is not set on the OK/DONE button?

Hello everybody! I have the in my opinion odd request to close a wizard form as Done or OK if Enter was pressed on the keyboard even if the OK/DONE button is not focused. In my opinion that would be a usability mistake. For example: In the wizard you may have multiple controls, buttons, check boxes, multiple line controls and they all ...

What is best method to find a ASP.Net control using jQuery?

In implementing my first significant script using jquery I needed to find a specific web-control on the page. Since I work with DotNetNuke, there is no guaranteeing the controls ClientID since the container control may change from site to site. I ended up using an attribute selector that looks for an ID that ends with the control's ser...

Changing the DefaultValue of a property on an inherited .net control

In .net, I have an inherited control: public CustomComboBox : ComboBox I simply want to change the default value of DropDownStyle property, to another value (ComboBoxStyle.DropDownList) besides the default one specified in the base class (ComboBoxStyle.DropDown). One might think that you can just add the constructor: public CustomCo...

How do you handle multiple selection in a drop down style control?

I have a WinForms application with a view where the user selects a single time span from a list of predefined time spans in a ComboBox, with it's DropDownStyle property set to DropDownList. Now, the requirements have changed. The users are going to need the ability to make multiple selections from the list of time spans. Is it possible...

.NET Usercontrols telerik devexpress infragistics ComponentOne: who's best?

I am considering the purchase of some .NET user controls with interest in both WinForms and asp.net. I have trialed in the past devexpress when I needed a hierarchical data grid for a personal project which I was impressed with. Rather than just jump for them I am interested in peoples experience of different products such as: TelerikDev...

How can I get an OpenFileDialog in a custom control's property grid?

Hi community, I'm creating a .net custom control and it should be able to load multiple text files. I have a public property named ListFiles with those properties set : [Browsable(true), Category("Configuration"), Description("List of Files to Load")] public string ListFiles { get { return m_oList; } set { m_oList = value;...

How do you make a WPF slider snap only to discrete integer positions?

The title says it all. All too often I want a WPF slider that behaves like the System.Windows.Forms.TrackBar of old. That is, I want a slider that goes from X to Y but only allows the user to move it in discrete integer positions. How does one do this in WPF since the Value property on the Slider is double? ...

Twin Slider control .net

Has anyone seen a good twin slider control for .Net (Win forms or WPF). I'm looking for something that will allow me to select a range from within a set so the first slider would be the start of the range and the second would be the end. I remember seeing a Swing double slider but it was 6 years ago and I can't for the life of me remem...

Reading the dynamically changed value of an HtmlInputHidden in ASP.NET

I got a simple page with a HtmlInputHidden field. I use a javascript to update that value and when posting back the page i want to read the value of that HtmlInputHidden field. The Value property of that HtmlInputHidden field is on postback the default value (the value it had when the page got created, not the value reflected through th...

Getting selected members from multiselect list view ctrl

Hi all, I have a list view control which at the moment only allows one item to be selected. I then read this via the following code: void CApp::OnNMClickList1(NMHDR *pNMHDR, LRESULT *pResult) { int nSelected = (m_List.GetSelectionMark()); ... However, now I want to make this list able to multiselect, GetSelectionMark() always ret...

recommended c# winform controls packs

Am looking for commercial/free recommended c# winform controls packs ...

High speed graphing control for .NET (or MFC)?

I need to write a digital oscilloscope type application. There are many great static graphing controls out there, but I need something that can graph 16 traces processing 4000 samples per second. Is anyone aware of a high speed graphing control for .NET? I'll even take MFC since that can be wrapped into a .NET control. Thanks for the...