C# Corner

Resources  
  • Adding Images to ToolBar ButtonJan 29, 2000. An article shows you how to add images and tooltips to the toolbar buttons.
  • Tutorial: Working with Toolbars in C#Jan 30, 2001. This tutorial explains you how to add toolbars to a form, load images to the toolbar buttons, and writing event handlers for toolbar buttons.
  • Interactive ButtonsFeb 26, 2001. By using control properties, you can give your program an interactive look as you see on web sites.
  • Buton Viewer: View ImagesFeb 27, 2001. Well, In .NET, the Image class is a wonderful class to view images. No matter what control you have, you just set the Image property of that control to an image and the control will display the image. Neat?
  • Drawing With no OnPaint MethodAug 09, 2001. In this sample example, I draw GDI+ objects on button click.
  • Mastermind Game in C#Aug 10, 2001. This is the game of Mastermind written in C#. The game is played by clicking on a set of 4 colors and then hitting the score button. Colors can repeat themselves in this game, so be wary!
  • Button Chaser ProgramAug 29, 2001. Here is a fun program which causes the user to chase a button around the screen.
  • Image Shuffler Game in C#Oct 01, 2001. This game asks for a Image file to be Opened When the file is opened and shuffle button is clicked the image will be Shuffled ie rotated clockwise the task is rearrange the image in the Correct order using the button provided.
  • Working with Windows Forms ControlsOct 12, 2001. This program shows you how to use Windows Forms controls such as Check Boxes, Radio Buttons, and Combo Box.
  • Adding Controls to Windows Forms at RuntimeNov 13, 2001. In this example I'll show how one can create and add controls to their Windows Forms at runtime.
  • How to create a "ComboBox button" in a toolbar in .NETNov 20, 2001. You can actually put a ComboBox in your toolbar by just dragging a ComboBox from the toolbox onto the toolbar but if you want the ComboBox to be one of the toolbar buttons, you are out of luck using the regular old ComboBox. One way around this is to use the DropDownMenu style of a ToolbarButton to create a pseudo-ComboBox.
  • Interactive Shaped FormsNov 29, 2001. This Demo show how to create shaped form and customized buttons using Region, GraphicsPath and picture control and using picture control to play animate pictures.
  • Developing a Record Navigation Form with Unbound ControlsDec 26, 2001. Developing a record navigation form with unbound controls. The form enables you to navigate through the records one at a time. In this application we have used a combo box, two text boxes and various command buttons.
  • Drawing Shapes using ThreadingOct 25, 2002. This is simple multi-threading program that draws circles and rectangles. Each shape is handle by individual thread that created every time you press start button. Using sleep method on each thread we can change the speed of each shape.
  • Consumer/Producer Multithreaded ProgramNov 04, 2002. This is simple multi-threading program that adds and removes elements in an ArrayList. Producer button will creates a producer thread that adds elements in to the ArrayList. The maximum number of elements can be added to this ArrayList are 100 elements and the producer thread has to wait until the consumer thread/threads (creates by pressing consumer button) removes elements from the ArrayList. Then Producer thread starts to add more elements to the ArrayList.
  • Enhanced XP Button ControlDec 12, 2003. The enhanced XP style button is very easy to use and it supports rectangle, circle or ellipse shape with image and different colors. This control also inherit most of the properties from the Forms.Button.
  • Implementing Security Access Rights in ASP.NET ButtonMar 24, 2004. In Web based Application, each of the users have different privileges and access rights based on their roles. Each of these roles can have read or write access for different Web pages.
  • How to Export Crystal Report in ASP.NETMay 06, 2004. When using Crystal Reports in ASP.NET, the CrystalReportViewer control does not have the export or the print buttons like the one in Windows Form. We can still achieve some degree of export and print functionality by writing our own code to handle exporting.
  • Short Cuts for Toolbar ButtonsJul 26, 2004. This tutorial tells the story about "How to create short cuts for toolbar buttons?".
  • Localizable Message Box ControlApr 02, 2005. This is localizable MessageBox control. Buttons on standard windows message box controls are always Yes, No, Abort, Cancel, OK, Ignore, Retry. I needed different text on my message boxes so I decided to develop custom message box control.
  • Using the AnyButton to Create Dynamic Image ButtonsJun 07, 2005. This article describes how to use the AnyButton server control and explains a few extra features.
  • Using the AnyButton to Create Dynamic Image ButtonsJun 07, 2005. This article describes how to use the AnyButton server control and explains a few extra features.
  • Adding Picture To Button On OutLook CommandBarAug 24, 2005. This article describes the process to add a picture on a button on an Outlook Commandbar while using Explorer or Inspector.
  • ColorReliefButtonDec 14, 2005. My idea was to create a button that can be used as a colourful decoration for any application. The look of the ColorReliefButton can be determined by changing property values. The main attraction should be a cool look (Relief) of the controls text. Like this almost any font (TrueTyp) can be used to decorate a button and there is no need to use bitmaps.
  • SpringButtonApr 04, 2006. This tutorial and the source code attached with it shows how to create nice looking buttons using C#.
  • Using static variable and Activated Event for Building "Home" Button of Windows applicationApr 10, 2006. In this tutorial I will share experience how , just with the help of a few clicks and a few lines of code , to build a windows application with "Home" button, that allows to return to "Home" form (in fact to close all opened forms by one click) . The examples are written using C#.
  • Introducing ASP.NET 2.0Jun 14, 2006. In this article, the author examines the fundamentals of ASP.NET 2.0 with the help of code snippets.
  • User Confirmation before Deleting Items in ASP.Net 2.0Oct 12, 2006. This article describes how ASP.Net 2.0 allows setting client-side functions for Button controls through the use of the OnClientClick property and additionally, the event can be handled on server-side depending on the user response.
  • Tip: How to Export a Crystal Report to a PDF file Programmatically in ASP.NET?Oct 23, 2006. You can export a Crystal Report to various formats using CrystalReportViewer’s Export option. However, there are occasions when you want your users to see the report direct in PDF format in the browser as soon they click the Report button in your application.
  • Simple MP3 PlayerNov 20, 2006. So many people are asking how to play MP3 and WAV files that I put together this simple player. One button and six lines of code. Thats all there is.
  • Extending the ASP.NET ImageButton ControlDec 18, 2006. This article describes an easy approach to extending an existing ASP.NET control; in this example, the standard toolkit’s Image Button control is extended to support roll-over effects. Given the standard control already contains existing support for both server side click events and client click events, the control is well furbished prior to the addition of the roll-over effect.
  • C# ASP.NET Server Control: Rollover Image ButtonJan 16, 2007. This article demonstrates how to extend the ImageButton ASP.NET server control to provide rollover functionality.
  • Bulk Uploader in ASP.NET 2.0Mar 28, 2007. The FileUpLoad control enables you to upload file to the server. It displays a text box control and a browse button that allow users to select a file to upload to the server.
  • WPF Database Communication Adding new Record to the DatabaseSep 06, 2007. WPF Database communication Adding new record to the database (XAML-MS-Access), I have a XAML form with FirstName, LastName, Email & Contact fields in it on click of submit button it will first check if the same email address is exists in the table else it will add new record I have made use of OleDbTransaction to perform add functionality.
  • Cross browser conditional validationOct 25, 2007. This article show how to show/hide textbox with required field validation on radio button click in a master page.
  • Implementing a Simple Silverlight ControlOct 30, 2007. This article shows how to implement a simple button control using Silverlight 1.1 and C#.
  • Windows FormsApr 19, 2008. This article shows you a small game by using simple text box ,buttons and dropdown list.
  • Programmatically Trigger Events of a Control in SilverlightJul 17, 2008. This article shows you how to fire the click event of a Button control programmatically in Silverlight 2.0.
  • RadioButton in WPFAug 27, 2008. This tutorial shows you how to create and use a RadioButton control available in Windows Presentation Foundation (WPF) and XAML.
  • RadioButton in SilverlightOct 07, 2008. This tutorial shows how to create and use a RadioButton control in Silverlight 2.0.
  • Creating a Button with Silverlight 2 and Expression Blend 2Oct 31, 2008. This article shows how to create a Silverlight 2 application with Expression Blend 2, add a button to it and set its various properties.
  • Creating nice tab feature in SilverlightNov 26, 2008. This article uses cool animation in silverlight to create a tab bar like look.
  • Hyperlink in SilverlightDec 24, 2008. This article demonstrates how to use a hyperlink button in Silverlight using XAML and C#.
  • Interesting things to do with Silverlight 2Jan 05, 2009. This article will show you how you can experiment with Silverlight.
  • Button Control in WPFFeb 02, 2009. This tutorial demonstrates how to create and use a Button control in WPF using XAML and C#.
  • Uploading Multiple Files in ASP.NET 2.0Mar 06, 2009. In ASP.NET 2.0, the FileUpload control enables users to upload file from your web pages. Here I going to show how can you upload multiple file on a single button click in ASP.NET 2.0
  • Using a Combobox to Select ColorsMar 19, 2009. This is a short article on how to use a combo box control to display and select all the named colors.
  • GridView Paging and Sorting using AjaxMar 27, 2009. In this article i am going to demonstrat how to enable browser back button. You will also learn gridview control and how to use paging, sorting using AJAX.
  • Uploading Multiple Files in ASP.NET 2.0: Part IIMar 27, 2009. In ASP.NET 2.0, the FileUpload control enables the users to upload the files from your web pages. Here, I am going to show you, "how can you upload multiple file on a single button click in ASP.NET 2.0." Here, in the same article I am adding one more functionality, i.e. the user can get the right to upload any number of images by clicking on Add button.
  • Navigation Web User Control May 22, 2009. Navigation Web User Control this control create navigation buttons at run time so the user can navigate on the datalist or any other controls and the developer can change the aligment and sepration bettween links or show and hide last ,first,previous,next . this control get his style from it's container
  • Button Control Template In Silverlight 3Jul 07, 2009. Using Blend 3 Creating Button Control Template in Silverlight 3
  • Animating States of Button In Blend 3Jul 12, 2009. Creating a Custom Button and changing the State Animation in Blend 3 in Silverlight
  • Glassy Button In Silverlight 3Jul 19, 2009. Making Glassy Buttons In Silverlight 3.
  • Creating Style Buttons in Silverlight 3Jul 21, 2009. In this article we will be discussing how we can make some designer buttons.
  • Radio Button Grouping in Silverlight 3 Application Jul 30, 2009. In this article we will see how we can achieve multi grouping in Silverlight.
  • Developing a New Control Using VSM in Silverlight 3Jul 31, 2009. Silverlight provides a Visual State Manager (or VSM) that manages different states as users interact with controls. For example, you might want to change the background of the Button as the user mouses over it and make it look slightly bigger or smaller when a user clicks it. All of this can be done using the Visual State Manager. The discussion that follows will walk through show how custom templates and VSM states can be created visually.
  • Ajax with Postback RitalinAug 01, 2009. Recently I noticed a simple and nice control giving more functionality to partial postback, it is Postback Ritalin. This is built on top of ASP.NET Ajax extensions and offers a nice solution to a common problem i.e. disabling button during partial postbacks.
  • Handling the power off button in Pocket PC in C#Aug 18, 2009. In this article we will see How to handle the code if power is being switched off in Pocket PC.
  • Programmatically Swapping Mouse ButtonsSep 06, 2009. In this article we will learn how to swap mouse buttons programmatically - to make the left button acts as the right and vice versa.
  • HyperLink Styling as Button in Silverlight 3Nov 07, 2009. In this article I will show you how can you style your Hyperlink to look like a Button.
  • Working with Radio Button control and Image in Silverlight 3.0Nov 16, 2009. In this article, I will explain about how to work with Radio Button control of Silverlight. I will also explain how to rotate image in silverlight.
  • Radio Button in Silverlight 3.0 Data GridNov 19, 2009. In this article, I will explain how to put Radio Button as one of the column in Silverlight Datagrid. I will also show how to work with radio button as column of Datagrid.
  • Hyperlink Text Wrap In Silverlight 3Nov 19, 2009. In this article we will see how we can wrap a text in Hyperlink Button.
  • Radio Button Column in Datagrid in Silverlight 3Nov 24, 2009. In this article we will see how we can add a Radio Button Column to the DataGrid in Silverlight 3.
  • Hatch Brushes in GDI+ Jan 25, 2010. In this article I will explain about Hatch Brushes in GDI+.
  • Regions, Nonrectangular Forms, and Controls in GDI+ Jan 28, 2010. In this article I will explain about the Regions, Nonrectangular Forms, and Controls in GDI+.
  • Facebook Connect Visual KitJan 31, 2010. This article describes commercial set of ASP.NET controls used to make easy integration of Facebook features in ASP.NET web site.
  • Making an Image SlideShow in WPF: Part IIMar 05, 2010. In part I of this article series we have seen the preview of the application and we created a ListBox that has Customized ItemContainer and ItemPanel. In this article we will see how next and Previous Buttons are added to the ListBox.
  • How to create Event Handlers in ASP.NET Mar 16, 2010. In this article I will explain about creating Event Handlers in ASP.NET.
  • JQuery Event PropagationMar 19, 2010. In previous article, we looked into events present in JQuery. In this article, we will cover JQuery event propagation followed by firing events like button click through code.
  • Detecting Refresh or Post back in ASP.NET Mar 28, 2010. There are situations where we would like to detect if the post back is from a form interaction (i.e. submit or button clicks) or is it by hitting the browser F5 refresh button.
  • Creating Array of PictureBox controls in C#Apr 23, 2010. In this article, I try to create Array of PictureBox controls, you can create array of Labels and Buttons as my example.
  • Using Radio Button in GridViewMay 12, 2010. In this article I am going to give you a brief explanation regarding how to use a Radio button in gridview.
  • Creating a Button at Run-time in C#May 13, 2010. Creating a Button control at run-time is merely a work of creating an instance of Button class, set its properties and add Button class to the Form controls.
  • Set a Button State in C#May 18, 2010. This code snippet shows how to set a button state in Windows Forms.
  • Display an Image as Button Background in C#May 19, 2010. This code snippet shows how to set an image as background of a Button control using C#.
  • Creating Button Style at RuntimeMay 24, 2010. In this post, I will show how to apply a style at runtime to a button.
  • Button in C#Jun 01, 2010. Button class in Windows Forms represents a Button control. A Button control is a child control placed on a Form and used to process click event and can be clicked by a mouse click or by pressing ENTER or ESC keys.
  • Understanding Message Box in Windows Forms using C#Jul 12, 2010. MessageBox control displays a message with specified text. A message box may have some additional options including a caption, icon, and help buttons. In this article, I will discuss how to use the MessageBox class to display messages in Windows Forms and C#.
  • Toolbar in C#Jul 18, 2010. Toolbar control is not available in Toolbox of Visual Studio 2010. ToolStrip control replaces Toolbar in Visual Studio 2010. But for backward compatibility support, Toolbar class is available in Windows Forms. In this article, I will discuss how to create and use a Toolbar using Toolbar class in a Windows Forms application.
  • Radio Button in C#Jul 20, 2010. A RadioButton control provides a round interface to select one option from a number of options. Radio buttons are usually placed in a group on a container control such as a Panel or a GroupBox and one of them is selected.
  • Ellipse in WPFAug 12, 2010. This is a simple article to represent how to create Ellipse in WPF.
  • Disable a submit button during Post BacksAug 23, 2010. This blog will help you with a small sample. You can restrict multiple button submission by using method ClientScript.GetPostBackEventReference.
  • File Download with save as dialog box from browserSep 14, 2010. Every programmer will get into this scenario where they needs to download a file from browser with a direct button click or downloading a file after some business functional process. I will show you how.
  • Using Tools and Windows in Expression Blend 2.0Sep 14, 2010. This article is a basic introduction of Expression Blend 2 and how to use various tools in Expression Blend. I am using Expression Blend version 2.0.
  • How to use Tool Menu in Microsoft Expression BlendSep 15, 2010. Tool Menu in Microsoft Expression Blend has the option for Creating Layer, Make Button, Make Control, Make Image 3D, Make Brush Resource, Edit Brush Resource, Font Manager, Options.
  • Login Page in Expression BlendSep 16, 2010. In this article I have designed login page, which can be used by the user of the site freely.
  • MSChart - Drilldown Charts: Part IIISep 21, 2010. This part of article will helps in doing drilldown on single Chart only. There is no change in logic, only rearrangement of code lines and also a button introduced to plot master chart again back from .xml file after drilldown.
  • How to use Facebook Share functionality in ASP.NETOct 18, 2010. This article demonstrates how to use Facebook share button functionality with master page or without master page in asp.net.
  • Animation in WPF using DynamicResourceOct 29, 2010. Here I am describing about how to apply the animation for button control.
  • Multitasking or Tombstoning and Isolated Storage in Windows Phone 7 Nov 26, 2010. Windows Phone 7 manages multiple active applications by implementing a stack. In a sense, this application stack extends the page stack within a single Silverlight program. You can think of the phone as an old-fashioned web browser with no tab feature and no Forward button. But it does have a Back button and it also has a Start button, which brings you to the Start screen and allows you to launch a new program.
  • Standard Silverlight Button's for Windows Phone 7Dec 09, 2010. The standard Silverlight Button is much more flexible than the ApplicationBar buttons, as well as being easier to use.
  • How to create custom button in SharePoint 2010 Ribbon User InterfaceDec 13, 2010. In this article we will be seeing how to create a custom button in the SharePoint 2010 Ribbon user interface.
  • Toggle Button and Panel with Attached properties in Silverlight for Windows Phone 7Dec 13, 2010. You’ve probably noticed a new style of toggle button in some Windows Phone 7 screens.
  • How to create custom button in SharePoint 2010 Edit form Ribbon User InterfaceDec 13, 2010. In this article we will be seeing how to create a custom button in the SharePoint 2010 Edit form Ribbon user interface.
  • Create table at run time in Database by using ASP.NETDec 16, 2010. This article explains how to create a table in Database on Page_Load or on a click of button.
  • Glass Button in Blend with MouseOver and Pressed StatesFeb 01, 2011. Glass buttons can add a lot of color to a page without carrying heavy visual weight. Creating these buttons is very quick and easy in Microsoft Expression Blend.
  • Working with Routed Event in SilverlightFeb 04, 2011. In .NET we all are familiar with events, which are messages that are sent by an object, which can be any Silverlight element, like button, textbox etc., to notify code that something significant has happened. So in a typical .NET application, the control which fires an event also raises it / handles it.
  • Navigation using Windows Phone 7 SilverlightFeb 14, 2011. This article describes how to use Navigation in Windows Phone 7. In this article we'll see how to navigate from one page to another upon the click of a button and how to send a value using a query string from one page to the other page.
  • Performing Button or Link Click Server Side Functionality into a New WindowFeb 15, 2011. A common scenario here is that we have a button (or link) that when clicked we want some server code to fire but at the end of the request we actually want to display the content in a new window.

About button

NA

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!
Download Free eBooks