|
 |
ใช้งาน tooltip.Show(); แล้วมีปัญหาคือไม่สามารถ กด CellDoubleClick ได้ จะ error ตรง frm_emr_er.Show(); ช่วยดูให้หน่อยน่ะค่ะ |
|
 |
|
|
 |
 |
|
Code (C#)
private void dgv_erpatientlist_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex != -1)
{
//Open Wait Form
SplashScreenManager.ShowForm(this, typeof(master.frm_WaitForm), true, true, false);
this.visitID = dgv_erpatientlist["VISIT_ID", e.RowIndex].Value.ToString();
this.healingID = dgv_erpatientlist["HEALING_ID", e.RowIndex].Value.ToString();
this.hnID = dgv_erpatientlist["HN_ID", e.RowIndex].Value.ToString();
var frm_emr_er = new frm_emr_er(hnID, visitID, healingID);
frm_emr_er.MdiParent = this.MdiParent;
frm_emr_er.WindowState = FormWindowState.Maximized;
//Close Wait Form
SplashScreenManager.CloseForm(false);
frm_emr_er.Show();
}
}
private void dgv_erpatientlist_CellMouseEnter(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex != -1)
{
this.visitID = dgv_erpatientlist["VISIT_ID", e.RowIndex].Value.ToString();
this.healingID = dgv_erpatientlist["HEALING_ID", e.RowIndex].Value.ToString();
this.hnID = dgv_erpatientlist["HN_ID", e.RowIndex].Value.ToString();
tooltip = new dlg_patientbox(hnID, visitID, healingID);
tooltip.Show();
}
}
private void dgv_erpatientlist_CellMouseLeave(object sender, DataGridViewCellEventArgs e)
{
tooltip.Close();
}
Tag : C#
|
|
 |
 |
 |
 |
Date :
2020-02-12 15:33:42 |
By :
sumonrat |
View :
576 |
Reply :
3 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เออเร่อร์อะไร บอกให้ชัดเจนด้วยครับ
บางทีถ้ารู้ว่าเออเร่อร์อะไร อาจแก้ไขได้เองก็ได้
|
 |
 |
 |
 |
Date :
2020-02-12 17:14:43 |
By :
Chaidhanan |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
error แบบนี้ค่ะ System.NullReferenceException: 'Object reference not set to an instance of an object.'
|
 |
 |
 |
 |
Date :
2020-02-13 08:40:04 |
By :
sumonrat |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
var frm_emr_er = new frm_emr_er(hnID, visitID, healingID);
ลองประกาศตัวแปรใหม่ดูครับ frm_emr_er มี Type Object เป็นอะไร ให้นำมาใช้ในการประกาศ
TypeObject frm_emr_er = new frm_emr_er(....);
|
 |
 |
 |
 |
Date :
2020-02-13 16:57:46 |
By :
Chaidhanan |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|