-
ExtractAssociatedIcon
ファイルのアイコンを取得する場合は、ExtractAssociatedIcon関数をつかいます(Icon.ExtractAssociatedIcon メソッド (String))。しかし、ネットワークドライブに保存されて […]
-
Windows標準のバージョン情報を表示する
なんとなく気になったので…。行数は短いので全行をコピってみます。 using System; using System.Reflection; using System.Runtime.InteropServices; […]
-
ファイルのダウンロードとアップロード
WebClientを使うと楽にできる。 ファイルのダウンロード WebClient wc = new WebClient(); try { wc.DownloadFile(“http://example.com/exam […]
-
非同期メソッド
重い処理をしているときにUIを操作する場合には、async/awaitを使う。 private async void MyTask() { // ボタン無効化 button1.Enabled = false; await […]