h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

prevent overriding of a class in .NET

Use the keyword NotOverridable in VB.NET and sealed in C#.

Is it possible to create a shared event in .NET

Yes, but shared events may only be raised by shared methods.

AddressOf in VB.NET operator do

The AddressOf operator is used in VB.NET to create a delegate object to a method in order to point to it.

Difference between the Take and Skip clauses


               The Take clause returns a specified number of elements. For example, you can use the Take clause to return two values from an array of numbers. The Skip clause skips the specified number of elements in the query and returns the rest. For example, you can use the Skip clause to skip the first four strings in an array of strings and return the remaining array of string.

Define use of SqlCommandBuilder

           SQL CommandBuilder object is used to build & execute SQL (DML) queries like select insert update& delete.

Implement inheritance using VB.NET & C#


  • C# Derived Class : Baseclass
  • VB.NEt : Derived Class Inherits Baseclass


Union Used to remove duplicate rows

How many times should a Union be used to Remove duplicate rows
   One Time

Difference between WindowsDefaultLocation and WindowsDefaultBounds


  • WindowsDefaultLocation tells the form to start up at a location selected by OS, but with internally specified size. 
  • WindowsDefaultBounds delegates both size and starting position choices to the OS. 

Create a separator in the Menu Designer

A hyphen ‘-’ would do it. Also, an ampersand ‘&’ would underline the next letter. 

Allow and Disallow insert into identity field

Set IDENTITY_INSERT ON|OFF.
Example(s)
 Allow insert into identity field:
Set IDENTITY_INSERT tbk=l_Customer_Master ON
DisAllow insert into identity field:
Set IDENTITY_INSERT tbk=l_Customer_Master OFF