Quantcast
Channel: 木子屋 - Win编程
Browsing all 206 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Playing Audio on Android from an HTML5 File[转]

IntroductionEarlier today, I came across a problem. I have been working on an App in Android that displays HTML5 files from the assets folder inside a WebView. One of the big problems with playing...

View Article


Image may be NSFW.
Clik here to view.

Android使用MediaPlayer播放mp3音乐示例

复制内容到剪贴板 程序代码package com.mzwu.www;import android.media.MediaPlayer;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.view.View;import android.widget.Button;import...

View Article


Image may be NSFW.
Clik here to view.

Android设置Theme.NoTitleBar去除标题栏总出错解决方法

在AndroidManifest.xml配置去除应用标题栏,手机安装后一打开就出错:复制内容到剪贴板 程序代码<activity    android:name=".MainActivity"    android:theme="@android:style/Theme.NoTitleBar">    <intent-filter>        <action...

View Article

Image may be NSFW.
Clik here to view.

Win64版cURL命令参数及用法示例

cURL是利用URL语法在命令行方式下工作的开源文件传输工具。它被广泛应用在Unix、多种Linux发行版中,并且有DOS和Win32、Win64下的移植版本。Win64版cURL命令参数(7.45.0) 引用内容G:\curl-7.45.0\AMD64>curl -hUsage: curl [options...] <url>Options: (H) means...

View Article

Image may be NSFW.
Clik here to view.

Visual Studio 2015为解决方案创建目录磁盘文件结构

...

View Article


Image may be NSFW.
Clik here to view.

C#的for循环怎么重新进行本次循环?

我们知道,C#的continue语句可以让for循环跳到下一次循环,但若某次循环时出错,我们怎么重新进行一次本次循环呢?简单循环比较好解决:复制内容到剪贴板 程序代码static void Main(string[] args){    bool err = true;    for (int i = 1; i <= 5; i++)    {        try        {...

View Article

Image may be NSFW.
Clik here to view.

C#二维数组排列组合算法(每列取一个元素组合)

复制内容到剪贴板 程序代码/// <summary>/// C#二维数组排列组合算法(每列取一个元素组合)/// </summary>/// <param name="args"></param>/// <returns></returns>static List<string>...

View Article

Image may be NSFW.
Clik here to view.

按键精灵QQ群成员消息群发脚本(For QQ7.9轻聊版)

复制内容到剪贴板 程序代码/********************************单个QQ群成员群发消息(需设置QQMessage的值)********************************/Delay 5000 //延时5秒供激活QQ群窗口Dim QQMessage : QQMessage = "在吗?"//要发送的QQ消息Dim QQHwnd : QQHwnd =...

View Article


Image may be NSFW.
Clik here to view.

C#应用程序获取自身路径和文件名示例

在ConsoleApplication和WindowsFormsApplication都能使用:复制内容到剪贴板 程序代码//获取应用程序自身路径和文件名string filePath = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;只能在WindowsFormsApplication使用:复制内容到剪贴板...

View Article


Image may be NSFW.
Clik here to view.

C#应用程序删除自身示例(不另外建批处理文件)

C#无法删除正在运行的应用程序自身文件,但我们可以调用dos的del命令进行删除,加上ping做适当延时,简直完美:复制内容到剪贴板 程序代码//using System.Diagnostics;Process.Start("cmd.exe", string.Format("/C echo 删除需要一点时间,请稍等... & ping -n 1 delay.mzwu.com > nul...

View Article

Image may be NSFW.
Clik here to view.

手工添加卸载程序到控制面板添加或删除程序

在注册表添加如下信息即可自行添加卸载程序到控制面板添加或删除程序:复制内容到剪贴板 程序代码Windows Registry Editor Version...

View Article

Image may be NSFW.
Clik here to view.

C#应用程序自动请求以管理员身份运行

Windows 7及更新版本的操作系统增加了 UAC(用户账户控制) 的安全机制,如果 UAC...

View Article

Image may be NSFW.
Clik here to view.

Check .NET Version with Inno Setup[转]

Inno Setup by Jordan Russell is a great installation scripting program, but lacks a built-in function to determine the .NET Framework version installed on the target machine. Fortunately, it’s easy to...

View Article


Image may be NSFW.
Clik here to view.

Inno Setup检测安装.Net Framework运行环境脚本

在线下载手工安装.Net Framework复制内容到剪贴板 程序代码[Code]function InitializeSetup(): Boolean;var IEPath, NetV2DownUrl:string;var ResultCode:Integer;begin           if not IsDotNetDetected('v2.0', 0) then begin      if...

View Article

Image may be NSFW.
Clik here to view.

Modular InnoSetup Dependency Installer[转]

IntroductionThis article contains a modular InnoSetup install script that downloads (if setup files don't exist locally) and installs various dependencies like .NET Framework 1.1/2.0/3.5/4.0/4.6 or C++...

View Article


Image may be NSFW.
Clik here to view.

C#读取并显示其他应用程序图标示例

复制内容到剪贴板 程序代码//using System.Drawing;pictureBox1.Image = Icon.ExtractAssociatedIcon(@"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe").ToBitmap();

View Article

Image may be NSFW.
Clik here to view.

Visual Studio 2010+ 可选功能

Visual Studio 2010Visual Studio 2012Visual Studio 2013Visual Studio 2015

View Article


Image may be NSFW.
Clik here to view.

折腾一晚,终于安装上了Visual Studio 2017

Visual Studio 2017采用了新的模块化安装方案,微软官方没有提供ISO镜像格式的离线安装包,仅提供一个EXE格式的在线安装程序。虽然官方有说明怎么下载Visual Studio 2017离线安装包进行离线安装,但想想反正都得下载,不如模块化安装按需下载可能快些,却也折腾了一晚上。[1].Visual Studio Professional...

View Article

Image may be NSFW.
Clik here to view.

WinForm字符串保存在Resources和Settings的区别

WinForm字符串保存在Resources和Settings的区别复制内容到剪贴板 程序代码//Resources : 只读MessageBox.Show(Properties.Resources.Nick);复制内容到剪贴板 程序代码//Settings : //          当范围为用户时可读写//...

View Article

Image may be NSFW.
Clik here to view.

Linq to SQlite使用示例

一、准备文件:■SQLite Administrator:https://sqliteadmin.orbmu2k.de/■Binaries of SQLite for .NET:http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki■DbLinq:...

View Article
Browsing all 206 articles
Browse latest View live