Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
AnswerRe: System.Diagnostic.Process question/problem Pin
therealmccoy7-Oct-05 7:59
therealmccoy7-Oct-05 7:59 
GeneralRe: System.Diagnostic.Process question/problem Pin
XRaheemX7-Oct-05 8:02
XRaheemX7-Oct-05 8:02 
GeneralRe: System.Diagnostic.Process question/problem Pin
therealmccoy7-Oct-05 8:57
therealmccoy7-Oct-05 8:57 
Questionaccessing a C DLL with C# Long/Int problem Pin
CalvinB7-Oct-05 3:26
CalvinB7-Oct-05 3:26 
AnswerRe: accessing a C DLL with C# Long/Int problem Pin
mav.northwind7-Oct-05 4:15
mav.northwind7-Oct-05 4:15 
GeneralRe: accessing a C DLL with C# Long/Int problem Pin
CalvinB7-Oct-05 4:59
CalvinB7-Oct-05 4:59 
GeneralRe: accessing a C DLL with C# Long/Int problem Pin
leppie7-Oct-05 7:25
leppie7-Oct-05 7:25 
QuestionData Access & Tab Control Pin
rich_wenger7-Oct-05 2:49
rich_wenger7-Oct-05 2:49 
Hi, and thanks for your interest. I have some databound textboxes that are grouped on a number of pages in a tabcontrol. I use a button to call up a dialog box to pull data from a lookup table to speed populating some of the textboxes on the tab control. Updates seem to work fine untill I add some additional code in the Update event to check for null conditions. Then it gets strange, after I fill the textboxes from the lookup dialog I have to click in one (doesn't seem to matter which) of the filled textboxes for the updated information to be posted to the database. I have no code associated with tabcontrol or textbox mouse events on the form.

Code To Open Dialog (Form1)========================================

private void btnLmoLookup_Click(object sender, System.EventArgs e)
{
Form2 LmoLookup = new Form2();
LmoLookup.StartPosition = FormStartPosition.CenterParent;
if( LmoLookup.ShowDialog() == DialogResult.OK )
{
txtBoxDocName.Text = LmoLookup.docFullName;
}
LmoLookup.Dispose();
}

Code To Declare Public Variable (Form2)==================================

public string docFullName
{
get{return this.dsExtPhysLookup1.Tables["tblExternalPhysicians"].Rows[this.listBox1.SelectedIndex]["docFullName"].ToString();}
}

Code To Perform Update (Form1)===========================================

if(this.txtBoxDocName.Text.Trim().Length == 0) {
this.dsPatientIndex1.Tables["tblPatientIndex"].Rows[this.BindingContext[dsPatientIndex1, "tblPatientIndex"].Position]["patientRefDName"] = DBNull.Value;
}
else
{
this.dsPatientIndex1.Tables["tblPatientIndex"].Rows[this.BindingContext[dsPatientIndex1, "tblPatientIndex"].Position]["patientRefDName"] = txtBoxDocName.Text.Trim();
}

this.BindingContext[this.dsPatientIndex1, "tblPatientIndex"].EndCurrentEdit();

this.sqlDataAdapter2.Update(this.dsPatientIndex1);




-- modified at 8:53 Friday 7th October, 2005
QuestionSoftware Architecture - HELP! Pin
trjones17-Oct-05 1:44
trjones17-Oct-05 1:44 
AnswerRe: Software Architecture - HELP! Pin
Dan Neely7-Oct-05 2:04
Dan Neely7-Oct-05 2:04 
AnswerRe: Software Architecture - HELP! Pin
Carl Mercier7-Oct-05 4:47
Carl Mercier7-Oct-05 4:47 
Questionconverting array of byte to string in c# Pin
TssPrasad7-Oct-05 1:16
sussTssPrasad7-Oct-05 1:16 
AnswerRe: converting array of byte to string in c# Pin
Andrew Kirillov7-Oct-05 1:34
Andrew Kirillov7-Oct-05 1:34 
GeneralRe: converting array of byte to string in c# Pin
tssp7-Oct-05 2:12
tssp7-Oct-05 2:12 
QuestionLDAP Pin
ramenk6-Oct-05 23:45
ramenk6-Oct-05 23:45 
AnswerRe: LDAP Pin
ehuysamer7-Oct-05 2:25
ehuysamer7-Oct-05 2:25 
Questionhow to run resgen utility from post build com Pin
Kaushik J6-Oct-05 23:22
sussKaushik J6-Oct-05 23:22 
QuestionPlease Help!! Pin
Dipendra Singh6-Oct-05 22:43
Dipendra Singh6-Oct-05 22:43 
AnswerRe: Please Help!! Pin
XRaheemX7-Oct-05 7:08
XRaheemX7-Oct-05 7:08 
Question.NET and LDAP Pin
ehuysamer6-Oct-05 21:04
ehuysamer6-Oct-05 21:04 
AnswerRe: .NET and LDAP Pin
leppie6-Oct-05 22:34
leppie6-Oct-05 22:34 
GeneralRe: .NET and LDAP Pin
ehuysamer6-Oct-05 22:41
ehuysamer6-Oct-05 22:41 
GeneralRe: .NET and LDAP Pin
leppie7-Oct-05 1:34
leppie7-Oct-05 1:34 
Questiongraphics Pin
unni_jeevan6-Oct-05 20:53
unni_jeevan6-Oct-05 20:53 
AnswerRe: graphics Pin
XRaheemX7-Oct-05 3:34
XRaheemX7-Oct-05 3:34 

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.