Click here to Skip to main content
15,887,776 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 Updated

Controls 

9 Aug 2010 by #realJSOP
There are many approaches to doing what you need to do. This is where you use that skill you haven't developed yet - analysis. The XML you've provided is simple in its content, and it isn't that hard to work out what you need to do. Beyond that, nobody here is going to actually write the...
7 Dec 2010 by #realJSOP
The button appearance in MFC is controlled by the current theme running on the underlying OS (or at least it used to be that way a few years ago).If it's still that way, if you want to change a button's appearance, you have derive a new class and override the OnPaint event.
15 Dec 2010 by #realJSOP
It's no easier because a proper control can be customized in the designer, and when you start dealing with the designer, things become mcuh more convoluted.If it's a special form, just put it into a Library assembly (DLL).
20 Feb 2011 by #realJSOP
Maybe you could try putting the thread abort calls into the destructor of the custom control, or somehow hook the parent form's Closing event.
16 May 2011 by #realJSOP
You simply add a reference to the DLL in your project.http://msdn.microsoft.com/en-us/library/wkze6zky(v=vs.80).aspx[^]
12 Aug 2011 by #realJSOP
The Form has a Loaded event. You can use that handler and enumerate through the controls and if you find a textbox, do whatever you need to do.
30 Nov 2011 by #realJSOP
Try using Environment.SpecialFolder.MyComputer, set the SelectedPath, and then call ShowDialog(). I did the following and it worked fine:FolderBrowserDialog dlg = new FolderBrowserDialog();dlg.RootFolder = Environment.SpecialFolder.MyComputer;dlg.SelectedPath = @"d:\dev";dlg.ShowDialog();
29 Dec 2011 by #realJSOP
0) A RichTextBox doesn't do html. 1) The Silverlkight RichTextBox control isn't really a RichTextBox control. The "rich text" it displays is based on xaml formatting - NOT html.
6 Nov 2018 by #realJSOP
should i be doing this with data binding because this is WPF? Yes.
15 Jun 2019 by #realJSOP
0) unless you’re using .Net, this will never work. 1) even if you do use .net, you’d have to make extremely heavy use of reflection. As a result, your app would absolutely suck in terms of performance. 2) if the controls you’re using ever become deprecated and disappear from your frameworks,...
3 Dec 2021 by #realJSOP
The bound collection property has to be public, or it won't bind. public class MainWindow: Window, INotifyPropertyChanged { // put your INotifyPropertyChanged implementation here // private...
30 Mar 2011 by #realJSOP
First, what are you trying to accomplish by setting TopLevel to false? And why are you calling BringToFront()? When you create a modeless form, it automatically shows up (it's brought to the front).Second, it sounds like you don't quite understand the nature of a MDI application, nor the...
15 Mar 2011 by _Ashish
In most of the case UpdatePanel is a good choice, it is easy to use and saves your lot of partial-page rendering script generation time.yet there are alternate ways.1. You may implement the ICallbackEventHandlerpublic partial class CallBack_DB_aspx : System.Web.UI.Page,...
16 Jun 2016 by _eol_
This article presents the minimal code necessary to display a hierarchical tree using Popups.
14 Jan 2011 by _Erik_
Use double buffer wherever you make graphics operations in the paint event.
9 Oct 2013 by _Noctis_
Quick tip for forms/windows/views where save/insert/cancel buttons are used
7 Feb 2012 by _Q12_
In a webControl, when the mouse cursor is "Hand" (usually over links,images), I want a custom contextMenu to be on or off. I tried to make something but is not working [the ContextMenuStrip is always showing,when I right click]. Why is this happening?here is the code: public...
1 Aug 2012 by _Zorro_
Hi,Is this an ASP.NET question?I don't think you can override your OS controls. The only way I know is by rendering your own control, but creating an input from scratch is going to be a though task because you won't be able to inherit from the TextBox class.You'll need to handle your...
4 Mar 2020 by A. J. Bozdar
Could you please tell me how second loop or the if statement breaks here? int outer; int inner; for (outer = 2; outer
30 Jun 2014 by Abdallah Al-Dalleh
Hello AllI have the following ListView
9 Sep 2014 by Abdallah Al-Dalleh
Hello allIn my asp.net application I use one master page for all pages. In some page I want to get a control from the previous page and get a value from it, I did it using this: rblOperation.SelectedIndex =...
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...
29 Sep 2011 by Abhi Lahare
You need to sink the Web Browswer events using connection points in your code. This [^] may give some pointer to you.
15 Oct 2010 by Abhinav S
Some links given here[^].
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.
18 May 2011 by Abhinav S
You need to use a TimerCallBack delegate [^] that executes once the time elapses.To capture the screen, you can look at the following link[^].
19 Jan 2014 by Abhinav S
300 controls = you should create them dynamically and name them through code.
9 May 2015 by Abhinav S
Answers from here[^] might help you.
30 Nov 2012 by Abhishek Pant
Hi,This will help you-Working with different dialog controls in VB.NET[^]The Open File Dialogue Box[^]The SaveFileDialog Control[^]Font Dialog in VB.NET[^]The FolderBrowserDialog Control[^] and FolderBrowserDialog[^]The ColorDialog Control[^]and more help on controls refer More...
7 Nov 2013 by Adam Zgagacz
ComboBox extension methods for binding with Enum types
30 Nov 2011 by Addy Tas
Hi,I think you need to take a look at: Environment.GetFolderPath(Environment.SpecialFolder).If you feed the result of this call to the FolderBrowserDialog you should be OK.for more detail info on the GetFolderPath: http://msdn.microsoft.com/en-us/library/14tx8hby.aspx[^]Cheers, AT
26 Jul 2013 by Adhiraj Jaryal
I've made this vdeo, just now..... Hope you will be benefited ... Have a nice time.....http://www.youtube.com/watch?v=LAHkjpZxTiM[^]
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...
18 Feb 2015 by agent_kruger
Recently I had developed a user control by inheriting the Textbox in which I have just added 1 property "isValidate" whose data type is boolean. Now the problem I am facing is, when I write "this.ActiveControl" I cannot see the "isValidate" property as the "Control" class does not posess the...
25 Aug 2013 by Ahmad Abd-Elghany
hello , my problem is simple .it's Questions and answers page about 17 question with it's answer ,with two text boxes one for question and on for answer.i bind the questions at the PageLoad from List method .i have a repeater control with one itemtemplate containing the two...
25 Aug 2013 by Ahmad Abd-Elghany
and this the end of the developer who forget to put the !IsPostBackin the pageload :D
13 Oct 2010 by Ahmad abdallah
Hello Friends. Simply i need Nice Histogram control for my project, any one can help me with that ? thx in advance
23 Jul 2018 by Ajcek84
Implementation of radar chart for various .NET platforms
15 Jul 2018 by Ajcek84
Open source library for music engraving in desktop, mobile and web applications
5 Feb 2012 by akamper
HelloI have implemented a custom Control (Graph) for my own custom Designer. It works well so far.Now I would like to add Smarttags to this control to get access to the most important properties.Therefore I implemented a ControlDesigner whicht implements a DesignerActionList and so on...
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...
7 Dec 2011 by Akos Orban
A TextBox for numbers with built-in mathematical expression evaluation
3 Jul 2011 by Albert Holguin
You just have to derive your own classes based on the MFC controls/dialogs. They're object oriented, so adding controls within a control is really nothing more than adding an object within another object.
13 Jul 2011 by Albert Holguin
OnInitDialog() is a method that is called immediately after the creation of the parent CWnd and all of its children. That's usually the place where you want to do initialization of all GUI components (or even any point after that would be valid, but that's where the framework specifies you...
11 Nov 2013 by Albert Holguin
In case you don't happen to know this (maybe you do, maybe you don't)...There's really no need to use SVN within VisualStudio... it doesn't buy you anything and you can easily use it outside of the IDE. The IDE keeps track of when the files are updated outside of it and will ask you if...
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 '...
16 Mar 2021 by Aleh Baradzenka
In this article, you will learn about a control that is necessary for the partition of the dialog, main or child window of your program by several parts.
25 Mar 2021 by Aleh Baradzenka
In this article, you will learn about an adjustable control that has zooming and scrolling tabs, dragging with the mouse, custom drawing and much more.
16 Mar 2021 by Aleh Baradzenka
This control is another kind of tab. Tabs are displayed as horizontal stripes and can be collapsed into buttons. Each tab is assigned its own window, which is shown when you click on the tab.
18 Nov 2013 by Alexanbu
You can use the IsDefault property of the button: Search!
28 Sep 2011 by Alexander Chernosvitov
AntiBot control using HTML5 rotating feature
7 Nov 2013 by Alexander Chernosvitov
ActiveX component for 3D visualization, embedded in different client applications.
20 Dec 2013 by Alexander Sharykin
I assume that you are using WinFormI have created DemoForm and added on it FlowLayoutPanel (panel) and NumericUpDown (numericUpDownMargin)here is some codepublic partial class DemoForm : Form { private List pictures; private int n = 16; public...
12 Jul 2017 by Alexander Sharykin
WPF HexGrid Panel
25 May 2011 by AlexCode
Block any way for the user to change the textbox value in the DatePicker, either from the calendar popup or by direct input on the textbox.
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...
7 Aug 2012 by Ali_100
I want to run the dll "Microsoft.web.ui.webcontrols.tabstrip" in vs2010 How can i do that?
28 Jun 2013 by Ali_100
http://postimg.org/image/e4fef...
5 Oct 2011 by ali_web
HelloI need a Textbox and a Lable which could Mask date and money values whit my ideal format in .Net3.5.examples for date: 1365/05/30(Year/Month/Day) Right To Left Directionexample for money: 300,000(each 3 digit one comma from right )I want to have standard controls used in it and I...
28 Nov 2010 by Alimjan Yasin
I am working on a windows mobile application written with C++ and MFC . I used CTabCtrl to display for dialog within it. and I want to make it looks good decided to display image on tab . but it display not good ,only a parts of image displayed and left and right part of tab item is white ,...
3 Dec 2010 by Alimjan Yasin
dmageiras , could you give me an simple code or could you tell me specificly? how to resize and how should be the image ?
15 Mar 2012 by Alimjan Yasin
I defined a ControlTemplate within the ResourceDictionary, the ControlTemplate like that
29 Feb 2012 by Alister007
use dotnetbar controller for your targethttp://www.devcomponents.com/dotnetbar/[^]
27 Nov 2017 by Altaf Ansari
Converting XML Data into DataTable and Exporting DataTable into Excel File
28 Sep 2011 by alttaf
I have web browser control and I have acess to the IHTMLDocument interface. I am trying to catch events that occur within a page in my web browser control but am not sure how to get a handle to these events.What I want to do is:1) navigate to a website that uses javascript to navigate...
5 Oct 2011 by alttaf
I have managed to get some of the implementation working. I am getting the name of the javascript function I want to listen to directly from the script file as in my implementation I will most of the time know this and for purposes of getting something working I have hard coded a goToNextSld...
10 Oct 2011 by alttaf
Currently I am able to put and get properties of each of the buttons on my javascript page. I will store the variant arguments of the DISPATCH_PROPERTYGET Idispatch in a separate controller class. My question is how can I implement an event sink in the webroswer that will get the javascript...
25 May 2016 by AmalRaj@Sync
I have a usercontrol which is derived from control, can i override the TabStop property to have some modification.?If so please let me know, how to override the tabstop property in my usercontrol.What I have tried:i have tried to override the tabstop in my usercontrol, but the tabstop...
3 Mar 2011 by Amit Kumar Tiwari
It is working dude.I used this codeprotected void chkBox1_CheckedChanged(object sender, EventArgs e){ CheckBox chk = (CheckBox)sender; Response.Write(chk.Checked.ToString());}
14 Jun 2012 by AmitDutta_Bokaro
Coding need to be done at rowdatacommand event of gridviewwhen the command arg is delete create a trainee object of same type what u have taken in ur case ( i hope you must have taken label in this case )check if the text is not present or what ever ur logic is to check if trainee present...
2 Aug 2012 by amitkarnik2211
as far as user Interface is concern I find Visual web Gui very user friendly and artistic too Click here[^]Hope this might help
24 Feb 2022 by Andre Oosthuizen
Seriously??? Question mentions e-mail, no code shown. Question mention PHPMyAdmin which is database management, nothing to do with code to interact with database. Has your city banned Google? If not, you can try THIS link for starters. Maybe...
18 Mar 2012 by André Kraak
A quick search gave this Code Project article AJAX DropDownList[^]. Are you referring to this article.The source code[^] can be download using the link at the top of the article.Any questions concerning the use of the code can best be asked at the article itself.Use the "Add a Comment...
28 Dec 2010 by AngelLoose
I want to know how tu use the UserControl.I add an UserControl1.cs from the item list of the Add New Item-WindowsForm.The code of the document below:using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using...
29 Dec 2010 by AngelLoose
http://msdn.mi...
24 Feb 2012 by Aniket Yadav
Have you triedtxtTextBox.ForeColoe = Color.Red;If So then you have to replace your textbox with RTB(rich Text Box).You will able to achieve what you are trying to achieve here.
31 Jan 2012 by Ankur\m/
Dll just for this method? Why not create an internal (or public as you want it to be available through a dll) method and your application will be able to access it from anywhere?Or did I get your question wrong?
9 Jan 2016 by Ankush Bansal
Trick to draw a border of any color and width around any winform control
28 Feb 2011 by Anton Lesnichenko
Add AllowsTransparency="True" and there will not be a border.
23 Mar 2012 by Anton.Kurkov
Hi All,I'm facing a problem with DocumentViewer GoToPage() method.I want to navigate XPS document to specific page number while showing the control, but it navigates to wrong page number during initializing the window. Moreover, if I call GoToPage() later, e.g. in click button handler...
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
30 Aug 2014 by AnvilRanger
The table control does not support server-side events. You need to define something on the client side or use the appropriate control inside the cell.If I remember correctly you cannot double click on controls inside the server table. I seem to remember this issue from several years ago....
17 Jun 2012 by Apemania
C# Forms RichTextEditor with custom hyperlink with Outlook address like text entities, custom popup listbox, and a screen tip.
25 Apr 2012 by Arash Sahebolamri
PersianDate type, and two WPF controls (PersianCalendar, and PersianDatePicker) for working with Persian dates
26 Jun 2012 by argyrolo
Hello to everyone...I would like to implement my own "guitar pro" or simmilar project in asp.net c#(please see the link for those who dont know this program "http://www.guitar-pro.com/en/index.php[^]) I dont know from where i can start and what controls and other elements i should use,...
13 Jun 2011 by Arik Poznanski
The basics of the Windows Ribbon Framework - a rich command presentation system that provides a modern alternative to the layered menus, toolbars, and task panes of traditional Windows applications.
6 Sep 2014 by ArmanKhan19
i have panel control on ParentForm, i opened the ChildForm on panl control and from ChildForm i want to open ThirdForm on panel control of ParentFormi used this code on the button of ChildForm ParentForm panel = new ParentForm(); ...
10 Sep 2014 by ArmanKhan19
i used this instead of my last code and it works. ((System.Windows.Forms.Panel)Application.OpenForms["ParentForm"].Controls["panel_Main"]).Controls.Clear(); ThirdForm third = new ThirdForm(); third.TopLevel = false; ...
30 Apr 2012 by Arpad Pandy
This is an alternative for "Silverlight Extended Canvas Control to Crop Images"
19 Nov 2010 by arpoarpo
Suppose you are developing a win form application using Visual Studio 2010. Your app needs to use a month calendar where you can pick a desired day and pick a desired color and assign that color to that day, after that, the background color of the chosen day will be the chosen color. What I mean...
24 May 2011 by ArtificerGM
What's wrong with using built-in collections?Sub CustomControl_PreRender(control As UserControl) Handles CustomControl.PreRender Dim ctrl as UserControl For Each ctrl in UserControl.Controls If Ctrl.Invalidated == True Then Ctrl.Render() End If ...
9 Dec 2012 by arul watson
Hi ,I am totally new to C# sharp coding - i am trying to take screen shots of webpageswhose URLs are initially picked up form a notepad uploaded on the same formAs i read through the web_browser control in MSDN.. i did arrived at following code - yet when i run, i get only white...
20 Dec 2012 by Arunprasath Natarajan
Hi, I am new at ASP.Net and I am wondering why we use literal. I read some documents and they say that literal's text value can be changed programatically but we can change a label's text property programatically too...Like Label1.Text="anything";So can you please explain me briefly, why...
2 Aug 2010 by Ashish Kaila
Illustrates UI modelling in WPF, leveraging templates.
1 Jan 2011 by Ashish Kaila
A docking window solution using WPF as part of Synergy toolkit
1 Jan 2011 by Ashish Kaila
Learn how to leverage UI automation in testing your UI and also to support accessibility features
14 Apr 2011 by Ashishmau
set AutoPostBack="true" property of your combobox