controls

How do you change the color of the border on a group box?

In C#.NET I am trying to programmatically change the color of the border in a group box. ...

what is the best control suite for winforms applications?

i know devexpress have some more intuitive controls over infragistics, but what about component factory or telerik? What winforms controls would you recommend? ...

What 3rd Party Controls are .Net Developers using

I am re-evaluating my 3rd party controls. I currently use the Infragistic suite for ASP.Net and WinForms. What controls do you use and would you recommend them? ...

How to define listview templates in code

I am writing a Composite control, which contains a listview to display a table of items. Normally when using a ListView in Asp.NET I would define the templates in the code-forward. <asp:ListView runat="server" ID="ArticleList"> <LayoutTemplate> <div class="ContentContainer"> <div runat="server" id="itemPlaceholde...

Subclass a MonthCal control in Win32

Objective: use the standard Win32 MonthCal control, and paint days such as holidays in RED. It seems like the Win32's native approach would be use the MCN_GETDAYSTATE notification, which seems to allow only painting specific days in Bold. Possible (but declined) solution would be to write my own painted-at-will MonthCalendar, driving m...

Applying Styles To ListItems in CheckBoxList

How can styles be applied to CheckBoxList ListItems. Unlike other controls, such as the Repeater where you can specify , you can't seem to specify a style for each individual control. Is there some sort of work around? ...

Most efficient way to see if an item is or is not in a listbox control

This request is based in MS Access VBA. I would like to know what the most efficient way is, to see if an item exists in a listbox control. ...

I need populate a repeater with pseudo-related data

Before I do this I figured I would ask if it was the best way. Each "Vendor" object has a "Bucket" object. In my repeater I need to display some properties from Vendor and some from Bucket, also some images populated by FileSystem that are linked to the vendor. I figured the best way to do this is bind the repeater with the vendor object...

How do you "preview" user actions like resize or editing in GoDiagrams?

The GoDiagram object model has a GoDocument. GoViews have a reference to a GoDocument. If the user does any modification on the diagramming surface, a GoDocument.Changed event is raised with the relevant information in the event arguments. I would like to be notified when some user-actions happen, so that I can confer with my Control...

When would you use a Web User Control over a Web Custom Control?

Can someone explain when to use each of these? They almost seem interchangeable in many cases. The Custom Control gets added to the toolbar while the User Control (ascx) can not. The Custom Control does not get rendered in the Designer while the User Control does. Beyond that, how do you choose which is the right one to use? Als...

Where can I find free WPF controls and control templates?

I am looking for some recommendations on good places to find libraries of controls/templates/styles for WPF. I know about the usual places like Infragistics, but it seems to me that there should be some kind of community effort by now to share nice, clean, well written controls for WPF controls. I am not big on the design side, and it w...

What is the best practice for creating an ASP.NET MVC control or helper?

I'm looking to build an reusable control or custom helper for my MVC project. I'm sure there is a best practice for this. Any help is appreciated. ...

.Net Menustrip background colour range

I need to put a control to the right of my MenuStrip. The MenuStrip fades in colour away from the BackColor on the left hand side to something whiter on the right, and ideally I would like to make my small control blend in by having the same backColor as the menustrip has on that side. Does anyone know how that colour is computed? Worst...

What is the best *free* datagrid for WPF?

I've tried Xceed, WPFToolkit, Infragistics... with WPF you could also roll your own. Please include descriptions of why you favor one over the other. ...

Child Control Initialization in Custom Composite in ASP.NET

Part of the series of controls I am working on obviously involves me lumping some of them together in to composites. I am rapidly starting to learn that this takes consideration (this is all new to me!) :) I basically have a StyledWindow control, which is essentially a glorified Panel with ability to do other bits (like add borders etc)...

Dynamically adding controls in ASP.NET Repeater

I find my self having a repeater control which is being databound to an xml document. My client is now requesting that the Textbox's which are being repeater can be either a Textbox or a Checkbox. I cannot seem to find an easyway to essentially do the following: if ((System.Xml.XmlNode)e.Item.DataItem.Attributes["type"] == "text") <asp...

Control for tags with auto-completion in Winforms?

I am seeking a WinForm control that would provide an autocomplete behavior for multiple space-separated - exactly ala del.icio.us (or stackoverflow.com for that matter). Does anyone knows how to do that within a .NET 2.0 WinForm application? ...

Eval scripts in server side control property

how do i implement an eval script in a sever side control? eg. <a runat="server" href="?id=<%= Eval("Id") %>">hello world</a> ...

.NET - How to hide invalid choices in a DateTimePicker

I've set the MaxDate and MinDate properties of a DateTimePicker. However, when I test the control at runtime, there is no way to tell the invalid dates from the valid ones. The only difference is that clicking on an invalid date does nothing. This is not very intuitive for the user. I want to be able to tell at a glance what the valid d...

Is there any good Markdown Javascript library or control?

I want to build a site where the user can enter text and format it in Markdown. The reason I'd like a Javascript solution is because I want to display a live preview, just like on StackOverflow. My site is not targeted at developers, however, so an editor control would be ideal. I gather that on StackOverflow, the WMD editor is being u...