controls

Checkbox DataBindings - Checked vs CheckState

Can anyone tell me the pros and cons of using the checkboxes checked property vs the CheckState property for databinding? Thanks. ...

Adding ImageButton Programmatically

Hi, I have a code snippet like below and I want to add imagebuttons into my asp:Panel during page load. But the events are firing already when I run the page. I want it to be fired when it is clicked. Thanks in advance for all helps protected void Page_Load(object sender, EventArgs e) {... foreach (Gift g in bonusGi...

Building a great dashboard app in WPF -- what are the controls available out there?

My application collects business data from various sources, aggregates it, groups and filters, and needs to display it. Pretty uncommon, right? =) The point is that I already have a "drill-down" UI, so the Services and Operations people can find their data in the tree view and do their job. But now I also need a shiny high-level dashboa...

How to apply groupname to HTML radio buttons in asp.net?

Can anyone please tell about how to apply group name to html (input) radio button controls so that i can select any one of the available radio buttons? I have input radios in a table. Each row contains two radios as follows. I want to select one from each row. But i am able to select only one radio button amongst all radio buttons prese...

Move a control to a floating location

I want to move a control in panel1 to the Red Line end from the following example: private void panel1_Paint(object sender, PaintEventArgs e) { e.Graphics.DrawLine(Pens.Red, new PointF(10.7f, 20f), new PointF(50.5f, 20f)); } Is that possible in .NET 2.0? Background I draw some paths using the floating (world) coordinate...

is it strange to generate controls into placeholders to avoid the "ugly" long Control ClientID's?

More and more I dislike this long ID's by server controls... But the other method to generate it in codebehind I think is not the sense of the easy thing of asp.net, is it? So would you prefer that method by yourself? I'm going to create medium and big projects next year in company, thats the reason why I ask. Me self come from PHP and...

how to handle programmatically added button events? c#

I'm making a windows forms application using C#. I add buttons and other controls programmatically at run time. I'd like to know how to handle those buttons' click events? ...

when does asp:datapager control comes in handy?

Hai guys, I really want to know , when does datapager control comes handy in asp.net? List of controls that uses datapager? ...

How to use floats with TrackBar

I'm using a TrackBar control. By default its values are int32. I would really like to use decimal values so the use can select at a more granular level. How can I get the TrackBar control to except floats? ...

Silverlight TemplateBinding to RotateTransform

I am trying to create the simplest Silverlight templated control, and I can't seem to get TemplateBinding to work on the Angle property of a RotateTransform. Here's the ControlTemplate from generic.xaml: <ControlTemplate TargetType="local:CtlKnob"> <Grid x:Name="grid" RenderTransformOrigin="0.5,0.5"> <Grid.RenderTransform> ...

Trying to move around asp.net panels around dynamically on postback

I have 2 sections of my website I am developing, a reference box that has a fixed width and a working box that has the same height as the content. I am trying to make it so the user can swap the content between the two boxes. I have the following type of setup in the aspx page: <asp:panel id="pnlReference" runat="server" CssClass="ref...

TComponet / any other Superclass and its child item detection.

I have Popup menu control on form ( grr, I most likely gonna make it dynamic - hate static tools ). It has got Item with SubMenu. SubMenu has three Menu Items ( TMenuItem class ). I need to check by taking Sender param in if..then statement whenever procedure has been called by the Item with SubMenu or by SubMenu Items. I tried differe...

Manually fetch values from asp.net control

I have a FormView control with Two text Boxes. Data source for the Controls is an ObjectDataSource I want to fetch these values from both text boxes, create a User object and pass it to ObjectDataSource, which has an input method that accept a User object I think I have to do it in protected void ObjectDataSourceUsert_Inserting(obj...

How to implement a data-bound control with templates?

I want to implement a very simple list control. It has 2 properties: RowTemplate (ITemplate) DataSource (IList) The control implementation must render each row using the template specified in RowTemplate passing the corresponding object in the DataSource list, so that, if I have a property called Name in the passed object, it would b...

Why can't I see the ToolStripButton as a choice in the StatusStrip Items Collection Editor?

Using Visual Studio 2008 and C# 3 with .NET 3.5 I've added a StatusStrip control to a form and the only controls I can add through the designer are: StatusLabel ProgressBar DropDownButton SplitButton I want to add a ToolStripButton but I can only do so from code in the .designer.cs file. This way I would see it in the designer but I...

QTextEdit (QT Control) alternative for MFC Application?

Hello Do you know any (paid or free) MFC control with features like (QT) QTextEdit control? Good HTML (and may be RTF) support (import, export) Ability to edit manual control content :) ...

Can't get to custom control

Hi! I have a custom control on my web form: <form id="form" runat="server"> <clc:CustomList ID="myList" runat="server" AddButtonText="add" DeleteButtonText="del" MoveUpButtonText="up" MoveDownButtonText="down"/> <div id="test" runat="server"></div> </form> I need to get...

Flex Tree Control how to get the itemEditorInstance of a just added xml node

Hi everybody, I have a Tree Control on which I let user add some nodes. When a node gets added I want to let the user edit the added control right away. How do I get the itemEditorInstance of a just added xml node? Thanks for hints! Markus ...

C# Winforms - Prevent a control from stealing focus when added programatically

Hi there. I have a bit of an odd question. My situation is as following: I have a form, It contains several user controls that in turn contains either other user controls or other basic controls such as TextBox, RichTextBox and such. As part of the logic when editing the text boxes, I create another control programatically and inform ...

How to create controls at runtime?

How to create dynamic MFC controls and handle message maps of the controls at runtime? ...