原创 C#窗體TextBox只能輸入數字

//採購單價 private void TextBox_buyprice_KeyPress(object sender, KeyPressEventArgs e) { if (e.

原创 Node的第一個程序Hello World!

const http = require('http'); const hostname = '127.0.0.1'; const port = 3000; const server = http.createServer((req

原创 C#窗體實現DataGridView一列多個按鈕

代碼: private void DataGridViewEmail_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) {

原创 Nodejs讀取文本文件數據

const http = require('http'); const hostname = '127.0.0.1'; const port = 3000; var fs=require("fs"); var data=fs.rea

原创 Nodejs連接數據庫讀取數據輸出到瀏覽器json格式

const http = require('http'); const hostname = '127.0.0.1'; const port = 3000; var mysql = require('mysql'); var re

原创 Android反編譯源碼

如何反編譯Andoid安裝包? 1、先把apk包修改後綴名爲.zip,如下圖:   2、使用Nodepad++打開classes.dex文件並且把第二行代碼037修改爲036,然後保存    3、使用命令進入d2j-dex2jar

原创 IrisSkin4使用皮膚說明

1、下載IrisSkin4.dll實現WinForm窗體換皮膚 下載地址://download.csdn.net/download/baidu_38995168/12241162 2、 解壓IrisSkin4。將IrisSkin4.dll

原创 Android中的USB轉串口通信

步驟如下: 1、查找設備 2、權限判斷,沒有權限時請求權限 3、連接通信 代碼如下: private void initUsbSerial() { // 1.查找設備 usbManager = (Usb

原创 Android的ListView控件動態更新item數據

效果圖: 佈局文件xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/

原创 C#窗體使用API模擬鍵盤輸出

代碼如下: [DllImport("user32.dll", EntryPoint = "keybd_event", CharSet = CharSet.Auto, ExactSpelling = true)]

原创 Activity的生命週期

onCreate():Activity啓動時被調用 onStart():Activity正在啓動,Activity處於可見,但是前臺還沒有顯示 onResume():Activtiy已經在前臺可見,用戶可與之交互。 onPause();

原创 C#窗體實現控件與控件字體自動適應屏幕大小與分辨率

方法一:只能實現控件位置自動適應。 方法二:能實現控件位置與控件字體的大小自動適應 。   方法一代碼: 添加一個適應類: using System.Collections.Generic; using System.Windows.F

原创 More than one file was found with OS independent path 'META-INF/proguard/androidx-annotations.pro'

報錯: More than one file was found with OS independent path 'META-INF/proguard/androidx-annotations.pro' 解決方法: 在app.grad

原创 C#讀取Excel表格去掉空行

去掉空行代碼: protected DataTable RemoveEmpty(DataTable dt) { List<DataRow> removelist = new List<DataRow>(); for (i

原创 C#窗體使用按鈕實現刪除DataGridView選中行

刪除按鈕事件: private void ButtonDelete_Click(object sender, EventArgs e) { // MessageBox.Show("測試:"+ D