C# Corner

Resources  
  • Adding Menu Support to a Windows FormDec 18, 2000. This sample code shows you how to use the MainMenu and MenuItem classes to add a menu and click handler for a Windows Form.
  • Using Delegates to Choose Right FunctionApr 01, 2001. The need to call different class method based on some string passed to class is an old problem.
  • Introduction to JScript.NETApr 09, 2001. We have been hearing the announcement from Microsoft right from PDC2000 that they have realsed new languages viz. C#, VB.NET and JScript.NET.This artice of mine is going to introduce to u JScript.NET.
  • Net DDE to DOTNET RemotingJul 02, 2001. This article travel through time to trace the genesis of Dot Net Remoting right from RPC to RMI till SOAP.
  • A Journey: From Binary to .NET ! ::Part 1Jul 12, 2001. Right now, everybody is discussing about .NET and its future in the near future.
  • 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!
  • Move Grid PuzzleAug 15, 2001. This is a console based application the user will be prompted for move such as L-Left, R-Right, U-Up, D-Down, E-Exit.
  • Super String in C#Aug 20, 2001. Today I realized that I miss those Visual Basic/Visual C++ type operators. You know the ones: Left, Mid, Right.
  • 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.
  • Mapping Objects to Relational DatabasesNov 01, 2001. The application generates C# Class files for each table in a relational database. I have used Mysql and ODBC.NET for this project. The application only supports MySQL right now.
  • Creating Exploded Pie Chart Having Click Through Functionality in C#Dec 26, 2001. In this article I would like to show you code that would create exploded pie chart and implementing click through functionality to that chart.
  • 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.
  • Exocortex.DSP - A C# Complex Number and FFT LibraryApr 08, 2002. Shows how to convert an image from a spatial representation (i.e. picture on the left) to a frequency representation (picture on the right) using a 2D fast Fourier transform.
  • Sorting MultiColumn ListView Windows Forms ControlMay 20, 2002. If you want to sort on the first column of a ListView, simply click the Sorting in the properties Window and choose Ascending or Descending as a value. If you want to do sorting in all the columns of a ListView, you need to write custom sorting using the ListViewItemSorter property.
  • DataGrid Customization: Part-1Jun 25, 2002. In this article, I will discuss some DataGrid customization tips such as how to I get the name and index of the column headers and how do I find out if mouse click right click was on a column.
  • A Virtual Photo Album in C# and .NETAug 05, 2002. This album allows you to drag your images directly from Windows Explorer into the spot you want your picture to occupy. You can also edit the captions by clicking on the labels under the pictures.
  • DataGrid Customization Part-II: Custom Sorting and DataGrid Column HidingAug 13, 2002. How to I get the name and index of the Column headers? How do I find out if mouse click right click was on a column
  • Double Buffer Drawing with DirectDraw: Part1Aug 15, 2002. Because we will be primary focusing on 2D game programming in the first articles, we will use the DirectX7 API which is perfect for its DirectDraw class and simplicity. Don’t worry for not having the right DLL because DirectX8 has full backward compatibility to DirectX7 and the COM object should already be available on your computer if you have DirectX 8 installed.
  • DigitizeAny - A .NET Windows Digitization ToolDec 17, 2002. DigitizeAny uses Win32 API calls to obtain the coordinates of the cursor and then translates to the graph coordinates once set. Since a mouse click would essentially bring to focus the window where it is pointed to, this tool uses the key event to capture the coordinates of the cursor.
  • Pro Developer: Throwing Money Out the WindowDec 18, 2002. It's common knowledge among programmers that most of the ills of the software industry, and most particularly the companies where we work, could be solved by simply letting the technical people make the technical decisions. In fact, that sounds so obvious that you might be tempted to shake your head and wonder what planet I come from. Obviously, since this is so incredibly logical and sensible, it's a given that most companies leave management decisions to managers, and technical decisions to techies, right?
  • DataGrid and Client Side EventsJun 17, 2003. This article shows you how to use DataGrid client side events including mouse over, on click and so on.
  • DataGrid and CheckBox ControlsJun 17, 2003. How to have checkbox that is checked or unchecked depending on a field value stored in the Database, and then allow the user to click on it and record the new checkbox state in the database.
  • Real Life SQL and .NET : SQL Subqueries: Part VIIJan 13, 2004. Welcome to the world of SQL and the huge, growing database technologies of today’s business all over the SQL world. By reading this article, we have begun accepting the knowledge that will soon be required for survival in today’s world of relational database and data management. Alas, for the reason that it is first necessary to provide a background of SQL and cover some preliminary concepts that we need to know, the majority of this article is text in paragraph format.
  • Code Access SecurityFeb 06, 2004. Code Access Security represents a fundamentally different way of controlling access rights to protected resources. Traditionally, permissions such as access to the file system, databases or network were allocated based on characteristics of the user. All processes executed by the user would assume an equivalent set of permissions.
  • Report Generation in .NETFeb 27, 2004. Report generation is an integral part of enterprise application development. Choosing the right kind of report generation strategy decides the success of the application in terms of cost and performance. The white paper discusses some of the key factors that need to be considered when architecting reporting systems in .NET and C#.
  • 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 integrate Google searches into your applicationDec 06, 2004. Google has been able to turn the search business up-side-down within the last five years. Google provides a web service interface which allows you to integrate Google searches right into your application.
  • Sokoban Pro Game in C#Jan 21, 2005. Sokoban Pro is a modern version of the classic Sokoban puzzle game. The game rules are extremely simple, yet the game is very challenging and addictive. The rule of the game is to move all the boxes in the right places. You can only push a box, not pull.
  • Starting With SharepointFeb 11, 2005. Microsoft came up with an idea of "Sharepoint Server", and now it's only a matter of few clicks to build an enterprise-portal. This article shows you how.
  • Multi Selection of DataGrid Rows without Ctrl ClickJul 31, 2005. This article shows how to select multiple rows in a DataGrid without using CRTL.
  • Security Setting for ExcelJan 04, 2006. To run the excel report, security settings are required for excel application because while working with the excel application we are going to use some of the classes for manipulating the data inside the file. This article shows how to grant access or rights to those files.
  • Visual Guard for .NETJan 19, 2006. Novalys announces Visual Guard, which is aimed at setting up user’s profile and permissions for .net application (who is allowed to do what?). The tool easily integrates to any .net application and makes rights/permissions management easier thanks to its administrating console.
  • AJAX Repeater control Feb 19, 2006. AJAX has been in shadows for a decade now but it started buzzing right after the launch of the Google Earth. This article shows how to create an AJAX Repeater control with item, header, footer, alternative item, and seperator item templates using AJAX and ASP.NET.
  • 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#.
  • Understanding Connection PoolingJul 27, 2006. This article is to go in deep in dome key features in the ADO.NET 2 which was shipped with VS 2005. In this article I will go trough one of the key features which is the Connection Pooling.
  • Infragistics UltraWebNavigator Context Menu Integration with JavascriptSep 13, 2006. This article shows one of the difficult functionality of adding context Menu on Infragistics UltraWebGrid, in conjunction with mouse right click.
  • Tip: Disable Validation Controls in ASP.NET Sep 28, 2006. This tip shows how to enable and disable validation control if controltovalidate is visible or invisible?
  • 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.
  • 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.
  • Creating a Context Menu on a DataGridView Mouse Click Jan 17, 2007. This article describes how to create a context menu when you mouse click on a DataGridView control in Windows Forms.
  • Multi-threaded Asynchronous Programming in C#... Getting started.May 12, 2007. Trying to build better solutions and growing as a developer has always been fun for me and I’m always looking for ways to build more scalability and robustness in the software I am writing. I had a revelation that I’ve been doing a lot of C# tweaking but not taking advantage of the core performance enhancements cooked right into C# and it all comes down to one thing: Asynchronous multi-threaded programming.
  • Authentication-Authorization / Windows built-in Role enumerationAug 07, 2007. In this article I will be talking about authentication and authorization. Authentication is the process which uses users cridential to validate against system, where as Authorization is the process the authenticated user has rights to do some specific task.
  • 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.
  • 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.
  • Tracking Clicks by IP Address Using C# and XMLNov 20, 2008. This is a very simple and easy article, which gives an idea for track the IP address and for getting the number of cliks from a particular system.
  • DockPanel in SilverlightDec 05, 2008. The DockPanel control is a layout control that acts as a container for child controls. The DockPanel allows child controls to dock in left, right, top, or bottom sides of the panel.
  • ListBox in SilverlightDec 20, 2008. A ListBox control is an items control that works as a ListBox control but only one item from the collection is visible at a time and clicking on the ListBox makes the collection visible and allows users to pick an item from the collection. This article demonstrates how to use a ListBox control in Silverlight.
  • SharePoint Quick Start FAQ: Part IIJan 14, 2009. In the previous session of SharePoint article we had discussed about the basics of SharePoint. In this session we will - create site / site collection, understand the ready made functional reusable modules, learn how we can display a simple page and later apply master pages of SharePoint, host a Inline code and behind code page in SharePoint, understand the concept of features and understand step by step how to enable / disable a feature, how do display a feature in Admin.
  • 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
  • Recruiting the right candidateMar 07, 2009. Every team member either contributes to or erodes the team’s success. No matter how experienced you are, the art of selecting the right person is more art than science.
  • 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.
  • The permissions granted to user are insufficient for performing this operation. (rsAccessDenied)May 12, 2009. You are unable to access the reporting site for our TFS project. You are able to view individual reports from VS, but you cannot get to the reporting site to edit them. Whenever you try to go to it (By right clicking on Reports->Show Report Site in Team Explorer), you get the SQL Server Reporting Services Error.
  • Enable and Rename SA account in SQL Server 2005/2008Jul 09, 2009. This Article shows How to Enable/Disable sa Account in SQL Server.
  • GridView Multicolumn sortingJul 09, 2009. GridView's built-in sorting can be enabled by setting a data source and AllowSorting property to true. Click on column header to sort based on the SortExpression specified in the Gridview column. However, Gridview does not support multi column sorting which is required in day to day application. So here is how I tried to create one:
  • How to check someone else's checked out code into CVSJul 26, 2009. If you copied the source code you're working on, from another developer on your team and you you're trying to check it in, into CVS, and you can't, because CVS won't let you, this article is just the right solution to your problem.
  • Disable Context Menu in Silverlight 3 ApplicationJul 28, 2009. In this article we will see how can we disable the context menu in Silverlight 3 application
  • 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.
  • 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.
  • How to develop your own Expander Control in SilverlightSep 25, 2009. In this article we will see how to open and collapse a control on mouse click.
  • Custom Context Menu in Silverlight 3Oct 10, 2009. In this article we will see how we can create our own context menu.
  • Silverlight 4.0 feature #1: Right click Mouse events [Context Menu]Nov 23, 2009. This article will give an introduction of mouse right click events on Silverlight controls. Silverlight 4.0 introduces context menu for all the controls.
  • Constructing a Rectangle Object in GDI+Jan 11, 2010. In this article I will explain about Constructing a Rectangle Object in GDI+.
  • The Contains Method and Hit Test in GDI+Jan 13, 2010. In this article I will explain about the Contains Method and Hit Test in GDI+.
  • Custom String Methods using C# Jan 27, 2010. In this article I will explain you about the Custom String Methods using C#.
  • Getting started with Silverlight ApplicationMar 03, 2010. In this article I have tried to give right starting point for Silverlight application development.
  • 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.
  • Mind Puzzle Game in C#Apr 12, 2010. This is a simple game written in C# in which user presses Up, Down, Left, Right arrow keys to play this game.
  • ASP.NET application and page life cycle Apr 19, 2010. In this article we will try to understand what are the different events which takes place right from the time the user sends a request, until the time request is rendered on the browser.
  • Right Click and Context Menu in Silverlight 4 May 09, 2010. In this article we will see how we can use Context Menu to be displayed on Right Click in Silverlight 4.
  • 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.
  • Right click event in Silverlight 4Jun 16, 2010. In this article you will learn how to use Right click event in Silverlight 4.
  • Basics of Data Communication: Part 8Aug 09, 2010. This article will explain, MAN, MAC, MAC Frame Format, LLC, LAN Systems, CSMA and CD, CSMA and CD Frame Format, Token Right, FDDI, Bridge etc.
  • 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.
  • VS 2010 Deployment (Package, One click deploy and Web.config transformation)Aug 24, 2010. In this article we will discuss about 3 important features provided by VS 2010 to ease our deployment task on production and other environment. We will first start with understanding problems with deployment and then move ahead by creating packages , one click deploy and web.config transformation.
  • How-to store FastReport.NET report templates in databaseAug 25, 2010. Some applications require the storing of report templates in a database. This simplifies template support - all reports are stored in one place, and allows to differentiate the access rights to different templates. I noted only one shortcoming of this technique - slight complication of the code in the client application.
  • 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.
  • Have you Questioned Yourself, Why my Browser is too Slow?Sep 17, 2010. To load the web page, your browser will traverse 11 sub systems or steps to display your web content :-) Interesting right !!! Let's see,
  • MSChart - Drilldown Charts: Part IISep 20, 2010. This is simple and easy way of doing is by assigning PostBackValue for Chart Points. We can assign any value as PostBackValue. On Chart Click event handler, we can retrieve this PostBackValue.
  • Develop .NET applications for Windows Phone 7, Windows Mobile, iPhone and AndroidOct 01, 2010. Mobile application development is a challenging task, but within a few years most developers will have to face it. Choosing the right developer platform can make the process a lot easier and faster.
  • Raising/Calling a Control Event of Another Web Form ProgrammaticallyOct 11, 2010. This article shows how to call a control click event of another web form programmatically.
  • Disable List Attach file Option in SharePoint 2010Oct 27, 2010. Here we will see how we can disable the Attachment option in the SharePoint List.
  • Checkboxes in HTML Table with JQuery: Checked All, Unchecked, Enable, Disable operationNov 01, 2010. This article shows how to have Checked All, Unchecked, Enable, Disable operation in checkboxes in HTML table with Jquery.
  • Understanding and Using MVVM Light in Silverlight and Blend - Part INov 20, 2010. MVVM is an architecture that helps you design Silverlight apps right. If you want to simplify your move to MVVM then take a look at MVVM Light. This article is introduction to the MVVM Light Toolkit and how you can start to take advantage of its rich feature set
  • Chapter 4: From 2003 to 2010: Deploying an ApplicationNov 25, 2010. After reading this chapter on deployment techniques, you will be able to Deploy a Web application and an SQL database using Web Deployment Packages. Deploy a Web application using One-Click Publish.
  • How to Add DoubleClick to a ListBox in Silverlight and C#Dec 08, 2010. DoubleClick is not built into the Silverlight Framework so you have to do it yourself. One way is to use a custom behavior. Here is how to create and use a double click behavior on a listbox item:
  • 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.
  • Disable Right Click using JQueryJan 18, 2011. In this article I am discussing how to write a simple script to disable right click on the page using JQuery.
  • Single Click on GridView Row To Redirect and bind Row values in another PageJan 27, 2011. The code in this article can be used to select a GridRow by single click or double click. When user clicks on the GridRow, it will pickup the ROW ID & redirect to another aspx page and bind the values.
  • Disabling Virtual Keyboard in Windows Phone 7Feb 06, 2011. You wish to disable it in a way? This article explains how to do 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.
  • Disable Custom Error Mode In SharePoint 2010Feb 18, 2011. How to disable SharePoint custom error mode. It will be very useful when you work with custom development In SharePoint 2010. By default SharePoint will display predefined errors, not the exact errors raised by the custom code. The following steps will help you to disable custom errors in SharePoint.
  • Search and offline Availability in SharePoint 2010Mar 02, 2011. In this article we will be seeing how to enable or disable search for a site in SharePoint 2010.
  • Determine SharePoint 2010 Upgrade ApproachMar 17, 2011. Planning the right SharePoint 2010 upgrade approach suitable for your organization carries a lot of importance. Here we see pros and cons of each approach.
  • Windows Phone 7 DatePicker ControlMar 28, 2011. This article demonstrates the use of a DatePicker control in Windows Phone 7. By default the DatePicker shows today's date; when the control is clicked a dialog should open for selecting day, month and year; then after clicking done, the selected date should load into the control.
  • Some old school HTML and JavaScript goodiesMar 31, 2011. Most of the articles here are focusing on the C# code running on the server, but that’s of course natural, the site is called C# corner! But hey, we shouldn’t forget what we can do with some old school HTML, JavaScript and CSS. Here comes two, hopefully, useful tip celebrating the client side.

About Disable-right-click

NA

SPONSORED BY

C# Corner Chandigarh DevCon16
Chandigarh DevCon16 is a one-day Developer Conference where programmers, technologists, authors, and members meet, demonstrate, plan, and hang out.
techbash 2016