Click here to Skip to main content
15,908,931 members
Home / Discussions / C#
   

C#

 
GeneralRe: Namespaces Pin
Luc Pattyn28-Jan-07 14:14
sitebuilderLuc Pattyn28-Jan-07 14:14 
GeneralRe: Namespaces Pin
max2929728-Jan-07 14:20
max2929728-Jan-07 14:20 
GeneralRe: Namespaces Pin
Luc Pattyn28-Jan-07 14:27
sitebuilderLuc Pattyn28-Jan-07 14:27 
GeneralRe: Namespaces Pin
max2929728-Jan-07 14:34
max2929728-Jan-07 14:34 
GeneralRe: Namespaces Pin
Stefan Troschuetz28-Jan-07 21:19
Stefan Troschuetz28-Jan-07 21:19 
GeneralRe: Namespaces Pin
Aaron VanWieren28-Jan-07 14:14
Aaron VanWieren28-Jan-07 14:14 
QuestionServer Architecture Pin
sinklink28-Jan-07 11:12
sinklink28-Jan-07 11:12 
QuestionCopy/Paste not working for DataGridView Pin
AndrusM28-Jan-07 11:01
AndrusM28-Jan-07 11:01 
How to implement cut/paste etc. edit and toolstrip menus if Windows forms contains DatagridView.

to reproduce:

Observed:

first column is not empty

Expected:

first column must be empty

Code to reproduce:

using System.Windows.Forms;
using System.Data;
static class Program {
	static void Main() {
		Application.Run(new Frm());
	}
}

class Frm : Form {
	public Frm() {
		//this works: DataGrid dataGrid1 = new DataGrid();
		DataGridView dataGrid1 = new DataGridView();
		DataTable t = new DataTable();
		t.Columns.Add();
		t.Columns.Add();
		t.Rows.Add("111111", "222222");
		dataGrid1.DataSource = t;
		dataGrid1.Dock = DockStyle.Fill;
		Controls.Add(dataGrid1);
	}

	protected override void OnActivated(System.EventArgs e) {
		base.OnActivated(e);
		Control o = ActiveForm;

		while (o is ContainerControl) {
			ContainerControl oContainer = (ContainerControl)o;
			o = oContainer.ActiveControl;
		}
		if (o != null && o is TextBox)
			((TextBox)o).Cut();
		SendKeys.SendWait("{TAB}");
	}
}



Andrus

QuestionRemove tab captions ? Pin
AndrusM28-Jan-07 10:57
AndrusM28-Jan-07 10:57 
AnswerRe: Remove tab captions ? Pin
Martin#28-Jan-07 19:26
Martin#28-Jan-07 19:26 
GeneralRe: Remove tab captions ? Pin
ShermansLagoon28-Jan-07 20:28
ShermansLagoon28-Jan-07 20:28 
QuestionActive Document when writing VS Addin Pin
Itay Sagui28-Jan-07 10:22
Itay Sagui28-Jan-07 10:22 
QuestionWebBrowser & horizontal Scrollbar Pin
el_MKay28-Jan-07 9:01
el_MKay28-Jan-07 9:01 
AnswerRe: WebBrowser & horizontal Scrollbar Pin
Luc Pattyn28-Jan-07 10:00
sitebuilderLuc Pattyn28-Jan-07 10:00 
QuestionProcess firing event too quickly Pin
Talal Sultan28-Jan-07 8:59
Talal Sultan28-Jan-07 8:59 
AnswerRe: Process firing event too quickly Pin
Guffa28-Jan-07 9:15
Guffa28-Jan-07 9:15 
GeneralRe: Process firing event too quickly Pin
Talal Sultan28-Jan-07 9:20
Talal Sultan28-Jan-07 9:20 
QuestionHardware Simulator Pin
Sabry190528-Jan-07 7:58
Sabry190528-Jan-07 7:58 
AnswerRe: Hardware Simulator Pin
Ravi Bhavnani28-Jan-07 8:24
professionalRavi Bhavnani28-Jan-07 8:24 
GeneralRe: Hardware Simulator Pin
Sabry190529-Jan-07 1:37
Sabry190529-Jan-07 1:37 
QuestionDisplaying image in Gridview Pin
fahiemulleh28-Jan-07 7:39
fahiemulleh28-Jan-07 7:39 
QuestionDo you know NET 2.0 documentation tools? Pin
cebyrjoe228-Jan-07 7:35
cebyrjoe228-Jan-07 7:35 
AnswerRe: Do you know NET 2.0 documentation tools? Pin
Stefan Troschuetz28-Jan-07 8:12
Stefan Troschuetz28-Jan-07 8:12 
QuestionThread Id and Thread name Pin
MinaFawzi28-Jan-07 5:43
MinaFawzi28-Jan-07 5:43 
AnswerRe: Thread Id and Thread name Pin
Luc Pattyn28-Jan-07 6:11
sitebuilderLuc Pattyn28-Jan-07 6:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.