controls

How to create a custom asp.Net Templated Databound Control ?

I would like to know if there is a good source of documentation for creating Asp.Net Templated Databound Controls or code samples for simple controls. All the documentation I have seen on the net seems way too complex. Is there a place where it is explained in a simple and easy to understand manner ? I could also be interested in text ...

Convert Gridview column from ID to String in ItemTemplate

I currently have a Gridview that displays TypeID , Name , Description. I would like to display the actual type name instead of the TypeID in the gridview. I created this function that takes in the ID and returns the Name but I am having trouble using it. There are 15-20 different types so How do I convert the TypeID to a Type Name so t...

Searching for a component in NET 3.5

Hello, I'm searching for a component similiar to this one(Delphi) in .NET 3.5 SP1 Thanks. ...

How do I specify a default font and size for a control in Visual Studio?

I am creating reports in visual studio and am looking for a way to specify a default font and size apply to a textbox each time I drop one onto the designer. Update: This is not winforms or webforms development, but using the report designer in visual studio. My biggest issue is that a text box by default is .25 inches in height and aft...

Sharepoint controls in ASP.NET application

Is there a way I can use the sharepoint controls in a ASP.NET web application like any other controls that come out of box for ASP.NET? If yes, what are the pre-requisites I need to install? Thank you, Harsha ...

Bilinear Transformation

Hi, This particular topic pertains to Digital Controls. I have a transfer function of my plant, which in this case is a servo motor, and it is in the z-domain. In order to determine the phase margin I need to look at the Bode plot, but first I have to use the bilinear transformation: z = (1+(T/2)*w) / (1-(T/2)*w); T-sampling rate, w = ...

Silverlight : Custom template for a hierarchy treeview

I am using silverlight and want to dynamically generate a hierararchy tree in the following format : Since Silverlight controls are lookless,how can I structure a template that ultimately look like the image? ...

c# wpf overlapping controls not receiving mouse events

Hi, I am building a canvas control. This root canvas has several overlapping children (canvas as well). This is done so each child can handle its own drawing and I can then compose the final result with any combination of children to get the desired behavior. This is working very well as far as rendering is concerned. This does not work...

How can I tell at run-time which control is in front?

I have a container control (a Panel) that has a number of Forms loaded into it. Based on user interaction, I .BringToFront() certain forms. However, in other parts of the program, I would like to figure out which form is currently in front. (In other words, determine which was the last form to have its .BringToFront() method called.) Wh...

Column selection in ListView (MFC)

I want to select a particular column in a ListView. When I search for it I always find ways to select row-wise only. Any idea how do I do it? Also how do I get the selected column index? Using MFC-VS2005. ...

Grid Control

I have been tasked to create a control that has hot spots that will allow drag and drop of images. These locations will change based on what is being dragged onto the control. After dropping the image on the control it will need the ability to move to a new location (either by drag and drop or using the arrow keys). The closest example ...

Remove the border from a combobox

I am working on a form in C# that is used for displaying information, but I still need to allow some manipulation of the information. What I really want to do is remove the border from a combobox, this would allow me to display the information while also allowing the user to select other items in the set without having to display them a...

How to add a tabitem to a silverlight tabcontrol in code

This seems does not work: TabItem tabItem = new TabItem(); tabItem.Header = "New tab"; tabItem.Content = "Content"; tabControl.Items.Add(tabItem); Anyone has done adding TabItem dynamically to a TabControl? ...

Render Dundas control with dynamic markup

Im using VS 2005 and I want to find the best way to create a Dundas chart dynamically. In my codebehind, I have a procedure that creates the markup tags for a Dundas chart. When the page renders, it doesnt display anything but the view code shows the tags for the chart. I know its probably something with the rendering of html in the w...

How to create a WPF UserControl with NAMED content

I have a set of controls with attached commands and logic that are constantly reused in the same way. I decided to create a user control that holds all the common controls and logic. However I also need the control to be able to hold content that can be named. I tried the following: <UserControl.ContentTemplate> <DataTemplate> ...

textbox focus jumps to above dropdown list when clicked into

Ive never seen this. I click into my textbox to type in a value and as soon as i release the mouse button focus jumps to the above dropdown list. No javascript on these items. If i hold the mouse button down i can type in a value to the textbox. Any idea? ...

WinForm Controls behave differently on .Enabled = false

I have some controls on a WinForm namely: CheckedListBox, ListBox,ListView, TreeView, TextBox. On ControlName.Enabled = false; I have found following results: ListView and TextBox's BackColor get greyed. CheckedListBox, ListBox and,TreeView's BackColor does not get greyed. Why is this behavor? Is it a intented or Bug? and how to...

ASP Hyperlink control text wrapping

I'm trying to get the text within the ASP Hyperlink control to NOT wrap when it is placed within a html table as below: <table style="width: 320px" class="noLines"> <tr><td style="width: 300px"> <asp:HyperLink Target="_self" ID="frmSuggest" Text ="Click Click Click Click Click" Visible="false" runat="server"></asp:HyperLink> </td></tr...

Overriding Controls Collection on WebControl

Hello All, I am trying to override the Controls collection of a control that inheirts from WebControl so that when a user adds controls to the webcontrol I can put buttons before and after it and kind of put it in its own wrapper. Something like this: protected override ControlCollection Controls { EnsureChildControls(); retur...

C# UserControl.VerticalScroll.Value not being set

I've got a chunk of C# code that is supposed to set VerticalScroll.Value within a class that inherits from UserControl. It gets called when any child object of the class changes sizes. The class has its AutoScroll property set to true. public void ScrollTo(int top) { if (top >= this.VerticalScroll.Minimum && top <= thi...