当前位置:网站首页>c#catch错误信息自定义显示
c#catch错误信息自定义显示
2022-04-22 05:43:00 【从刻意到习惯】
try
{
}
catch
{
string a = DateTime.Now.ToString();// 2008-9-4 20:02:10
//string b = DateTime.Now.ToLocalTime().ToString();
string g = string.Format("时间:{0}\r\n信息:{1}",a,ee.ToString());
listBox.Items.Add(g.ToString());
}`
messagebox.show(g);
MessageBox.Show("系统错误,请重新启动软件", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);//系统弹窗,不能显示在最上面TODO
版权声明
本文为[从刻意到习惯]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_43491924/article/details/115908625
边栏推荐
- Part 75 leetcode exercise (8) 8 String to integer
- STM32 study notes 4 - HC_ Commissioning record of SR04 ultrasonic ranging module
- AIX上安装gcc并使用
- ocilib库连接oracle
- 14 - container - tuple
- Pytorch deep learning practice_ 10 basis of convolutional neural network CNN
- 蓝桥杯嵌入式学习之双路AD采集
- Part 85 leetcode sword refers to offer dynamic programming (II) frog jumping steps
- Apple CMS builds a video website and collects videos regularly
- AD5724 bipolar ADC
猜你喜欢

Interaction method I between STM32 single chip microcomputer and ld3320 voice module

QT学习之代码颜色区别

AD5724 双极性ADC

第75篇 LeetCode题目练习(八) 8.字符串转整数

通用定时器

Characteristics and usage of QT signal and slot

AD5724 bipolar ADC

QT中出现error: undefined reference to `Widget::SetTime()‘

Apple CMS sets the local player ckplayer (version: ckplayerx)

Leetcode: Sword finger offer 29 Print the matrix clockwise
随机推荐
STM32 learning note 3 - input pin of GPIO
Can data frame, remote frame, error frame, and error reconnection
Pykmip test
LeetCode: 322. 零钱兑换(动态规划,递归,备忘录递归以及回溯)
Daily learning record -- solving graphviz Chinese garbled code problem
Blue Bridge Cup 31 day sprint day18
dlopen调用动态库
transform-origin基点设置'无效'问题
Ad embedded learning blue bridge
PCA in scikit learn
Part 74 leetcode exercise (VII) 7 Integer inversion
RTL8367学习笔记3——ACL访问控制列表
Intel SGX thread lock
VB操作excel 格式设置及打印页面设置(精简)
Dlopen calls dynamic library
localtime函数影响性能
Part 75 leetcode exercise (8) 8 String to integer
Pytorch deep learning practice_ 10 basis of convolutional neural network CNN
Standard input, standard output, standard error redirection and pipeline
STM32 learning note 2 - set GPIO register to realize running water lamp