DataGridView copy to clipboard

To copy the content of DataGridView cells to clipboard using MouseClick function                                                       
private void DataGridView1_MouseClick(object sender, MouseEventArgs e)
{
   DataGridView1.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
   DataGridView1.SelectAll();
   Clipboard.SetDataObject(DataGridView1.GetClipboardContent());
}


|
2012/10/19 09:15

Windows application (process) start from C# code

Run notepad application example
using System.Diagnostics; // REQUIRED
private string programStartupDir = "";
private string logFile = "";
...
private void Form1_Load(object sender, EventArgs e)
{
   programStartupDir = Directory.GetCurrentDirectory();
   programStartupDir += "\\";
   logFile = programStartupDir + "Application_Log.txt";
}
...
private void menuItemShowLogFile_Click(object sender, EventArgs e)
{
   Process showFile = new Process();
   showFile.StartInfo.FileName = "notepad.exe";
   showFile.StartInfo.Arguments = logFile;
   showFile.Start();
}




|
2012/10/19 09:06

Cannot uninstall Windows program ?

| 2012/10/19 08:23
Microsoft Support provides utilitu that helps uninstalling software that can't be removed using Add/Remove Programs
Fix problems with programs that can't be installed or uninstalled
http://support.microsoft.com/mats/Program_Install_and_Uninstall

It helped me to uninstall Citrix receiver from my laptop.

TAGS:

Milko Minchev – Professional resume

| 2011/10/28 19:15


MBM Project = Milko Belchev Minchev Project , mbmproject.com registered on 23.04.2003

PROFESSIONAL RESUME


NAMEMILKO MINCHEV


Smart Marine 3D beginners SQL quick start

Some simple SQL queries that can help new users start faster.

Applicable to: SmartPlant 3D , SmartMarine 3D and Smart 3D design systems.

Create equipment list including equimpment description. The information is stored in two different tables in projects' (plants' ) database - XXXX_MDB. The table view JNamedItem contain all items names and their IDs - oid. The equipment data is read from JEquipment. Table view JEquipment has information for the equipment ID but not for its name.


| | | |
2011/10/16 21:35