摘要: 1、WinForm中的Panel控件无法直接自定义边框颜色,需要在Pain事件中画边框,但是效果不太理想,如下图 或者是这样的,效果都不太理想,只能通过自定义控件来实现了。 2、自定义控件,直接在控件中放置控件,但是效果还是不行,如上第一幅图 3、自定控件,在自定义控件放置Panel控件,在自定义控 阅读全文
posted @ 2020-12-30 11:43 carrot_hlb 阅读(763) 评论(0) 推荐(0) 编辑
摘要: 1、不同域名实现单点登录。例如2个不同域名,a1.com和a2.com,因为浏览器中只能发送相同域名下的cookie(访问a1.com时只能发送a1.com下的cookie,如果cookie的域名被设置为a2.com就不能发送给a.com的服务器),所以利用cookie加session的方法不能实现 阅读全文
posted @ 2020-12-28 10:09 carrot_hlb 阅读(2687) 评论(0) 推荐(0) 编辑
摘要: 修改config/server.xml,主要是找到<Host></Host>,然后每个网站复制一个后进行相应的修改,见下面配置示例 <?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundati 阅读全文
posted @ 2020-12-25 14:59 carrot_hlb 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 写了这么多年的网站了,登录系统用了好几种了,有自己实现的,有spring security的,有apache shiro的,但其实原理都是一样,session加cookie实现的。 登录页面login.jsp: <%@ page language="java" contentType="text/h 阅读全文
posted @ 2020-12-08 08:34 carrot_hlb 阅读(1104) 评论(0) 推荐(0) 编辑
摘要: 1、类h文件 #pragma once #ifndef __AFXWIN_H__#error "include 'pch.h' before including this file for PCH"#endif #include "resource.h" // 主符号#include "School 阅读全文
posted @ 2020-11-20 17:24 carrot_hlb 阅读(552) 评论(0) 推荐(0) 编辑
摘要: public partial class Form1 : Form { [DllImport("User32.dll", EntryPoint = "SendMessage")] private static extern IntPtr SendMessage(IntPtr hWnd, int ms 阅读全文
posted @ 2020-11-12 15:04 carrot_hlb 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 1、在trunk下开发第一个版本,代码正式发布后,branches到branches文件夹一份 2、svn switch到branches 3、后续版本在branches中开发 4、正式发布后,需要同步到trunk中 5、进入trunk的项目源代码根目录,switch 6、继续在当前目录执行merg 阅读全文
posted @ 2020-05-10 07:19 carrot_hlb 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 下载地址如下:https://marketplace.visualstudio.com/items?itemName=visualstudioclient.MicrosoftVisualStudio2017InstallerProjects 阅读全文
posted @ 2019-05-07 11:37 carrot_hlb 阅读(5575) 评论(0) 推荐(0) 编辑
摘要: vs2017突然无法启动了, 1、查看windows事件日志 由于下列某个原因,Windows 无法访问文件 C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Xml\19712ae056bf81cb80aaa60dcf56ebae\Syst 阅读全文
posted @ 2019-05-05 08:50 carrot_hlb 阅读(1765) 评论(0) 推荐(0) 编辑
摘要: winform AutoScrollMinSize属性 阅读全文
posted @ 2019-04-12 10:31 carrot_hlb 阅读(1396) 评论(0) 推荐(0) 编辑