In MS Word go to :
Tools>Options>V iew and unchecked the Field Codes checkbox.
Cheers,
Paul
User Profile
Collapse
-
for(int i = 0; i < listBox1.Items. Count; i++)
{
listBox1.Items[i] = listBox1.Items[i].ToString().Sub string(3);
}Leave a comment:
-
http://www.dotnetspide r.com/tutorials/BestPractices.a spx
Regards,
PaulLeave a comment:
-
There is a sample in C# here:
http://www.c-sharpcorner.com/UploadFile/mgold/NotepadDotNet07 312005142055PM/NotepadDotNet.a spx?ArticleID=f 0d1979f-e07d-4820-9f10-cbd52cdc2c8d
PaulLeave a comment:
-
I just want to know more myself, and it appears the only way to subscribe to a thread is to reply to it.
Paul...Leave a comment:
-
I found it myself.
One solution is adding an event handler in the EditingControlS howing event:
Code:private void myGrid_EditingControlShowing( object sender, DataGridViewEditingControlShowingEventArgs e ) { //Add an event-handler while in editing TextBox txt = e.Control as TextBox; if(txt !=null) { txt.TextChanged -= new EventHandler(TextBox_TextChanged); txt.TextChanged
Leave a comment:
-
I found the answer myself. In case anyone is interested:
http://msdn2.microsoft .com/en-us/library/system.windows. forms.datagridv iewcomboboxedit ingcontrol.aspx
P.Leave a comment:
-
Hope this helps. There is a form with 2 controls: label1, button1. The code is C#, but the idea is the same. There could be a better way.
Code:private void button1_Click( object sender, EventArgs e ) { int[][] arr = new int[][] { new int[]{0,1}, new int[]{2,3}, new int[]{4,5}, new int[]{6,7}}; for(int r = 0; r < arr.Length; r++) { label1.Text
Leave a comment:
-
DataGridView and EditingControl's event. How To?
Hello,
How can I trap the OnTextChanged event of a textbox hosted by a DataGridView?
What I actually want is, while the user is in the first column, in editing mode, once the entered text.lenght = 3 to automatically end editing and move focus to the next column.
I thought that checking the lenght of the entered text in the underlying textbox (my first column is type textbox) would do it, but there is... -
Use
System.Timers.T imer object instead of System.Windows. Forms.Timer.
Paul...Leave a comment:
-
EditingControl_OnChanged event of a DataGridView
Hello,
How can I trap the OnTextChanged event of a textbox hosted by a DataGridView?
What I actually want is, while the user is in the first column, in editing mode, once the entered text.lenght = 3 to automatically end editing and move focus to the next column.
I thought that checking the lenght of the entered text in the underlying textbox (my first column is type textbox) would do it, but there is...
No activity results to display
Show More
Leave a comment: