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.


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 »

The .NET Platform


Microsoft .NET platform defines a standard around which a system can be developed. Microsoft .NET platform provides countless opportunities for different services and systems to interact, allowing programmers to develop powerful solutions for the internet. A major theme of Microsoft .NET platform is the idea of Web services, allowing software to communicate directly with other software using Internet technologies. The .NET Framework and Visual Studio.NET, two more core aspects of this initiative, provide a multi-language environment in which developers can create Web services and other kinds of applications.


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 »

Web hosting for .NET web development projects it is always best to get asp web hosting to make sure it supports both IIS and SQL.