controls

Button BackColor Not Working As Expected

I have a form with a split panel. In the one split are a group of buttons which I want to programmatically change the color of the last pressed button. The following loop seems to run correctly and set the colors correctly but the form doesn't represent that. Once the loop is completed and I recheck the button colors, they revert to p...

What control should I use for showing "Featured Products" on my ASP.net Website?

I have various SQL tables and my use case is: I'll choose 5 Products at random and they'll show in X control (don't know what to use here). I know I'll have to use SQL and pull the product information using the ProductID as the hook to fish out every other information. What Control should I use? ...

LoadControl vs Construct ASP.Net Control

Hi Guys, I have a question why we can only add dynamic control using LoadControl. For example: public partial class wucReportParam : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { wucDate() ctrl = new wucDate(); pnl.Controls.Add(ctrl); } } When in the page_load meth...

What is the difference between User Control, Custom Control and Component?

These are three different things you can add to a project and I am not quite sure if I understand the difference. They all seem to for example show up in the component toolbox when working with a Form. What are some common usage scenarios for each of them? What is the difference? ...

How can I re-instantiate dynamic ASP.NET user controls without using a database?

I'm currently working with a part of my application that uses Dynamic Web User Controls and I'm having a bit of trouble figuring out the best way to re-instantiate the controls on postback by using ViewState or some other method that doesn't require me to query a database on each postback. Basically what I have on my page is a user cont...

Exposing WinForm Controls to the Calling Class, also a WinForm?

I am of the understanding that this can't be done but opted for a public method that would do the specific work I need without exposing my control and keeping it private. So exposing specific properties of a control that I want access to for simple dsicrete set and get operations is fine by me via a public property is also fine. URL: ht...

ASP.NET AJAX’s Combobox - Use HTML Tags in list entries

I'm using the new Microsoft ASP.NET Ajax Combobox control. But I want to use HTML-Tags for formatting in the DropDownlist. It renders to <ul> and <li> and not to <select> and <option>, so it should be possible. My Control looks like this: <act:ComboBox ID="cbxCompany" runat="server" Width="180" AutoCompleteMode="Append" CssClass="Co...

License for components in ASP.NET

I want to create a license system for some components (in DLL format) for ASP.NET , and I have not any ideea of about how to do this thing. I can use the unique series of car (such as HDD's series), so it would be a pretty difficult task. ...

Check Control.Value for data

Hi All, I have several different controls (TextBoxes, DateTimePickers, MaskedTextBoxes) on a form that I would like to check to see if they contain any data. I have the following code in the Click event of my "Save" button: private void radBtnSave_Click(object sender, EventArgs e) { this.Cancelled = false; bool...

Combo with 2D borders on XAML

I am working with XAML. How can I add a combo box with flat borders (Not 3D)? ...

Control without a form in VB .Net

I would like to make an application where there is no form, only controls, this way theuser can see what they are doing on top of their work. How could I for instance put a textbox on the screen, just like form1, but without it being a parent of form1, almost as if it was form1. Basically form1 is hidden. Thanks ...

SplitContainer.Panel1 Selection to Changes SplitContainer.Panel2 selection

The MSDN documentation for the SplitContainer controls says: With the SplitContainer control, you can create complex user interfaces; often, a selection in one panel determines what objects are shown in the other panel. So, I have a SplitContainer that is split horizontally having top and bottom panels. What I would like to...

realign dropdown box after form resize

I have a winform app. On the menu bar, far right, I placed a dropdown box on top of it. When I resize the form the dropdown box obviously stays in the same position (x,y location). How can I get it to move propotionally to the right when the form is resized. It basically stays on the same Y axis. I can't use a layout control since it's...

Silverlight Image Editor control

Do you know of any Silverlight "Image Editor" controls, commercial or open source? Primary feature requirements: Crop/resize/rotate image Set background color Insert text Insert multiple images I'm aware of this similar question (November '08), but the Atalasoft offerings (currently the only answer) doesn't seem to include a Silverl...

Access to all controls from a WPF windows

Hi, I implemented a fonction in Visual Basic 2008 that takes the content of all the controls from a System.Winows.Form object and return a hash value corresponding to this content. The use of this function is to detect whether or not the user modified the content of the page and determine if I have to display a message box asking to sav...

Intercept ASP.NET Control OnInit

I would like to intercept the OnInit of (numerous) controls on a page. The purpose is to set various properties of the controls at run time. It is critical that the interception happens prior to the start of ViewState tracking for the control because the property values in question are not to be stored in the ViewState (to conserve space...

Dropdown with Checkboxes

Looking for an open source .net control that functions like this: http://www.obout.com/combobox/cbo_integration_databound_checkboxlist.aspx Can anyone point me in the right direction? ...

WPF: How to show output of a database?

I have a database consisting of 4 or 5 columns, and i want to provide a simple display for that. What WPF control would be best suited to showing the data? ...

WPF + dynamic controls + activity timer events

Hi I am creating a listbox containing 2 text boxes each time a user clicks on a button (example controls to demo) and adding them to the stackpanel defined in the XAML. <StackPanel Name="myStackPanel"> <Button Name="myButton" Click="myButton_Click">Click to add a new button</Button> </StackPanel> private void myButton_Click(ob...

Dynamic controls - Multiple Controls with the same ID

Hey Everyone, I am having a problem with my dynamically created table/controls. I've searched the interwebs to find some solutions and tried a few but for what ever reason im not seeing it the code below. Essentially I want to be able to add new columns when needed and then reload the table as well as removing a column that was dynamic...