Tuesday, June 26, 2012

Example on Windows Service Wothout Setup

Hi Friends,in this post i would like to explain windows service for displaying message box for every 3 seconds.Step 1:* Open windows service project with projectName WinService1* Goto ToolBox-->General-->Right Click-->Select choose items-->Select Timer(Systems.Timers)* Project-->AddReference-->System.Windows.Forms(Message Box is a part of above reference).* Place a Timer(System.Timers) with interval-3000 &...

Read more »

What Is Delegate with a simple example

aIntroduction This article is an attempt to explain a delegate with a simple example. Delegates are similar to function pointers in C++. For simple understanding delegates can be defiend as methods that are used to call other method. Only condition to call another method from a delegate is that the signature of the calling methods and delegates should match. Follw This Step Delegates should have the same signature...

Read more »

How to Create Setup File And how to install,Start windows service

aaa Introduction: Here I will explain how to install windows service and how to start the windows service in our local machine.Description: In previous article I explained clearly how to Create Setup File and how to run windows service in scheduled intervals. Now I will explain how to install windows service in our system.To install windows...

Read more »

Monday, June 25, 2012

Moveable Telerik Rad window in WPF

Introduction : How to Move Telerik Rad Window in WPF Descritption : You can move your rad window move any where in your page Using Code : In Design View :  <Canvas Name="mycanvas" Height="{Binding Height,ElementName=radWindow2}" Width="{Binding Width,ElementName=radWindow2}"  >     <Thumb...

Read more »

Display message in your pc Notification Area in WPF

Introduction : How To Display message in your pc Notification Area in WPF Descritption : You can set Custom icon and Custom Message in Your Pc Notification Area Using Code : This code for Notify Icon  private System.Windows.Forms.NotifyIcon notifyIcon1; private System.Windows.Forms.ContextMenu contextMenu1; private...

Read more »

Friday, June 22, 2012

List Operation In C#

    This Blog  Use For Major operation of List<> in C#    Introduction      Lists are considered generics and constructed types. You need to use < and > in the List declaration.      List <>  is Following Step 1)    Create Class for List public class AddROSublet     {        ...

Read more »

Wednesday, June 6, 2012

Set Lost Focus and cusrosr go same control

    Method 1      setFocus(txts_StockNo);   //set focus         public static void setFocus(UIElement element)         {             if (!element.Focus())             {                ...

Read more »

Friday, June 1, 2012

Encrypt or Decrypt password using c# in ASP.Net

Introduction How to Convert Encrypt or Decrypt password using c# with asp.net Using the code Enter Your Password and first click on Encrypt button and then after click on Decrypt. 1. Example Of First Enter Password = "tejasbhalani" 2. EncodePasswordToBase64 function convert your string and give output ans= "cnJhYW5uYWFtbWVldHQ=" 3. DecodeFrom64 function convert your strring and give output ans=" tejasbhalani " ...

Read more »

Send Mail With Attachment File Using C# in ASP.NET

Introduction This article lists code to send a mail with an attachment file. Background We send mail using System.Net.Mail. Using the code string ToAddress = TextBox3.Text; const string FromAddress = YourGmailId; //ForExample:tejasbhalani@gmail.com string Subject = TextBox6.Text; String Body = TextBox4.Text; System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage(); mail.To.Add(ToAddress); mail.From...

Read more »

CheckBoxList in Wpf With C#

Introduction Display Selected Column Dynamically Using checkBoxList in Wpf With C# Demo Using the code You Want to Display Selected Column Dynamically run time Using CheckBoxList then Just Use this Code in your application. First Create one Data base Example of -> -- DataBase Name :- db -- Create Five Column -- Id Name Address City Phone -- Enter some data in database First We Create Form Design ...

Read more »

Followers