controls

WPF List of Groups of Controls Databound to List of Custom Class?

I'm still somewhat new to WPF (only done a few small projects with it). I'm trying to make a repeating group of controls (user can add/remove these groups), databound to a custom class. Example UI: ([UserButton1] [UserButton2]) <--each of these () is a separate group of buttons ([Cheese] [Wine] ) ([Wallace] [Gromit] ...

Are all WPF controls FOCUSable ?

Hello, are there any default exceptions where wpf controls are not focusable? My controls need to be all focusable, but I do not want to set everytime I create a control make focusable="true" ...

WPF: swapping out control templates increases performance, efficiency?

I have a general question about WPF performance. We have a relatively simple forms application. Some team members believe that redesigning the templates for basic controls will improve performance and maintainability. One preferred technique is to create multiple control templates for a control, and swap them out with triggers. The belie...

Listview to Excel HTML markup issue

I'm using code similar to code mention at http://www.dutch-creatives.com/post/2009/08/11/Export-ListView-to-Excel.aspx to export Listview to excel My listview <asp:ListView ID="lv" runat="server"> <LayoutTemplate> <table runat="server" id="table1" class="datatable" > <tr class="r...

WordWrap in CheckedListBox control

I have a CheckedListBox in my Windows forms application, but items can be added that are to wide for the control to display. Is there any way to have the text wrap to the next line when this occurs? I know with a standard ListBox this would not work, since it would be hard to tell the difference between the second line of one item an...

C#.Net ASP.Net Data Controls

Could any body explain what does this contain: ds.Tables[0].Rows[0][0] Thanks. ...

jQuery validation plugin validating html control only

Hi guys, I'm developing a form with client side validation using jQuery validation plugin. This almost works perfect but i'm getting a problem: The form is composed by 5 inputs. One input requires the content of other input(that must be valid) to proceed the validation, i show one example: $('#submitionData').validate( { ...

Dealing with simultaneous button presses and changing shift states

I am currently working on a (Python2.5) application which handles input from a game controller. We've designated a button as a shift button to change the mapping (inputtype,value->function) of the other buttons on the fly. The mapping also depends on the mode our application is running in. We are running into lots of hairy edge cases (e....

Stop a tablelayoutpanel from scrolling

I have a C# .NET 3.0 project that uses a TableLayoutPanel containing several rows of controls. If I scroll down such that the top item is no longer visible, then remove a control in one column and replace it with a new control, the TableLayoutPanel scrolls back to the top. /// the panel in question private System.Windows.Forms.TableLayo...

LinkButton Clicked OnPreRender

Hello all, I Have a link button when clicked i want to preform an operation inside the OnPreRender method... so how would i know if that linkbutton was clicked say my linkbutton's name is : lnkbtn1 Thanks in advance. Baher. ...

Pretty .Net GUI Library Like using in Yahoo Messenger

Please, advise me any .net gui controls library for create user interface like in Yahoo messenger or like Trillian. May be this will be easy skin-based interface library or other. I need only simple controls ex. buttons, listview combobox, checkbox and other therefore library must be small. I know DevExpress and Infragistics libraries bu...

ASP.NET Dynamically creating & setting different ID for the same controls

Hi, is it possible to render the same controls with different ID property ? <%for (int i = 0; i < 15; i++) {%> <asp:Label ID='Label<%=i.ToString() %>' runat="server"/> <%}%> here is an error: 'Label<%=i.ToString() %>' is not a valid identifier. ...

Checkbox Binding Information in WPF

I have a code snippet as below <CheckBox Name="cb" Margin="1,2,1,0" IsChecked="{Binding Path=IsManager}" IsEnabled="True"/> Consider I don't know which property is bind to IsChecked property. I want to get programattically know the binding information of IsChecked property. How can do I that? ...

WinForms DataGridView Alternative

I need to populate a list that has 3 columns. First: Icon Image. Second: A string. Third: A string. I started to wire up a DataGridView and it seem awfully large and powerful for my needs. I am not interested in displaying data in a grid similar to a spreadsheet and I do not require all the functionality that comes with this control. I...

Manipulate databound values in databound control? ASP.NET Webforms

Im working on the following markup, inside a databound control in ASP.NET Webforms. <asp:TemplateField HeaderText="DomainID"> <ItemTemplate> <% for (int i = 0; i < 10; i++) {%> <%#Eval("DomainID"); %> <% ++i; } ...

How to create custom composite control derived from the FrameworkElement

Can you give me an example how to create custom composite control (in Silverlight 4) which derives directly from the FrameworkElement. Here is a mockup: public sealed class CompositeImage : FrameworkElement { private readonly List<Image> images; public CompositeImage() { images = new List<Image>(); images.Ad...

user control inherits from custom control

I have an custom control that extend System.Web.UI.UserControl. Is it possible to inherit user control from this custom control? ...

Control difference between Hide() and Visible?

I was wondering about the difference between using a Control’s Hide() method compared to setting the Visible property to false. When would I want to use the one over the other? ...

Horizontal tree view control in .net

Hello I'm looking for a horizontal tree view control that creates nodes in the following way - |_______| | _______________________ | | |_______| ...

How to use QT 4.6.3 Binding with Lazarus

Is there a way to use QT 4.6.3 visual controls with Lazarus 0.9.28.2 Beta? How I can install the QT widgets and have them in my Controls pallete? ...