Click here to Skip to main content
15,887,998 members
Everything / Controls

Controls

controls

Great Reads

by Graeme_Grant
A Modern Toggle Switch - From mock concept to a full custom WPF control that you can plug into your own apps
by Ajcek84
Open source library for music engraving in desktop, mobile and web applications
by Leif Simon Goodwin
This article presents a simple WPF Carousel Control
by Member 4206974
FormGen, a JavaScript Form Generator

Latest Articles

by Member 4206974
FormGen, a JavaScript Form Generator
by Graham Wilson
A progress bar which displays progress as passage through a simple maze.
by Graham Wilson
A collection of simple .NET Framework/.NET WinForm controls and utilities.
by Graham Wilson
A track bar control which displays the track line as a spiral

All Articles

Sort by Title

Controls 

24 Jan 2016 by Daniel Brousser
Custom TextBox control for UI input validation
7 Dec 2012 by bEGI23
I am trying to add some controls to the Main(single) Form but without success.From the Form within thats no problem, adding it from Sub New() or Load() but from another Class i am not able to do it. An example here below;I am trying to make a .dll with some special functions on it, thats...
7 Dec 2012 by Sergey Alexandrovich Kryukov
Not Form1.Controls.Add(pan), but just Controls.Add(pan). See also my comments.Form1 is some type, the base type for Example. The type does not have the property Control you would be able to call, but its instance has. This is an instance property, not static property.Finally, I figured...
8 Dec 2012 by Glencel Villarmente Alangilan
Form1 class does not have the member Controls. If it inherited System.Windows.Forms.Form, you still cannot add a control like you did. You must add it to an instance of Form1.From the same assembly as the Form1 you could try this:My.Forms.Form1.Controls.Add(something)From a...
3 Sep 2010 by norrisMiou
Hi !I have a problem with a custom component...inherited from "Component". It works fine, except when I close and re-open my form in design view. The component disappear from the bottom of the winform designer.When I look at the "Document structure" tab (sorry in french for me) or in my...
13 Mar 2012 by Sergey Alexandrovich Kryukov
It depends on functionality you want and UI library you prefer (WPF? System.Windows.Forms?)Please see this article:http://wyday.com/blog/2009/windows-7-taskbar-progress-bar-with-csharp-and-dotnet/[^].This is a discussion related to the taskbar with...
2 Aug 2013 by See_Sharp
Hi,I am trying to change a control's property inside an event (Control from a Form). Here's what I am trying to do:- In a Timer's Event Handler, try to change a Label's text:private void someTimerEvent(object source, ElapsedEventArgs e){ if (someflag == true) { ...
2 Aug 2013 by Ron Beyer
if (someflag == true) { if (lblsomelbl.InvokeRequired) lblsomelbl.Invoke((MethodInvoker) delegate { lblsomelbl.Text = "1234"; }); else lblsomelbl.Text = "1234"; }Basically you have to change properties that interact with the...
12 Jan 2017 by Dean Feng
Use common panel and GDI+ to achieve a magnifier effect of image in winform.
24 May 2011 by Colin Eberhardt
How to re-template the Silverlight ProgressBar control to render a circular progress indicator
30 Dec 2022 by Graham Wilson
A collection of simple .NET Framework/.NET WinForm controls and utilities.
9 Mar 2012 by Sacha Barber
Show hows to alter the DatePicker to use keyboard up/down keys for cleverer date selection.
21 Nov 2019 by Leif Simon Goodwin
This article presents a simple WPF Carousel Control
8 Jan 2017 by Nuwan Karunarathna
This a foldable content control for UWP platform.
17 Jul 2020 by honey the codewitch
Add a flexible knob control to your .NET projects
15 Jan 2024 by Member 4206974
FormGen, a JavaScript Form Generator
29 Dec 2010 by yonken
A multi-select tree control that is based on Richard's implementation
6 Mar 2014 by LucaDN
Add zoom capabilities, grid and rulers to the standard WinForms PictureBox control
1 Feb 2011 by ravikiran_k
Hi, Here i am facing the problem of HTML javascript....Can you plz help me out on this,..... I have created one HTML file function show_popup(){var p=window.createPopup()var pbody=p.document.body//pbody.style.width:250px; pbody.style.height:130px; ...
1 Feb 2011 by Not Active
border takes three parameters: type, color, and sizepbody.style.border = "solid black 1px";
1 Feb 2011 by Manas Bhardwaj
First of all, i would not recommend using the window.createPopup() at all. It is a IE specific thingie and would not work in any other browser.You should use a div to do this instead. Next, you seem to have declared pbody, but where has it been used. NOWHERE!
13 Mar 2012 by Sander Rossel
Recently I have been developing some WinForms Controls for my company. Sometimes I inherit an already existing control and sometimes it's a composite control with different other controls on it. However, I have a problem, or rather a question.Now my problem lies in how to properly encapsulate...
13 Mar 2012 by Sergey Alexandrovich Kryukov
I think the way of exposing an event of a ControlChild to the interface of ControlHost you have described as "a lot of work" is the most appropriate.Perhaps you can do a little better using the following technique: you can create some interfaces representing each of the nested controls and...
16 Mar 2012 by Sergey Alexandrovich Kryukov
OK, let's start from some example, but first of all, I want to have the techniques of delegation or events to a host control which would work not only with Forms, but also with WPF, and, more generally, in all cases where you have composed event-enabled members which should remain private. I...
11 Jan 2011 by Kunal Chowdhury «IN»
A Quick Guide to Silverlight Ribbon Controls (Part - 1)
23 Jan 2013 by Tarek Elqusi
I created a simple form with a button to add a label control at run time sequentially numbered; labels are movable and lines are drawn between labels.
7 Feb 2012 by Colin Eberhardt
This blog post provides step-by-step instructions for creating a user control, which exposes bindable properties, in WPF and Silverlight. The post covers dependency properties, and how to manage DataContext inheritance.
5 Apr 2013 by Steve Marsh
The LEDBulb is a .NET user control for Windows Forms that emulates an LED light. Its purpose is to provide a sleek looking representation of an LED light that is sizable, has a transparent background and can be set to different colors.
23 Aug 2019 by Leif Simon Goodwin
This article presents a highly configurable rotary dial control.
1 Mar 2011 by Piyush Nandanwar
Hi,I have a string with HTML Tags as String Data = "Here is text";I want to display the above string in a textblock control using Silverlight. The step Textblock.text = Data, should give me a result as here is text in BOLD not with tags.Instant reply would be...
1 Mar 2011 by Abhinav S
Have a look at this discussion thread[^]. There are some links in this discussion that might be useful to you.
19 Aug 2014 by loraloper_22
Hihow can i change the value of my first control inside a panel, thorugh panel i-e say i ahve a panle called "myPanel" it has 4 check boxes so i want to change the value of the first checkBox.without doing checkBox1.checked=false;etcThanks anyways guys
19 Aug 2014 by mukesh.netdev
try this...foreach (CheckBox chb in MyPanel.Controls.OfType()) { chb.Checked = true; }thanks...
2 Jun 2016 by Member 12561869
I know I can use the following in a RichTextBox to change properties of my font. Bold Italics Underline Center Left Right Carriage Return Change Font Size to a numbered size Change Font Color ie: RedBut how do...
22 May 2011 by hrehanverma
I am writing an ActiveX control using MFC. I am not able to change the bound rectangle for my control and hence not able to increase the size of the control during runtime. Also moving of control in container is not happening correctly as the control bound rectangle area is not...
3 Nov 2010 by haiyangwang
Hello,I want to create Applications like ActiveX Test Container in VC, but it is too complex, so I want to create it by own. Who knows how to do this? Please give me some advice and information.Thanks.
4 Nov 2010 by Nish Nishant
One fairly easy way to test an ActiveX control is via VBScript. Of course there's no UI there. If you want to test it out from a UI, one hack is to install a copy of Classic VB (VB 6 or earlier). Classic VB IDE is extremely useful as an Active X testing application. If you don't have Classic VB,...
26 Feb 2011 by MRAKAR
Hi,i'm making my own user control and have 2 questions1. i want to add a button on default properties list and i want to open a modal form when that button is clicked,2. i want to group my control properties in one category (the attribute Category(...) doesn't work, as i found it works...
26 Feb 2011 by Sergey Alexandrovich Kryukov
This is quite possible but not easy at all; you'll to write several things to allow custom edit in the PropertyGrid. I think modal form is not a good idea as you can do much better by providing a custom in-place editor. However, a modal form is also possible: you in-line editor will be the...
26 Feb 2011 by Henry Minute
To achieve your aims you will probably have to write a UITypeEditor[^] and one or more ControlDesigners or one of its descendants and quite possibly one or more TypeConverters. From your description possibly an ExpandableObjectConverter[^].Here is a link to an example that uses most of these.[^]
27 Feb 2011 by MRAKAR
I thought something about thispublic Sometype PropertyName{ get { return SomeValue; } set { (new Form()).ShowDialog(); }}
2 May 2011 by JasonSelf
I have a wpf form where I am adding a user control when the user checks a certain radio control. If the control is unchecked then I need for the user control to be removed.Here is what I was trying to do:Private Sub CtlRadioStacker1_rdYesChecked(ByVal sender As System.Object, ByVal e As...
3 May 2011 by Fredrik Bornander
You should remove it in the Unchecked event instead I think. Here's two solutions, depending on what criteria for identifying the control to remove:Private Sub RadioButton_Checked(sender As Object, e As RoutedEventArgs) Dim button As Button = New Button With {.Content = "Some...
3 May 2011 by Tarun.K.S
Here is how did. Assuming the UserControl to be added is defined in the Resources of Grid. RadioButton
21 Feb 2011 by kals84
I have created a user control with one textbox and one button control. Now I want to add this control in my datagridview control in VB.Net. These user controls are placed in the datagridview with order one user control in one row.If I have a loop through ten user controls than ten rows in...
14 Jan 2013 by deepakkjain
Go through with below link:-http://msdn.microsoft.com/en-us/library/7tas5c80.aspx[^]
21 Dec 2011 by agent154
Regarding the printing question, I guess I could have been more clear.I have it setup to store the recipe data in an XML document, and am using XSL and CSS so that the document will display in a normal web browser if the user chooses. It also uses this same technology to display the recipe...
21 Dec 2011 by agent154
I've googled a bit and managed to find a few articles on how to add controls from within a running application, but neither seem to explain it in a way that suits my needs. I wonder if anybody can help me understand how I can go about this, or direct me to a resource that will do the...
21 Dec 2011 by OriginalGriff
Handle the Click event for the add and remove buttons: private Button runTimeButton = null; private void butAdd_Click(object sender, EventArgs e) { Button but = sender as Button; if (but != null) { if...
23 Mar 2001 by Wolfram Steinke
An entry level tutorial on using one of the Windows Common Controls in a dialog.
30 Jul 2014 by Matthew Givens
Two ways to add functionality to .NET controls
1 Aug 2013 by Ruchi45
hello friends,I am just stuck adding user controls inside repeater on linkbutton(inside repeater) click. It happens, but when i click some another button or link on page,all added user controls just dissapears. and when i again click button to load user control, then number of uc(user conrol)...
25 May 2011 by info.manyam
HiI'm using VisualStudio 2005and i have AjaxControlTookKit 1.0 versionthis is the register in MasterPageand ...
25 May 2011 by anvas kuttan
hi,, i had the same problem few months before .. may it is the problem of Update panel or you can have simple java script calender.. i solved my problem with java script calender
13 Apr 2011 by Abdul Rahman Hamidy
Dear All, I am trying to use Ajax (.Net 4.0) ComboBox SelectedIndex Change Event with following feature but no code has helped.The ComboBox has the following properties:AutoCompleteMode="SuggestAppend" DropDownStyle="DropDown"I should be able to write any value in the ComboBox even...
14 Apr 2011 by DipaliKolhe
have you tried AutoPostBack="true" propety to your combobox
14 Apr 2011 by Ashishmau
set AutoPostBack="true" property of your combobox
25 Mar 2013 by metharam
Hello All,This is my first question on this site, so please accept my apologies in case i dont give proper explanation of my question. Post your comments for more clarification.**************I have a asp.net website developed in Framework 3.5. I have started building the website using...
26 Mar 2013 by jkirkerx
The basics to SEO apply here, and are the same for any technology.Those controls should not impact your SEO, as long as you have made up for it in HTML. Just make a great website first.First you need well formed HTML, with completed attributes such as the iamge alt=""So test your...
9 Mar 2011 by phil2415
Hi all,I have a problem with binding a reorder list, the control that is part of the AJAX Control Toolkit. I hope you can help because I've spent hours developing it!I created the list and had it working perfectly, with insert, edit and delete commands, as well as reordering all...
11 Oct 2013 by ASP.NET Community
Ajax ValidatiorIn this Article I'll Show you How to call a RequiredFieldValidator With the aid of AJAX.Step1:- In this case,there are three controls
12 Jan 2015 by highwayrob
Happy New Year. Hope everyone enjoyed the holidays !I installed an application I developed in Visual Studio C# on some new laptops with wider higher resolution screens and sent them into the field. Everything works fine with the following exception. A key component to this application is the...
12 Jan 2015 by OriginalGriff
Could well be that the Lappie has different display, font size, zoom factor, etc. - these are all adjustable to cope with the smaller display dimensions.How I would do it:Take the Left property of the first button, and subtract it from the Left plus Width properties of the last. Divide by...
12 Jan 2015 by Sergey Alexandrovich Kryukov
You are doing wrong thing in principle: using manual positioning. You should use a very different approach: using System.Windows.Forms.Control.Dock property with different values except...
26 Jan 2015 by highwayrob
Well.....after a couple of hours of frustration I found out that using floating # does not help. Everything had to work out to an integer so things would line up on each 15 minute increment. I also never figured out how to loop thru and reference the radio buttons, so a bunch of hard coded...
26 Jan 2015 by CHill60
I still think you should have pursued the solution offered by Sergey but you could tidy up your code a bit by iterating through the radiobox controls.Here is one way of doing it (also ugly but better than what you have at the moment)var currentPoint = this.radioButton1.Left;var offset =...
27 Jan 2021 by Member 11760345
I have a user control MembersFoundControl.ascx that is loaded into the MembersControl.ascx when duplicate members are found. The MembersFoundControl control definition is:
27 Jan 2021 by Richard Deeming
You need to recreate the controls on every postback. The best place to do that would be the Init event of the placeholder you're adding them to. Dynamically Adding Wired Controls to Web Forms[^] Remember, your page and the entire control...
27 Jan 2021 by Member 11760345
I am not sure what you mean. The initialization of a control is OnInit. This would meant that this would fire everytime the MembersContol is refreshed. And the lifecycle of the MembersFoundControl is only for the duration of selecting one of...
17 May 2012 by Jim Parsells
Explorer TreeView control with Shell Folder access class and Icon management.
6 Sep 2011 by Vangos Pterneas
A look at an advanced HTML5 feature: Web workers
20 May 2013 by akki166786
I have 3 questions1. can i use angular JS with kendo wrappaers? if yes how?2. if i am using angular js and kendo-all.min.js on the same html tag let say i am making an intut tag autocomplete and also binding it with ng-model, how does it affect each others behaviour ?3. what actually...
21 Nov 2013 by ali64iust
hello dearsour team want to implement an application control.i have some question.we have some white list that if an application was in thatlist can run in a system and other application should not run anywhere.our goal is to prevent application to create process. for example...
21 Nov 2013 by Richard MacCutchan
Look at some of these links[^]. There are many ways of restricting your systems by the security policies in Windows.
14 Jan 2011 by dingelen
Hi,can someone tell me how to reduce/eliminate the flickering and speed up redraw in this project.http://dl.dropbox.com/u/18687229/Versions.7z[^]I've been fiddling with: userpaintdoublebuffersuspendlayoutbegin resize / end resizeThe custom controll GradientGroupBox is...
14 Jan 2011 by _Erik_
Use double buffer wherever you make graphics operations in the paint event.
14 Jan 2011 by dingelen
I've tried double buffering in all places, no improvement. Take a look at the code if you have the time.Thnx
12 May 2012 by emranallan
Make your Application windows phone 7 support for Bi-Directional right to left
17 Aug 2014 by Sivamurugan Perumal
Explore various UserInterface layouts and controls supported by Android
11 Oct 2013 by ASP.NET Community
When the standard toolkit of ASP.Net server controls do not provide the required functionality, Web User controls can be built or used. Web User
12 Apr 2011 by DominicZA
Ok, so this is my problem. I have a custom ASP control that I have put in a Repeater control. My control consists of a CheckBox, a TextBox, and a HiddenField. On the control I have a public method called Save. All I want to do is loop through the controls of the repeater and when it finds my...
12 Apr 2011 by Sarath Reviuri
There is an article in project which might help. Link[^]
12 Apr 2011 by Albin Abel
Hi,If your markup looks something like this where consider your custom control in the place of textbox then '...
10 Nov 2013 by siddesh_bobade
I am working on a project where i need to convert my menu navigation bar from verticl to horizontal plz guid me how to do it ...?
10 Nov 2013 by JoCodes
You can just set the Orientation="Horizontal" property for the menu control.
11 Oct 2013 by ASP.NET Community
Check out the Feature Specifications for Visual Studio 2008 and .NET Framework 3.5. These older documents give you an insight into what features made
4 Nov 2011 by Christopher Devous
I have a site that makes use of the asp.net menu controlWhich works fine except on iPad and...
4 Nov 2011 by Christopher Devous
Well, not sure if this is the "right" way to do it, but I found what appears to be a working fix.Since the menu categories are created in code-behind, I added a null function to the navigate url property:MenuItem Category = new MenuItem();Category.Text =...
29 Mar 2012 by Jani Giannoudis
Adapt properties like visibility or enabling between ASP.NET Controls.
25 Apr 2012 by Razi Syed
Easily bind a class to .NET data controls like GridView, FormView, etc., and get an updated object or list back in the code-behind effortlessly.
6 Jul 2013 by OmerFarukDincer
Hi friends,i have a chart control in my asp.net page, i retrieve data from database and and bind it to chart control. Now what i want is to get the clicked slice or column of chart's X and Y AXIS value and send it to another page using Session or querystring or whatever. if there is a...
25 Nov 2011 by S V Saichandra
Asp.Net Custom Validator Control to validate file size both client side validation and server side validation
30 Oct 2013 by Member 7818637
Hi, I am working on a web application that dynamically loads controls based on user preferences. The Labels and Textboxes are being loaded at run time. When my boss deployed it to a new webserver the label widths were not rendering to the browser but, it works fine for me running it from Visual...
30 Oct 2013 by Sergey Alexandrovich Kryukov
That's correct: on inline elements, width is insignificant; such elements only occupy as much space as it it required to render them.What to do? It depends on the layout you want to achieve. You can modify display type, wrap this element in some other element like div or modify layout of outer...
1 Nov 2013 by Member 7818637
It was the Compatibility Mode in IE10, once I turned it on for that site it worked fine.
11 Oct 2013 by ASP.NET Community
What is ASP.net?ASP.NET is the next generation web application framework developed and marketed by Microsoft based on .NET Framework. But not to be
23 Jul 2012 by Member 9295475
I am working on a website that has a homepage, two pages that send out emails when reports have been entered into the fields, and two history pages. The two history pages contain the past reports that have been submitted and have been stored within a SQL database. I have both of these history...
23 Jul 2012 by db7uk
For forms authentication I would take a look at this link:http://www.asp.net/web-forms/tutorials/security/membership/creating-the-membership-schema-in-sql-server-cs[^]andhttp://msdn.microsoft.com/en-us/library/ff647070.aspx[^]If on the otherhand you are using active directory...
24 Nov 2013 by M.R. Inc
Hello guys,I am having an another issue with this web application I am making.Unfortunately I can't understand why it is doing this.HTML CODE
26 Nov 2013 by M.R. Inc
I was able to sort out the problem by creating 2 List Items from the start. I would preferred not to as it was really not necessary but it works no issue.