23 December 2013

Supporting Namespace in Dotnet 4.5


S.NoParticular.Net 3.0.Net 3.5.Net 4.0.Net 4.5
1Microsoft.Build.Tasks.WindowsYYYY
2Microsoft.Win32YYYY
3Microsoft.Windows.ThemesYYYY
4System.Collections.ObjectModel YYYY
5System.Collections.SpecializedYYYY
6System.ComponentModel YYYY
7System.DiagnosticsYYYY
8System.IOYYYY
9System.IO.PackageYYYY
10System.PrintingYYYY
11System.Printing.IndexedPropertyYYYY
12System.Printing.InteropYYYY
13System.Security.PermissionsYYYY
14System.Security.RightsManagementYYYY
15System.WindowsYYYY
16System.Windows.AnnotationsYYYY
17System.Windows.Annotations.StorageYYYY
18System.Windows.AutomationYYYY
19System.Windows.Automation.PeersYYYY
20System.Windows.Automation.ProviderYYYY
21System.Windows.Automation.TextYYYY
22System.Windows.ControlsYYYY
23System.Windows.Controls.PrimitivesYYYY
24System.Windows.ConvertersYYYY
25System.Windows.DataYYYY
26System.Windows.DocumentsYYYY
27System.Windows.Documents.DocumentStructuresYYNY
28System.Windows.Documents.SerializationYYYY
29System.Windows.Forms.IntegrationYYYY
30System.Windows.InkYYYY
31System.Windows.InputYYYY
32System.Windows.Input.StylusPlugInsYYYY
33System.Windows.InteropYYYY
34System.Windows.Markup (shared)YYYY
35System.Windows.Markup.LocalizerYYYY
36System.Windows.Markup.PrimitivesYYYY
37System.Windows.MediaYYYY
38System.Windows.Media.AnimationYYYY
39System.Windows.Media.ConvertersYYYY
40System.Windows.Media.EffectsYYYY
41System.Windows.Media.ImagingYYYY
42System.Windows.Media.Media3DYYYY
43System.Windows.Media.Media3D.ConvertersYYYY
44System.Windows.Media.TextFormattingYYYY
45System.Windows.NavigationYYYY
46System.Windows.ResourcesYYYY
47System.Windows.ShapesYYYY
48System.Windows.ThreadingYYYY
49System.Windows.XpsYYYY
50System.Windows.Xps.PackagingYYYY
51System.Windows.Xps.SerializationYYYY
52UIAutomationClientsideProvidersYYYY

22 December 2013

Supporting Namespace for Sliverlight in Net


S.NoParticularSliverlight
1Microsoft.Win32Y
2Microsoft.Windows.ThemesY
3System.Collections.ObjectModel Y
4System.Collections.SpecializedY
5System.ComponentModel Y
6System.DiagnosticsY
7System.IOY
8System.Security.PermissionsY
9System.WindowsY
10System.Windows.AutomationY
11System.Windows.Automation.PeersY
12System.Windows.Automation.ProviderY
13System.Windows.Automation.TextY
14System.Windows.ControlsY
15System.Windows.Controls.PrimitivesY
16System.Windows.DataY
17System.Windows.DocumentsY
18System.Windows.Documents.DocumentStructuresY
19System.Windows.Documents.SerializationY
20System.Windows.Forms.IntegrationY
21System.Windows.InkY
22System.Windows.InputY
23System.Windows.InteropY
24System.Windows.Markup (shared)Y
25System.Windows.MediaY
26System.Windows.Media.AnimationY
27System.Windows.Media.EffectsY
28System.Windows.Media.ImagingY
29System.Windows.Media.Media3DY
30System.Windows.NavigationY
31System.Windows.ResourcesY
32System.Windows.ShapesY
33System.Windows.ThreadingY


02 December 2013

Calling Constructor from another Constructor

Constructor in C#.net

              A constructor is a method in the class which gets executed when its object is created. Usually, we put the initialization code in the constructor. 

01 December 2013

Validate Text Box

Introduction:
      Today, we discussed about How to validate Text Box with Error Provider in C#.Net? .
Conditions:
    TextBox should enter only integer.
    create one validation event for integer

Here the Code:
protected void textBox1_Validating (object sender,
   System.ComponentModel.CancelEventArgs e)
{
   try
   {
      int x = Int32.Parse(textBox1.Text);
      errorProvider1.SetError(textBox1, "");
   }
   catch (Exception ex)
   {
      errorProvider1.SetError(textBox1, "Not an integer value.");
   }
}

Call this event in constructor
this.textBox1.Validating += new
System.ComponentModel.CancelEventHandler(this.textBox1_Validating);