Tips n Tracks

  • Increase font size
  • Default font size
  • Decrease font size
  • default color
  • black color

Reference

Sample image

Microsoft .NET Framework Get Details.

Sample image

Microsoft .NET Framework Get Details.

Reference

Sample image Microsoft .NET Framework Get Details.
Sample image

Microsoft .NET Framework Get Details.


C# Language

Introduction to Microsoft Visual C# 2008 Programming Language


Introduction to Microsoft Visual C# 2008 Programming Language

Microsoft released .NET Framework 3.5 on November 19, 2007. Along with it, was released Microsoft Visual Studio 2008. Microsoft Visual Studio 2008 – Code Name "Orcas", is the successor to Microsoft Visual Studio 2005. Visual C# 2008 is the member of Microsoft Visual Studio 2008 family, which get released along with Visual Basic 2008 and ASP.NET 3.5.

Visual C# 2008 is a modern, object-oriented, and type-safe programming language. C# has its roots in the C family of languages like C, C++. Visual Studio C# 2008 has capabilities for creating web and windows application. Enhanced features in the .NET Framework version 3.5 like Windows Communication Foundation, Windows Presentation Foundation, Windows Workflow Foundation along with Extensible Application Markup Language (XAML) and Silverlight improved capabilities of Visual C# 2008 to develop enhanced rich interactive applications (RIA).


Read the rest of this entry »

Creating Images in .Net with Bitmap and Graphics objects


Creating images in .Net is not a big task.This can be done using a bitmap object & graphics object. Using thease objcts we can create our own images or any graphicle objects.

Public Void CreateImage()
{
System.Drawing.Bitmap objBMP = new System.Drawing.Bitmap(1500, 600);
 
System.Drawing.Graphics objGraph = System.Drawing.Graphics.FromImage(objBMP);
objGraph.Clear(System.Drawing.Color.Gray);
objGraph.DrawString("Hello Anil.", new System.Drawing.Font("Courier", 10), Brushes.Green, 70, 90);
objBMP.Save("D:\\Anil\\Sample.bmp", System.Drawing.Imaging.ImageFormat.Bmp); //Please provide your path here tp save the image
}

Finding Variations in a Words using regular expressions with .net


Finding Variations in a Words (like John, Johny, Jon, Jonathan) using regular expressions with .net

In this regular expression we are going to find out variations in a Words like John, Johny, Jon, Jonathan. Just take a look at above words they all same begining "jo".

Regular Expression Pattern

\b[jJ]o\w*\b

A description of the regular expression:

First or last character in a word
Any character in this class: [jJ]
o\w*\b
o
Alphanumeric, any number of repetitions
First or last character in a word

Sucessful Matches

John
Johny
Jon
Jonathan
joiee


Read the rest of this entry »

Finding words or String with same beginning and end using regular expressions with .net


Finding words or String with same beginning and end using regular expressions with .net

In this regular expression we are going to find words or String with same beginning and end. Means we are going to search words like xerox with same beginning and end "x".

Regular Expression Pattern

\b(?<First>\w{1,})(?<Second>\w+)(?(Second)\k<First>)\b

A description of the regular expression:

  First or last character in a word
  [First]: A named capture group. [\w{1,}]
      Alphanumeric, at least 1 repetitions
  [Second]: A named capture group. [\w+]
      Alphanumeric, one or more repetitions
  Conditional Expression with "Yes" clause only
      Did the capture named [Second] match?
      If yes, search for [\k<First>]
          Backreference to capture named: First
  First or last character in a word

Sucessful Matches

xerox
404
rotor
rotor
ISAPI


Read the rest of this entry »

Finding all words starting with “re” using regular expressions with .net


Finding all words starting with "re" using regular expressions with .net

In this regular expression we are going to find all words starting with "re". Means we are going to search words beginning(first two character) will be "re".

Regular Expression Pattern

(\bre)\w+\b

A description of the regular expression:

[1]: A numbered capture group. [\bre]
\bre
First or last character in a word
re
\w+\b
Alphanumeric, one or more repetitions
First or last character in a word

Sucessful Matches

replace
regex
regular


Read the rest of this entry »