摘要: Lets say you have lots of data your listview. Now you want to Group This data According to a Perticular Subitems. For Example: Suppose i have some books data in my ListView. this listview items contains Author name and Books Title. And there are 2000 Books in list view. Now i want to group the d... 阅读全文
posted @ 2012-04-02 16:29 sandeepparekh9 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Let's say you have some invoice numbers which contains Alphabets as well as numeric number. And you want to increment it one by one. For Example: if Invoice number is "AZ99999999" then Next Invoice Number will be "BA00000001" Notice here that , the invoice number's lenght 阅读全文
posted @ 2012-04-02 16:27 sandeepparekh9 阅读(220) 评论(0) 推荐(0) 编辑
摘要: >The Function: Public Sub ExportDatasetToExcel(ByVal ds As DataSet, ByVal strExcelFile As String) Dim conn As New OleDbConnection(String.Format("provider=Microsoft.Jet.OLEDB.4.0; Data Source='{0}';" & "Extended Properties='Excel 8.0;HDR=YES;'", strExcelFile 阅读全文
posted @ 2012-04-01 20:48 sandeepparekh9 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1. Add List box on a Forms. 2. Now add a reference to System.Diagnostics Code: Process[] curProcesses = Process.GetProcesses(); foreach (Process p in curProcesses) { listBox1.Items.Add(p.ProcessName); } Output: 阅读全文
posted @ 2012-04-01 20:47 sandeepparekh9 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Here Is The Class: using System;using System.Drawing;using System.Windows.Forms;namespace MoveControl{ sealed class clsMoveControl { public enum Direction { Any, Horizontal, Vertical } public static void StartMoving(Control cntrl) ... 阅读全文
posted @ 2012-04-01 20:44 sandeepparekh9 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Let's Say i have following array: string[] myArray = new string[6]; myArray[0] = "a"; myArray[1] = "b"; myArray[2] = " "; //space myArray[3] = "c"; myArray[4] = ""; //null myArray[5] = "d"; I want to remove the space and null par... 阅读全文
posted @ 2012-04-01 20:43 sandeepparekh9 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Just a small Application i made to change wallpapers automatically at regular interval. Screen: I works fine with Windows XP and windows 7 . Well, i wont go to deep in code here is the complete project. enjoy. Download: Wallpaper Changer 阅读全文
posted @ 2012-04-01 20:42 sandeepparekh9 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Once i was working with the Microsoft's PictureBox control. I noticed the each time i want to change the image i will have to create an Image object and Load my Image into and Assign it to PictureBox . And if i want to see the old pic (before assigning to new) i will have to again do the same. S 阅读全文
posted @ 2012-04-01 20:37 sandeepparekh9 阅读(144) 评论(0) 推荐(0) 编辑
摘要: We will be Accomplishing using the Windows Registry. Main Registry to work here is : "SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products" Just Write Down The Following Code the Form's Loading Event (Form Contains No Control): C#.NET private void Form1_Load(o 阅读全文
posted @ 2012-04-01 20:34 sandeepparekh9 阅读(194) 评论(0) 推荐(0) 编辑
摘要: MySql Query : SELECT COLUMN_NAME , DATA_TYPE , CHARACTER_MAXIMUM_LENGTH , NUMERIC_PRECISION , NUMERIC_SCALE , EXTRA , COLUMN_KEY , COLUMN_DEFAULT , IS_NULLABLE , COLUMN_COMMENTFROM INFORMATION_SCHEMA.COLUMNSWHERE table_name = 'YourTableName' ... 阅读全文
posted @ 2012-04-01 20:31 sandeepparekh9 阅读(169) 评论(0) 推荐(0) 编辑