好吧,我将在按钮上放置一个图像,该图像有圆角.我该如何实现这一目标?我一直在谷歌搜索和搜索几个小时,仍然没有运气.
我将此21/10/1999值手动插入SQL数据库中,当我像这样检索它时:
txtDOB.Text = readPatient["pDOB"].ToString();
Run Code Online (Sandbox Code Playgroud)
它随时间显示所有内容12:00:00 AM.我的日期列的数据类型date不是datetime.那为什么它也显示时间呢?
现在我已经获得了代码下面的代码,以便从日历中获取所选日期并将其显示在文本框中,但它采用的是dd/MM/yyyy格式.
txtSMAlerted_PopupControlExtender.Commit(calSMAlerted.SelectedDate.ToShortDateString());
Run Code Online (Sandbox Code Playgroud) private void btnSubmitConsultation_Click(object sender, EventArgs e)
{
int medicalHistoryResult = insertMedicalHistory();
if (medicalHistoryResult > 0)
{
MessageBox.Show("Document(s) submitted", "Success");
}
else
{
MessageBox.Show("Insert Fail");
}
int allergiesResult = insertAllergies();
if (allergiesResult > 0)
{
if (txtNewAllergy.Text != null || txtReactions.Text != null)
{
if (txtNewAllergy.Text == null)
{
MessageBox.Show("Please key in the Type of the allergy", "WARNING");
}
else if (txtReactions.Text == null)
{
MessageBox.Show("Please key in the Description of the allergy", "WARNING");
}
}
else
{
MessageBox.Show("Submitted, fool");
} …Run Code Online (Sandbox Code Playgroud)