Click here to Skip to main content
15,906,625 members
Home / Discussions / C#
   

C#

 
Questionbreaking a string to substrings Pin
myinstincts29-Dec-09 19:21
myinstincts29-Dec-09 19:21 
AnswerRe: breaking a string to substrings Pin
myinstincts29-Dec-09 19:27
myinstincts29-Dec-09 19:27 
GeneralRe: breaking a string to substrings [modified] Pin
petercrab29-Dec-09 20:10
petercrab29-Dec-09 20:10 
GeneralRe: breaking a string to substrings Pin
coolestCoder29-Dec-09 22:16
coolestCoder29-Dec-09 22:16 
AnswerRe: breaking a string to substrings Pin
Md. Marufuzzaman29-Dec-09 20:42
professionalMd. Marufuzzaman29-Dec-09 20:42 
QuestionRichTextBox in WPF raised InvalidComObjectException in release build application Pin
Jingcheng29-Dec-09 17:52
Jingcheng29-Dec-09 17:52 
QuestionControlPaint.DrawBorder Pin
Saksida Bojan29-Dec-09 11:00
Saksida Bojan29-Dec-09 11:00 
AnswerRe: ControlPaint.DrawBorder Pin
Ravi Bhavnani29-Dec-09 14:53
professionalRavi Bhavnani29-Dec-09 14:53 
GeneralRe: ControlPaint.DrawBorder Pin
Saksida Bojan29-Dec-09 19:26
Saksida Bojan29-Dec-09 19:26 
QuestionHow to mark / build C# / WPF component STA Pin
Jingcheng29-Dec-09 10:15
Jingcheng29-Dec-09 10:15 
QuestionFill HTML-Forms, wait for respons and get answere with C# Pin
diialer29-Dec-09 9:51
diialer29-Dec-09 9:51 
AnswerRe: Fill HTML-Forms, wait for respons and get answere with C# Pin
#realJSOP29-Dec-09 10:07
professional#realJSOP29-Dec-09 10:07 
GeneralRe: Fill HTML-Forms, wait for respons and get answere with C# Pin
diialer29-Dec-09 10:13
diialer29-Dec-09 10:13 
GeneralRe: Fill HTML-Forms, wait for respons and get answere with C# Pin
DaveyM6929-Dec-09 11:24
professionalDaveyM6929-Dec-09 11:24 
GeneralRe: Fill HTML-Forms, wait for respons and get answere with C# Pin
diialer29-Dec-09 13:34
diialer29-Dec-09 13:34 
GeneralRe: Fill HTML-Forms, wait for respons and get answere with C# Pin
Luc Pattyn29-Dec-09 14:29
sitebuilderLuc Pattyn29-Dec-09 14:29 
AnswerRe: Fill HTML-Forms, wait for respons and get answere with C# Pin
OriginalGriff29-Dec-09 10:12
mveOriginalGriff29-Dec-09 10:12 
QuestionWord Bookmark Value Pin
Member 230798429-Dec-09 9:42
Member 230798429-Dec-09 9:42 
AnswerRe: Word Bookmark Value Pin
Rick Shaub30-Dec-09 3:57
Rick Shaub30-Dec-09 3:57 
Questiondisplay detail view form when click on a row Pin
duce1nik29-Dec-09 8:09
duce1nik29-Dec-09 8:09 
AnswerRe: display detail view form when click on a row Pin
#realJSOP29-Dec-09 8:14
professional#realJSOP29-Dec-09 8:14 
GeneralRe: display detail view form when click on a row Pin
duce1nik29-Dec-09 16:50
duce1nik29-Dec-09 16:50 
 <big> ///EmployeesViewForm.cs ////This the GridviewForm</big><br />
<br />
class EmployeesViewForm : Form <br />
{<br />
<br />
void addToolStripButton_Click(object sender, EventArgs e) <br />
{<br />
 this.EditEmployee(this.employeesBindingSource.AddNew());<br />
}<br />
<br />
void updateToolStripButton_Click(object sender, EventArgs e) <br />
{<br />
  this.EditEmployee((DataRowView)this.employeesBindingSource.Current);<br />
}<br />
<br />
void EditEmployee(DataRowView item) <br />
{<br />
// Pass to child employee details form<br />
EmployeesEditForm dlg = new EmployeesEditForm(item);<br />
if( dlg.ShowDialog() == DialogResult.OK ) <br />
{<br />
// Reset to reflect changes automatically<br />
this.employeesBindingSource.ResetCurrentItem()<br />
}<br />
}<br />
<br />
<br />
<big> ////EmployeesEditForm.cs //// This the form with detail View</big><br />
partial class EmployeesEditForm : Form <br />
{<br />
<br />
void EmployeeItemForm_FormClosing(<br />
object sender, FormClosingEventArgs e) <br />
{<br />
// Cancel edit if Cancel button is pressed or form is closed from<br />
// either the system menu or close box<br />
if( (e.CloseReason == CloseReason.UserClosing) ||<br />
(this.DialogResult == DialogResult.Cancel) ) {<br />
this.employeesBindingSource.CancelEdit();<br />
}<br />
}<br />
<br />
<br />
<br />
<big>///EmployeesEditForm.cs</big><br />
<br />
partial class EmployeesEditForm : Form <br />
{<br />
<br />
public EmployeeItemForm(object item) <br />
{<br />
<br />
// Check that item is a DataRowView for an EmployeesRow<br />
if( (item is DataRowView) &amp;&amp;<br />
(((DataRowView)item).Row is NorthwindDataSet.EmployeesRow) ) <br />
{<br />
InitializeComponent();<br />
<br />
// Acquire employee list data source item<br />
this.employeesBindingSource.DataSource = item;<br />
}<br />
else throw new ArgumentException("Incorrect type");<br />
}<br />
<br />
}

QuestionCheckBox In WinForms DataGridView Not Working Pin
Kevin Marois29-Dec-09 8:00
professionalKevin Marois29-Dec-09 8:00 
AnswerRe: CheckBox In WinForms DataGridView Not Working Pin
darkelv29-Dec-09 8:05
darkelv29-Dec-09 8:05 
GeneralRe: CheckBox In WinForms DataGridView Not Working Pin
Kevin Marois29-Dec-09 8:19
professionalKevin Marois29-Dec-09 8:19 

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.