controls

Is there a .NET control out there to emulate the Word 2007 selection toolbar?

I'd like to have a toolbar similar to the hover toolbar in Word 2007 (see picture) show up when I highlight text. Does this control exist (free or otherwise) or am I S.O.L. to hack it together myself? Thanks! If anyone has any tips on how to put this together that would be appreciated as well. I don't need the fade-in/out effects th...

System.Web.UI.WebControls.Calendar is it possible to change the color of individual selections?

I have code to do multiple selections in a calendar control but I would like to change the color of the initially selected day to green and the end date to red. Visually this would indicate the start date and end date of a certain service to be provided. Should I be looking into RenderControl Method for my calander or more looking int...

Silverlight Databinding one control to another

I'm working in Silverlight. I've got a ListBox that's being loaded dynamically. In the listbox, i want to put a checkbox that's tied to the listbox's "selected" property. I can't quite figure out how this is done. Can anyone point me in the right direction? If this were a winform thing, I would, create "OnChecked" handler for the chec...

TemplateBinding in ItemsPanelTemplate

Hi all, I'm building a custom ItemsControl in Silverlight that (amongst other things) allows items to be displayed horizontally or vertically at runtime. How can I bind the Orientation property of the ItemsPanel to the Orientation property of my parent control? I've tried using TemplateBinding (which works inside the ControlTemplate) ...

Dynamically loaded control - how can I access a value in Page_Init

I am loading a LinkButton dynamically when a user clicks on another LinkButton. I am attaching an event handler to it. When the user clicks on the dynamically loaded LinkButton, the event does not fire. From what I've been reading, I understand this is because when the page posts back the dynamically loaded control no longer exists....

WPF : Refresh / Update control on Window load

I want to display time in the Label. The label contents needs to be refreshed automatically as the window is loaded. I have a simple WPF Window with a Label control in it. As illustrated here <Window x:Class="shoes.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w...

Plain image in Windows Forms StatusStrip control

I'm trying to put a plain image on a System.Windows.Forms.StatusStrip control (Visual Studio 2008, C# .Net 3.5). I remember being able to do it quite easily in earlier framework versions, but for some reason the only controls made available to me from this new StatusStrip are a StatusLabel, a ProgressBar, a DropDownButton, and a SplitBu...

Setting Button FlatStyle in WPF

I have just been learning about how styles and control templates in WPF can affect the appearance of buttons, I'm trying to set the Button's FlatStyle, in the resources I've seen I can't find anything that tells me how I can do this, in Windows Forms this is set through FlatStyle = Flat. How would one do this in WPF? ...

Using ASP.NET Compare Validator to make sure field is unique

I would like to use a Validator to guarantee that a given textbox's submitted content is unique. I want to make sure that the name put into the box is not the same as any other text box. The catch is I don't know at compile time how many other text boxes it will be compared to. It could be anywhere from 0 - n other name text boxes. Tha...

ASP.NET - Render a custom CompositeControl to String?

I am trying to render a composite control to a string and write it to the page as such: Dim sb As New StringBuilder Dim sw As New StringWriter(sb) Dim hw As New HtmlTextWriter(sw) Dim CustomCompositeControl as New MyCustomCompositeControl CustomCompositeControl.RenderControl(hw) HttpContext.Current.Response.Write(sb.ToString) Unfortun...

Showing Related Data In A DataGridView

If anyone's used Access recently, you might recall that when it displays data for a table that has a relationship, a little expandable node appears next to each row. Clicking on it shows all of the data from other tables related to that row in-line, underneath the row. I basically want to do that in .Net. Is this something I can do usin...

How do I add blank rows to a repeater bound to a List<T>?

Is this possible? Using VB.NET. Can I do it in the footer maybe? Would that be the best way? Bind the footer to a datatable and throw some blank rows in there? ...

How to find controls in a repeater header or footer

I was wondering how one would find the controls in the HeaderTemplate or FooterTemplate of an Asp.Net Repeater control. I can access them on the ItemDataBound event, but I was wondering how to get them after (for example to retrieve a value of an input in the header/footer). Note: I posted this question here after finding the answer ju...

How to Stretch WPF Tab Item Headers to Parent Control Width

Is there a way, in XAML, to cause the tab item headers to stretch across the width of the tab control. For example, I have three tabs, red, blue and green. I have a tab control with it's width set to auto, the tab headers will only fill up part of the space above the tab content, I want them to fill up all the space. I have an idea how...

Best way of upgrading .NET windows controls to WPF controls?

We are about to upgrade a C# windows application (1.1) to WPF from windows controls (3.5). Do you have any suggestions on where to start Any tips & tricks? What to avoid? The window controls (1.1 .NET) are present in a separate project within the solution together with our "entrypoint" and "process controller" for the application. ...

Multiple controls with the same ID 'add0' were found. FindControl requires that controls have unique IDs

Previously Called: How to deal with dynamically created controls under load in aspx in response to a question below: the information required to determine which controls to restore is contained in a dedicated viewstate object. I am dynamically creating controls in the codebehind page - these controls are all hooked up to click handler...

Is possible to build a custom control without an ASP.NET Server Control project?

I have a web application in Visual Studio 2008, and I have found an article explaining how to extend GridView creating an inherited class. If I create that class inside the same project, is possible to use my new grid? How? If it isn't possible, why? ...

How can you move ASP.Net controls to different places on the Web form at runtime?

Is there an accepted way to "move" a control. My client wants to place a certain chunk of markup (representing some visual element) in one of several different places on the page. The locations are different to the point that I can't effect the change on CSS along (by floating it or something). I considered just putting the control in...

A wxPython timeline widget

Hello! I am looking for a certain wxPython widget to use in my program. I hope that something like this exists and that you might know where to find. I will try to describe the functionality I'm looking for: Imagine something like the widget that Audacity uses to display an audio track. It's a horizontal timeline, with a ruler. It is p...

ASP.net Server controls: How to handle ID of dynamic controls

Hi, I have the following problem (I'll explain it simplified because otherwise it would get too complicated/long). I need to create an ASP.net server control that is inherited from Panel. Simple enough. When the custom control renders, it should dynamically create a Button, associate an event handler to it (which will also be defined i...