首页 > Windows开发
获取DataGridView上选中的一行并转换为一个DataRow类型
ataGridViewRow gridrow = dataGridView1.SelectedRows[0]; DataRowView row_view = (DataRowView)gridrow.DataBoundItem; DataTable dt = row_view.DataView.Ta ...
分类:Windows开发   时间:2018-10-08 21:13:05    收藏:0  评论:0  赞:0  阅读:188
C#命名参数
文章:史上最全的ASP.NET MVC路由配置,以后RouteConfig再弄不懂神仙都难救你啦~ 命名参数规范+匿名对象 ...
分类:Windows开发   时间:2018-10-08 17:45:56    收藏:0  评论:0  赞:0  阅读:182
windows API 第22篇 WTSGetActiveConsoleSessionId
函数原型:DWORD WTSGetActiveConsoleSessionId (VOID)先看一下原文介绍: The WTSGetActiveConsoleSessionId function retrieves the Terminal Services session currently at ...
分类:Windows开发   时间:2018-10-08 17:41:29    收藏:0  评论:0  赞:0  阅读:277
Windows API 23 篇 WTSQuerySessionInformation
函数原型:BOOLWINAPIWTSQuerySessionInformationW( IN HANDLE hServer, IN DWORD SessionId, IN WTS_INFO_CLASS WTSInfoClass, __deref_out_bcount(*pBytesReturned) ...
分类:Windows开发   时间:2018-10-08 17:41:15    收藏:0  评论:0  赞:0  阅读:211
win10右击无法新建文件,只能新建文件夹和快捷方式
方法/步骤 点击任务栏左下角的搜索,输入cmd。 搜索结果中第一条是【命令提示符】(桌面应用),右键以管理员权限打开。 粘贴下面的命令,然后回车。 cmd /k reg add "HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHa ...
分类:Windows开发   时间:2018-10-08 17:38:49    收藏:0  评论:0  赞:0  阅读:183
Windows API 第17篇 GetLogicalDriveStrings 获取本机所有逻辑驱动器,以根目录的形式表示
函数原型:DWORD GetLogicalDriveStrings( DWORD nBufferLength, // size of buffer LPTSTR lpBuffer // drive strings buffer );说明:参数不多讲,需要注意函数返回存入lpBuffer空间的字符个数 ...
分类:Windows开发   时间:2018-10-08 16:56:59    收藏:0  评论:0  赞:0  阅读:196
Windows API 第12篇 MoveFile
MoveFile可以移动文件,更名文件,移动目录(包括目录下的所有文件以及子目录)。函数定义:BOOL MoveFile( LPCTSTR lpExistingFileName, // file name LPCTSTR lpNewFileName // new file name);参数不介绍了, ...
分类:Windows开发   时间:2018-10-08 15:42:28    收藏:0  评论:0  赞:0  阅读:221
C# 其他的Url 文件的路径转化为二进制流
//将虚拟路径转化为文件的路径然后最后转化为文件流 public ActionResult SaveImage(string path) { var url =System.Web.HttpContext.Current.Request.PhysicalApplicationPath + path; ...
分类:Windows开发   时间:2018-10-08 15:38:32    收藏:0  评论:0  赞:0  阅读:423
C# 获取汉字的拼音首字母(转)
原文:https://blog.csdn.net/younghaiqing/article/details/62417269 一种是把所有中文字符集合起来组成一个对照表;另一种是依照汉字在Unicode编码表中的排序来确定拼音的首字母。碰到多音字时就以常用的为准(第一种方法中可以自行更改,方法为手动 ...
分类:Windows开发   时间:2018-10-08 15:37:26    收藏:0  评论:0  赞:0  阅读:257
win10:angular-cli安装及build项目
win10 angular-cli安装及build项目: https://blog.csdn.net/rongyongfeikai2/article/details/53084473 node.js安装: https://blog.csdn.net/wing_93/article/details/7 ...
分类:Windows开发   时间:2018-10-08 15:31:32    收藏:0  评论:0  赞:0  阅读:276
Windows API 第二篇 SHGetSpecialFolderPath
BOOL SHGetSpecialFolderPath( HWND hwndOwner, LPTSTR lpszPath, int nFolder, BOOL fCreate ); 参数解释: hwndOwner:Handle to the owner window the client shoul ...
分类:Windows开发   时间:2018-10-08 14:34:16    收藏:0  评论:0  赞:0  阅读:168
结对编程---带界面的数学题练习题(强烈安利windowbuilder)
一:个人项目模块-出题模块 本次结对项目是以队友的个人项目为基础,只是开始我们是以c++写的,然后由于结对项目中需要短信验证码功能,而阿里云没有c++的接口,再加上我们了解过java的UI界面,于是就把原个人项目改为了java。改为java版的代码的主要就是生成题目的类。 之前队友的个人项目是全都在 ...
分类:Windows开发   时间:2018-10-08 12:55:15    收藏:0  评论:0  赞:0  阅读:199
windows与linux查看服务器信息
windows与linux查看服务器信息
分类:Windows开发   时间:2018-10-08 12:03:38    收藏:0  评论:0  赞:0  阅读:185
jhipster安装_Windows
1:安装 Node.js lts版本的 https://nodejs.org/en/ 2:安装Yarn https://yarn.bootcss.com/docs/install.html 3:修改yarn库路径 yarn config set cache-folder "你自己的缓存文件夹" 5: ...
分类:Windows开发   时间:2018-10-08 11:51:31    收藏:0  评论:0  赞:0  阅读:217
Datagridview获取列名为“”的值
int index = dataGridView_main.CurrentRow.Index; //取得选中行的索引 int pe_batch_id = Convert.ToInt32(dataGridView_main.Rows[index].Cells["pe_batch_id"].Value)... ...
分类:Windows开发   时间:2018-10-08 11:05:51    收藏:0  评论:0  赞:0  阅读:218
dataGridView设置单元格内容的显示格式CellFormatting
#region 设置单元格内容的显示格式 private void dataGridView_main_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { #region 会诊方式判断 int requestT... ...
分类:Windows开发   时间:2018-10-08 10:53:17    收藏:0  评论:0  赞:0  阅读:507
asp.net webapi 自定义身份验证
/// /// 验证 /// /// Account API账号 /// TimeStamp 请求时间 /// Sign 所有请求参数 加密 public class AuthFilterOutside : AuthorizeAttribute { //重写基类的验证方式,加入我们自定义的Ticke... ...
分类:Windows开发   时间:2018-10-08 10:48:49    收藏:0  评论:0  赞:0  阅读:192
winform 版本号比较
Version now_v = new Version(strval); Version load_v = new Version(model.version.ToString()); if (now_v < load_v&& MessageBox.Show("检查到新版本,是否更新?", "Upd... ...
分类:Windows开发   时间:2018-10-08 10:11:11    收藏:0  评论:0  赞:0  阅读:191
.Net Core者Api 使用版本控制
1,安装Microsoft.AspNetCore.Mvc.Versioning NET Core Mvc中,微软官方提供了一个可用的Api版本控制库Microsoft.AspNetCore.Mvc.Versioning。 2,修改Startup类 这里我们需要在Startup类的ConfigureS ...
分类:Windows开发   时间:2018-10-08 00:25:17    收藏:0  评论:0  赞:0  阅读:243
76. Minimum Window Substring
最小窗口字串 参考 https://www.cnblogs.com/grandyang/p/4340948.html 可以用数组代替hashmap //unordered_map<char,int> letterCnt;vector letterCnt(256,0); ...
分类:Windows开发   时间:2018-10-08 00:11:10    收藏:0  评论:0  赞:0  阅读:213
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!