• Difference Between NTLM and Kerberos?

    Windows New Technology LAN Manager (NTLM) and Kerberos is a suite of security protocols offered by Microsoft to authenticate users identity and protect the integrity and confidentiality of their activity. NTLM is still supported by Microsoft, it has been replaced by Kerberos as the default authentication protocol in Windows 2000 and subsequent Active Directory (AD)…


  • Convert Generic List In To DataTable

    Create simple asp.net application with C#. Add new class (GenericToDataTable). using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Collections.Generic; using System.ComponentModel; using System.Reflection; public class GenericToDataTable { /// <summary> /// Default Constructor /// </summary> private GenericToDataTable() { } /// <summary> /// /// </summary> ///…


  • Create Round Form in C# Application

    1) Create Simple Window Application (C#). 2) in the form set below property. startposition : CenterScreen MaximizeBox :False MinimizeBox :False Size : Width :400 Height:400 FormBorderStyle :none 3)  in the form paint event put below code. private void Form1_Paint(object sender, PaintEventArgs e) { System.Drawing.Drawing2D.GraphicsPath objGP = new System.Drawing.Drawing2D.GraphicsPath(); objGP.AddEllipse(new Rectangle(0, 0,this.Width, this.Height)); this.Region = new…


  • Difference Between Environment.CurrentDirectory And Application.ExecutablePath

    here i am using simple windows application. steps: 1) Create Simple Windows Application using VB.net 2.0. 2) put the button (id=button1) on the form. 3) On the Button Click Event put the below code. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ‘get the EnvironmentPath MsgBox(” EnvironmentPath ” & Environment.CurrentDirectory.ToString()) ‘get…


  • Get Connection String from Windows Registry using C#.net

    First of first how to open windows registry editor ? Open Run Menu (Windows + R) and type regedit the below screen is open. (Figure 1) here I am created the simple application using windows C#.net 2.0. steps: 1) Create Simple Windows Application using C#. add the namespace using Microsoft.Win32; 2) put the below control…