controls

Looking for master-detail (hierarchical) control for VB.NET

Hi, I'm looking for such control in order to represent a hierarchical list that I can sort separately each set of master (parents) and his details. Something like that: http://www.microsoft.com/Global/project/en/us/PublishingImages/ProjPortServ-scrn-2-lrg.jpg I think that such a control does not provided in .NET Do you know for a good ...

WPF: looking for list of each control's states and brushes

Is there a list somewhere of all the common states for each control? We're restyling them and it would be nice to not have to hunt through each control to figure this out. Basically a list like: Button: Disabled, Hover, Pressed, Selected, Focus, etc. ListBox: Disabled, Hover, Focus, etc I'm looking in Blend and MSDN but not finding a...

Is there a selectable label control?

I'd like a selectable label control, like the one in the screenshot. It could be done with a borderless TEdit, but I was wondering if there is another way that would work with gradient background? To clarify, I'm using a simple PageControl, which since Win XP has gradient drawing, a borderless TEdit placed on a page doesn't blend in p...

Using interrelated listboxes to represent available combinations in Windows Form/Control

I'm trying to provide a simple way for our users to select a desired shipment method (ie: UPS ground) without having to know it's corresponding ShipmentMethodID. There are three key aspects of every shipmentmethod that uniquely identify it: Courier (ie: UPS, FedEx, OurTruck, To Be Determined) Service (ie: Ground, 2Day10am, To Be Dete...

jQuery and LinkButtons, or Regular Buttons and CSS

I've got a small login control on my master page. On the login control, I'm using a LinkButton for the Submit button because I like the way it looks. However, I'm also using jQuery to capture when the 'enter' key is pressed in any of the login control text boxes. It's difficult to trigger the click event of a link button with jQuery in ...

Is there a control for .NET that is similar to the completion graph in uTorrent?

For reference, it looks like this. It's similar to a progressbar except instead of the usual 0%-XX% filled in, this can have any arbitrary range filled in. I tried searching but did not know how to describe it. ...

Using control.Visible returns False if it's on a tab page that is not selected

Hi, I have a form with 2 tab controls. Form opens on tab 1. I have a few controls I need to validate on tab2. If the controls I want to validate have been set to not Visible then I want to ignore validation. (i.e. The controls have been hidden from the user) Problem is all the controls on tab 2 return Visible=False, because the Tab is ...

WP7 - Controls - Criteria to decide which class to inherit from - UserControl or ContentControl or Control class

Hi, I am developing controls for WP7 application. I am aware that I can quickly create control by inheriting from UserControl class (that derives from Control class). Also, that such controls cannot be customized, i.e., all the properties associated with control are those harcoded in user control - they cannot overridden in xaml etc. But...

Fisheye for Winforms

Does anybody if there is a fisheye (menu/pane) windows forms control like it is often seen in Ajax applications: example: http://interface.eyecon.ro/demos/fisheye.html A googled around, but I only found this one at codeprojece: http://www.codeproject.com/KB/menus/FishEyeMenu.aspx ...

Is there a document highlighting WPF and Silverlight controls available in the framework?

I'm looking for something like a pdf or anything else that would show a chart of available controls in SL and/or WPF. Ideally, the chart should have a drawing of the control, some succinct description and the hierarchy if possible. Has anyone seen such a thing? Freeware or Payware, can even be from a book I could buy. ...

OpenXML: Allow editing of Content Controls in locked Word document

I want to create a Word document that works as a template, where all the document is locked from editing except the Content Controls (<sdt/> elements) in the document that the user can edit. What I've seen is that if I lock the document edition (right now I'm using the _markAsFinal property) there's no way to unlock a single Content Con...

How can I get the Name of current control to dynamically assign control text?

Without going into detail about what I'm trying to achieve, is it possible (and if so how) can I reference an object that I don't know the name of? For example I want to saything like: someButton.Text = someButton.Name; But on the right side I don't want to state the object name. So what I'd really like to do is something like: someB...

How can I define a Listbox to be from the Forms namespace rather than the Control namespace in XAML?

Hi, A potentially ignorant question, but I cant seem to find the answer. My problem is fairly straightforward -- I want to use members of the Forms.Listbox class -- not the Controls.Listbox class. However, both are defined in my code behind. How can I differentiate in XAML? Many thanks. ...

How to make an icon repeating N times where N is a variable?

I would like to show number of successful orders made by each customer. Number of orders will be represented by number of smiley faces. Upon clicking on the smiley face, it will link to other web page showing full order histories made by this customer. Basically all smiley faces will link to the same page. How this can be done in ASP.NET...

Tool for examining the structure of a windows forms application

Hi, does anybody know a tool for examining the structure of a windows forms application? I want to get information about every control on the form like buttons, labels etc. I tried Spy++ but it tells me only some information about the window structure, but nothing about the internal controls. Thanks! Mark ...

MouseLeave event fires when moving over control's ScrollBar

I am reposting this question due to inability to solve the problem (original here). In the TreeView, ListBox, or it seems from my google searches anything with a ScrollBar, the ScrollBar is not considered a part of the control. I have a TreeView that I'm putting into a custom control, and it's Dock Fill. So there it acts as a custom Tr...

How can i hold a few panels with different controls at one place in application in Silverlight/WPF and dynamicaly change them?

In my Silverlight application should be two or three panels with different buttons and images and i want to implement next functionality: when user clicks on one button of first panel, second panel opens in the same place and substitutes previous panel (on which user clicked). Maybe there is a better way, that few panels. Any help and id...

How can I detect when Control.PreferredSize changes?

I'm using Control.PreferredSize in order to determine what the ScrollableControl.AutoScrollMinSize should be for a Form. This will need to be set whenever the control's PreferredSize property changes, but there doesn't appear to be a Control.PreferredSizeChanged event. Is there a way to detect when this property changes (possibly using C...

ASP.NET Designer - How Do I generate this Design-Time Markup?

Hello, I want to generate this: <x:MyControl id="a" runat="server"> <Scripts> <x:MyScript .. /> </Scripts> </x:MyControl> I setup a control like: [ ParseChildren(true, "Scripts"), DefaultProperty("Scripts") ] public class MyControl: Control { [ PersistenceMode(PersistenceMode.InnerDefaultProperty), Mergabl...

Cocoa: Custom control not limited to window frame - how to start?

Hello! I want to build a custom control that would work like this: You have a kind of NSButton with an image. You click the button and than appears a big square with a grid of photos. You click one of the photos and it is set up as new image for the button. (square dissapears) Now, how to draw this big square with photos if I want it n...