![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
winform
人生不同 在于自己
温不温暖都是心,浪不浪漫都是爱
展开
-
MVC中访问路径
public ActionResult Index() { return View("Index");//当在页面中需要访问的页面是Index视图,首先访问Controller中的Index方法,Index方法再返回Index视图给页面 }原创 2016-09-28 16:12:48 · 451 阅读 · 0 评论 -
Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
由于在Hibernate中有个 属性,是主键生成策略;因为我的ID不是int类型,而为string类型,所以不能使用 ,因为这个是自动生成ID主键,而我的主键是自己分配的,所以需要将native换成assigned。然后运行重新调试!这问题可能有不同的原因导致,还可在CSDN见到另外的解决方法,不足之处还请谅解。原创 2016-08-09 17:12:40 · 246 阅读 · 0 评论 -
winform中关于Application.Exit()的使用
WINFORM 中关于FormClosing与FormClosed的区别1.当Application.Exit()放在FormClosing事件中使用时,Application.Exit会触发窗体关闭事件,导致在此触发FormClosing,从而发生循环调用。2.当把Application.Exit()放在formClosed事件中使用时,在主窗体关闭后,再执行程序退出。再次编译系统后,点击关闭按钮,系统正常退出。...原创 2020-08-23 16:26:11 · 1892 阅读 · 0 评论 -
winform中窗体之间传值
1.实现将登录窗体的用户名和密码传到密码修改窗体首先在Progame.cs中定义全局类(用户存储用户名和密码) public class GlobalClass { public struct User { public string UsrName; public string Usr...原创 2019-10-25 17:52:15 · 246 阅读 · 0 评论