Posts

Showing posts with the label Windows Forms

Create Installer Projects in Visual Studio 2013

Image
After completing the development of your desktop Application. The next phase is to deployment or installation of that application. For this you need to create a setup of your project, then you just need to give the setup file to the users or your client so they can install and use your application. In Visual Studio 10 or prior edition, has built in functionality to create setup file using Installer Projects. But in Visual Studio 13 and next edition you need to install an extension first and then you can create.

Print Document In Windows Forms Using C#

Image
Today I will show you How to Print a Document   in Windows Forms ( .NET ) using C# . For Printing a Document or text From Text box or Data From Grid View we Use Print Dialog  Control From Toolbox tab in Windows Forms. A Print Dialog control is used to open the Windows Print Dialog. This Control  allows users to send an output to a printer. With the help of Print Preview Dialog You can preview a document Before Print it (Like in MS word).

SMS Send and Receive Using AT Commands Complete Source Code

Image
In Today's article i will demonstrate you How to send and received sms in C# using AT Commands with Complete Source Code . In This Tutorials I will not use any sms sending and Receiving API , but Learning this Post Completely Care fully INSHA Allah you will be able Develop your Own SMS sending and Receiving API or Classes according to your requirement. In This tutorials i will use AT commands .AT commands are the Commands which communicates and Controls  your Mobile or GSM Modem for Sending and Receiving SmS,  you may also Get other Information like Signals Strengths Etc. So it is Recommended for you Before reading this Tutorials to go through AT commands. Following are the links which will help you develop the base :-

Grid View Copy Paste In Excel File

Image
Today I Show how to Copy Paste Data In Data Grid View From an Excel File and From Excel From Copy Paste To Grid View . As we know that Excel is a great product of Microsoft. Excel File is most Probably use From Reporting , Graphs Making and Etc.   User Always Wants Easiness in Software Application . Copy Paste From Grid View to Excel File Provide Easy Ways for Reporting and Graphs Making.Excel File Copy Paste To Grid View Save Data Entry Operator Time and After Pasting  Data To Data Grid View We can Easily Save it To Data Base Just by clicking Button. So let's start First, drag and drop a DataGridView on the Windows Form Create  Columns in Data Grid View ID ,StudentName, Class,Sec,Batch,Fees.   First We enable Grid View to Copy data In Clip Board by writing Following line in Page load Event. this.dataGridView1.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText; and Write Download The Following Method For Copy Paste. privat...

Email, Phone number and String Validation in Windows Forms

Image
Today I show you how to Validate Email address,Phone or mobile numbers and String validation in Windows Forms C#. As we in asp.net there is a validation control that can easily validate required String. Here but use regex Expressions for Email Validations .It is Easy and most widely use Technique . So let's start, first you have to drag drop Text box And Button on Form Designer Surface . Created a method like below bool IsvalidEmail(TextBox Email)         {                         if (Email.Text.Trim() != "")             {  Match rex = Regex.Match(Email.Text.Trim(' '), "^([0-9a-zA-Z]([-.\\w]*[0-9a-zA-Z])*@([0-9a-zA-Z]"+         "[-\\w]*[0-9a-zA-Z]\\.)[a-zA-Z]{2,3})$", RegexOptions.IgnoreCase);     ...