Tuesday, 18 December 2012

How to Prevent the Focus on datagridview columns in c#.net windows applications

Some times we need to prevent(avoid) the focus on some columns in datagridview,mostly these requirment for ReadOnly columns for that i gave some code for that,here which column is required for prevent the focus those columns are should be ReadOnly and write below code in CellEnter Event in datagridview.  private void dgv_CellEnter(object sender, DataGridViewCellEventArgs e)        {            if (dgv.CurrentRow.Cells[e.ColumnIndex].ReadOnly)           ...
Read more ►

Wednesday, 5 December 2012

How to Clear the All the controls in a form in c#.net in Realtime

In every project we have to Clear the controls which is nothing but NEW button,in our project whenever we press the NEW button for new form it clear the all the controls in current form.For that we I gave class(DLL)file with code using this DLL Clear all the controls in your form even the controls are inside the TAB Control or SplitContainer or etc shown below.Code:     public  void ClearFields(Control cntr)         {             foreach (Control ct in cntr.Controls)            ...
Read more ►

Tuesday, 4 December 2012

How to create the Usercontrol and How to use this usercontrol in Realtime C#.net

Working with usercontrol is very efficient to the application for that follow below steps.step1:How to create the user controlGoto visual studio-->click on file-->click on new-->click on project-->select windows from visual c#left side and select windows forms control library template and type the Application name(textbox).step2:  Goto .cs file and try with this following codewrite in the key_press eventcode:using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms;namespace...
Read more ►

Thursday, 22 November 2012

karnataka SSLC/10th 2013 Time Table and Results

Karnataka Secondary Education Examination Board was established in the year 1966. Karnataka Education Board conducting SSLC and other examinations. Every year the students strength is increasing tremendously.   Karnataka Board has made result script especially for all the appeared students, which can produce SSLC/10th class exam results 2013 just enter by roll number.For karnataka SSLC/10th Class Results 2013 Click Here   A large number to students can be check their through online from Karnataka Examination Results  official website.In this web site you get ...
Read more ►

Wednesday, 21 November 2012

RealTime Dotnet Interview questions

1) What is .NET? Ans:NET is a general-purpose software development platform, similar to Java. At its core is a virtual machine that turns intermediate language (IL) into machine code. High-level language compilers for C#, VB.NET and C++ are  provided to turn source code into IL. C# is a new programming language, very similar to Java. 2) what are features of C#? Ans: 1) It supports intellisense.          2) It is strong oops language ie. object oriented language. 3) what is class ? Ans: class is collection of class. 4)When was .NET announced? Ans:Bill...
Read more ►

How to Create the Setup(Deployment) file for Windows applications C#.net in RealTime

             In this Article Explain the How to create the setup file for C#.net windows applications in RealTime Projects.Before installation of our projects in client system we need create Setup file for our Project for run in the client system,for that i gave some steps To create the Setup file with default desktop shortcut,show below steps. Open Visual Studio->File----->New----->Project----->Other Project Types----->Setup and Deployment----->Setup Project----->Give File Name----->Ok File----->Add----->Existing...
Read more ►

How to insert the data from TextBox to dataGridview in C#.net in Realtime

In RealTime most of the windows based applications are used dataGridview for Inserting,Deleting,for any Modifications we use dataGridview .So for that the data will send to dataGridview from TextBox. I  gave some code for that shown below. Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace gridview {     public partial class Form1 : Form     {          ...
Read more ►

Copyright © 2025 RealTime C#.Net Samples&Results Design by O Pregador | Blogger Theme by Blogger Template de luxo | Powered by Blogger