custom-controls

Best Open Source Asp.net (ajaxable) Forum

I'm looking for a good Forum to include in my application. I find Community Server toouseful but it is notopen source, any Sugesstion will appriciate. this forum should have an API to extend. and support Unicode ...

Silverlight Dependancy Property Change Event Problem

I have a custom control that has a Dependancy Property...it has a few but let us say Dragable is my problem. The property is a boolean and I want to execute a piece of code each time it changes...a toggle. I have two options, both shown below [Category("Modal Options")] public bool Dragable { get { return (bool)GetValue...

how to make pre-set public property to private while creating a custom control

I am creating a custom MaskedTextBox for Date only. Now i want to hide Mask property of MaskedTextBox from its users. EDIT: public class CustomDateMask:System.Windows.Forms.MaskedTextBox { public new string Mask { get; private set; } public CustomDateMask() { ...

Extending a combobox whith extended tooltips

I have a customer combobox that allows the programmer to set tooltips for the dropdown items at run time. It works great as long as the listing is from the dropdown (i.e. I press the down arrow.) However, I would like it to work for the "SuggestAppend" list as well, but it isn't. I 'borrowed' the code from an online source (can't remem...

Manually Add a Resource File (Visual Studio)

I have a solution in VB.NET (VS 2005) In this solution I have a custom control, that inherits from a abstract class. Now, as VS is VS, it doesn't want to display the control in designer, because its parent is abstract. Now, I want to add a picturebox with an image (bmp or ico) to this control. Normally I've done this opening the desi...

How to add a reference to a method in a custom control to a child control created in that same custom control.

I have a custom control that is based off the gridview control located at: here The control is basically a gridview that automatically creates a column of checkboxes that can be used to "check" individual rows in the gridview. During the gridview's "CreateColumns" event, the "checkboxcolumn" is created dynamically. The checkboxcolumn a...

Capture Click Event in a Custom Control

I have a WPF Custom Control inherited from Button. How do I programatically get the custom control to capture the Click Event (so that I can record the action and do some internal work) (basically I want to catch the event and set a certain property to a certain value) and make this part of the classes standard functionality. From my ...

VS 2008, ASP.NET: Generate Local Resources

Hi! I've build an simple control called Menu: namespace MyControls { public class MenuItem { public MenuItem() { Visible = true; } [Localizable(true)] public string Text { get; set; } [Localizable(false)] public string Link { get; set; } [DefaultValue(...

jQuery Input Floating Hint Box 1.1 and user controls dynamic loading

Hello! I'm developing an ASP.NET application with C# and Ajax. I have a login page and a page with a treeview on left, and a place on the right to load my own custom user controls. These controls are basically forms with some input fields to fill. I use jQuery Input Floating Hint Box 1.1 to show a tooltip on the left of inputs fields....

Do custom controls in Silverlight 4 need to be in separate DLL's ?

Hi, I am creating a number of custom controls for a Silverlight 4 project. I have successfully created one control and am wondering if I can define more in the same project and then have all the controls bundled into one .DLL. Right now, I have the standard files for the first control: /Resources/icon.png /themes/generic.xaml /Custo...

Implementing a gauge control with UIKit on the iPhone

For an application I'm working on, I'd like to implement sort of a gauge-like control. The gauge should be of vertical orientation and I'd like to get the effect of a dial with the values printed on it to move vertically so that the current value appears at the center of the gauge. While the part of the dial that is not currently visible...

Controlling TabNavigation inside a Panel.

Hi, I'm making layout control deriving from Panel in Siverlight. I want to be able to set the tabbing behavior inside my panel. What I need is something like TabNavigation property of the Control class. For example, if I set: myCustomPanel.TabNavigation = KeyboardNavigationMode.Cycle tabbing will move the focus only through the childr...

Protect assembly?

I have a .NET DLL (C#/VB) with custom controls, extension and other stuff. I want that it should be available for me only. Is there any way to restrict unauthorized access to a DLL? ...

Custom Designer for a Control

I've got a custom class which derives from SplitContainer: namespace Builder.Components { public partial class ProjectSidebar : SplitContainer { public ProjectSidebar() { InitializeComponent(); } } } Now when I right-click and select View Designer I'd like to see the SplitContainer and e...

Asp.Net Custom Control design time question

I'm developing a set of custom controls, one of them are the "parent", any others must be added inside an ITemplate property of this parent. But in the page, at design time, I can see, by intellisense, the other controls at page level, and I can theorically add them everywhere. I want to emulate the behaviour of the asp:Table and the ...

How to make sure that CreateChildControls() method is called when unit testing custom ASP.NET web controls?

Hi, I want to unit test my rendering engine for an ASP.NET app. I have some custom controls created in that app. Most of those control rely on having CreateChildControls() method called by the ASP.Net engine wheather during initial call or a postback. When running a test CreateChildControls() does not get called and the control is in an...

Is there a better way to access controls in an ITemplate than FindControl()?

When a control is added to an UpdatePanel, it can still be accessed from the code behind of the containing page. How is this achieved? Can custom control developers do the same? In other words, if I develop a template control using the ITemplate Interface, is there a way to wire it up (like the UpdatePanel seems to) so that any control...

Silverlight custom control inheritance. Reusing the template?

Hi, i have the following scenario: [TemplatePart(Name = GoToEditModeButtonPart, Type = typeof(DoubleClickButton))] public class ValueBoxWithLabel : ContentControl { public const string GoToEditModeButtonPart = "GoToEditModeButtonPart"; #region LabelText Dependency Property ... #region IsInEditMode Dependency Property ... ...

What would you suggest for building such a control in WPF?

I need to build a WPF control that looks somehow similar to this: Where each color should be clickable and resizable (or selectable). This control will be used to set modes on the hours of a day. I've thought about making 24 buttons that would be arranged in a circle: Another idea was to draw a complete circle and calculate user mo...

Build ASP.net headered control

Currently I'm working on a extensive form, which I'd like to organise by grouping input fields in groupbox-like panels. These panels have an header, a minimize and pin icon. Also inner controls should be able to perform two-way binding to the FormViews datasource. I can't find any builtin asp.net control that does the job. What is the b...