Top "Controls" questions

Use this tag for programming scenarios related to controls (interactive elements of the user interface).

Is there a way to add an onclick event to an ASP.NET Label server control?

I wanted to do something like this: <asp:Label ID="lblMyLabel" onclick="lblMyLabel_Click" runat="server">My Label&…

asp.net controls
.NET C#: WebBrowser control Navigate() does not load targeted URL

I'm trying to programmatically load a web page via the WebBrowser control with the intent of testing the page & …

c# .net controls browser navigateurl
ASP.Net: Literal vs Label

I just wanted to hear some authorities on when and where you should use a LITERAL control over a LABEL. …

c# asp.net html controls
Trigger control's event programmatically

Assume that I have a WinFoms project. There is just one button (e.g. button1). The question is: is it …

c# winforms events controls
How do you make a WPF slider snap only to discrete integer positions?

All too often I want a WPF slider that behaves like the System.Windows.Forms.TrackBar of old. That is, …

wpf controls slider
How do you change the color of the border on a group box?

In C#.NET I am trying to programmatically change the color of the border in a group box. Update: This …

c# winforms user-interface controls groupbox
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 …

c# winforms controls components
How to get combobox not to accept user input in Excel-Vba?

Does anyone know what the properties are in the combobox that I can manipulate in order not to allow the …

excel vba controls excel-2007
C# Add Controls To Panel In a Loop

I wish to add a button for every line in a file to a panel. My code so far is: …

c# dynamic controls add
Control for displaying multiline text?

I need to display a multiline, read-only text - which control can be used for that? It should only display …

controls javafx-2