码迷,mamicode.com
首页 > Windows程序
C#使用Environment.TickCount 自定义的定时器类
Environment.TickCount, 官网介绍:一个 32 位带符号整数,它包含自上次启动计算机以来所经过的时间(以毫秒为单位)。 *由于 TickCount 属性值的值是32位有符号整数,因此,如果系统连续运行,TickCount 将从零递增到 Int32.MaxValue 大约24.9 ...
分类:Windows程序   时间:2020-02-27 15:50:24    阅读次数:178
异步调用进度条窗体弹出加载数据
异步调用进度条窗体弹出 public partial class LoadProgressBar : Form { int losttime = 0; /// <summary> /// 是否可以关闭窗体 /// </summary> public bool ClosedFlag = false; ...
分类:Windows程序   时间:2020-02-27 14:36:06    阅读次数:85
WPF动态加载Menu菜单
有一个项目动态加载wpf的菜单控件可以非常有效的做到更具用户权限显示或控制MenuItem菜单,如何实现这种功能,其实也非常简单。 首先需要了解Wpf的menu菜单控件,她的结构其实也非常简单 <Menu DockPanel.Dock="Top" Name="MenuOptionGroup"> <M ...
分类:Windows程序   时间:2020-02-27 11:37:05    阅读次数:229
调用高德地图web api 规划路线
实现地图输出,出发地与目的地路线,效果如下 具体代码如下 <!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="vi ...
分类:Windows程序   时间:2020-02-27 09:14:09    阅读次数:139
Error creating bean with name 'bootstrapImportSelectorConfiguration': Initialization of bean failed;
idea启动微服务项目报错。 java org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bootstrapImportSelectorConfiguration': Ini ...
分类:Windows程序   时间:2020-02-27 01:20:16    阅读次数:872
链表和双链表(AcWing 826.827)
今天我们讲的双链表和单链表是用数组的形式进行的。 也就是用邻接表的形式完成的。 #include<bits/stdc++.h> using namespace std; const int N =100010; char cp; int x,k; int idx,head; int a[N],Nex ...
分类:Windows程序   时间:2020-02-27 01:19:38    阅读次数:88
c#音乐播放器
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Li ...
分类:Windows程序   时间:2020-02-27 00:58:42    阅读次数:80
leetcode76 Minimum Window Substring
1 """ 2 Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). 3 Example: 4 Inpu ...
分类:Windows程序   时间:2020-02-27 00:51:50    阅读次数:73
Windows和Ubuntu双系统时钟同步的方法。
参考文章 https://blog.csdn.net/zyqblog/article/details/79318955 电脑安装Ubuntu和Windows双系统以后,每次Ubuntu时间和时区设了以后去Windows发现会少8个小时 原因在于两个OS对BIOS里面的时间的理解不一样。可以设置一个新 ...
分类:Windows程序   时间:2020-02-26 23:20:01    阅读次数:141
windows 日志查询错误--设备未就绪
错误详情:服务器打开安全日志提示查询错误,设备未就绪,解决方法:1.右击对应的事件名称,检查日志存放的路径是否有权限。2.备份删除当前的(.evtx)文件3.重启WindowsEventLog服务。
分类:Windows程序   时间:2020-02-26 22:56:54    阅读次数:79
win10+anaconda3+pytorch安装
1-下载anaconda3并安装 2-打开condaprompt 3-conda create --name pytorch python=3.6 遇到提示键入y 4-activate pytorch 5-从官网 https://pytorch.org/get-started/locally/ 选择 ...
分类:Windows程序   时间:2020-02-26 22:41:03    阅读次数:128
win7无法访问局域网中其它计算机:0x80070035
https://zhidao.baidu.com/question/304232217962584564.html https://jingyan.baidu.com/article/ff41162595d47e12e48237e7.html 用鼠标点“开始按钮”→“管理工具”→“组件服务”。 也可 ...
分类:Windows程序   时间:2020-02-26 20:42:19    阅读次数:91
【C#】post请求
public static string PostHttpResponse(string url, Encoding encoding, string parameters) { if (string.IsNullOrEmpty(url)) { throw new ArgumentNullExcep ...
分类:Windows程序   时间:2020-02-26 18:56:54    阅读次数:75
Win10安装1 —— 引言与目录
一:引言 众所周知,电脑出现问题了后,重启 可以解决90%的问题,重装 可以解决99%的问题,重买 可以解决100%的问题。重启,一般人都会;重买,不到万不得已没必要;而重装,就有很多优势了。 在遇到一些“内存不能为read”、“蓝屏死机”,、无限重启”、“系统进不去”等情况,有的可以通过百度解决, ...
分类:Windows程序   时间:2020-02-26 18:55:35    阅读次数:71
JS和C#访问遇到QueryInterface调用出错
在原来的WinForm里,我们只要在窗体类的头部添加属性[System.Runtime.InteropServices.ComVisibleAttribute(true)],然后 webBrowser1.ObjectForScripting = this;这样设置完后,页面上的JS就能访问窗体类的方 ...
分类:Windows程序   时间:2020-02-26 17:09:42    阅读次数:113
WPF 使用UserControl来切换界面
程序集整体框架如下 主窗体UI文件MainWindow.xaml <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http: ...
分类:Windows程序   时间:2020-02-26 16:53:25    阅读次数:382
C#设置一个控件可以鼠标拖动
C#设置一个控件可以鼠标拖动: 新建一个C#项目, 创建一个label控件, 设置label的鼠标按下和抬起事件分别为:label1_MouseDown和label1_MouseUp。 对代码进行如下修改。 public partial class Form1 : Form { private Po ...
分类:Windows程序   时间:2020-02-26 15:33:14    阅读次数:113
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!