Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

Search the Tips
Tip Bank > .NET > C#

C# - Page 3

41-59 of 59     Previous     Next
Structs with Care: Boxing
by Navin Varma
This tip helps guide you in deciding whether an object should be a class or a stuct.
Assign a Default Value to a Password Control in ASP.NET
by Prasad Haridass
Use this code to assign a default value to a password control in ASP.NET.
Export Data Grid Content to an XML File
by Jaya Nehru Kumar
In the absence of any XML support functions, you can use the RenderControl method to extract content from a Data Grid into an .xml file.
Building .NET Projects with the Correct References
by Boris Eligulashvili
This tip explains how to work with the ReferencePath property in your VB.NET and C# projects.
Set Your onclick Event to Occur on the Client Before the Server
by Huang Rickel
Follow these three simple steps to set your onclick event to occur on the client before it occurs on the server.
Manage User Control Values Using Javascript in an .aspx File
by Santhi Maadhaven
Learn how to retreieve and set user control values in your .aspx files using JavaScript.
An Efficient Method of String Concatenation
by Prasad Haridass
A good way to concatenate strings is to use the StringBuilder class.
Access GridView Container Row Items from the Button Click Event
by Jaya Nehru Kumar
Learn how to access GridView container row items from the button click event.
Call a Function or Subroutine with Its String Name Using the Invoke Method
by Parthasarathy Mandayam
While the VB6 function CallByName still works in ASP.NET, you can now also use the Invoke method of the MethodInfo class to perform the same tasks. Find out how.
Visual Inheritance with C#
by Boris Eligulashvili
Microsoft VS.NET provides design-time support for form inheritance. A derived form can be added to your solution by right-clicking on your project in the Solution Explorer window and choosing "Add..." and then "Add Inherited Form…" from the context menu.
Draw a Rectangle Around the Toolbar Button
by Yuriy Bas
The code in this tip draws a rectangle around the toolbar button when a user moves their mouse over it.
How to Determine the Item Selected from a Property Grid Drop-down List
by Vladimir Shaposhnik
In Visual Studio, when you select an item on a form you're building, the Property Grid appears and lets you set various properties (e.g. background color, width, height, text color, etc.) from a two-column table. This tip shows how to know which item a user selects from the drop-down list.
Set Two Items of a Property Grid from the Drop-down List
by Vladimir Shaposhnik
The example in this tip demonstrates the technique for setting two items of a property grid from the drop-down list
Restrict Users to Launching Only One Instance of an Application
by Vimal Kanth
Use this code to restrict users to launching only one instance of an application.
Create and Retrieve a Named DataSet
by Victor Stefanescu
Use this C# function to create and retrieve a named DataSet using an open connection and a command.
How To Add New Rows to a Filtered DataView
by Navin Varma
Find out how to add a new row to a datagrid bound to a dataview with a rowfilter defined.
Use C#'s Reflection to Retrieve Application Information
by Bradley L. Jones
C#'s Reflection capability allows you to reflect a class upon itself to determine the methods or properties it contains.
Processing a Native Window Message Inside a Non-visual Class
by Vladimir Shaposhnik
This code allows you to treat a native window message inside any non-visual class in a library.
Use a Regular Expression to Initialize a String Array (C#)
by A. Russell Jones, Executive Editor
Want to declare and initialize a string array, but tired of typing all those quotes and commas? You can do it with one line of code.
41-59 of 59     Previous     Next
Thanks for your registration, follow us on our social networks to keep up-to-date