2021-01-01から1年間の記事一覧

Async/awaite&backgroundWorkerを使ったスレッド処理

Imports System.ComponentModelImports System.ThreadingPublic Class Form1 Dim cts As CancellationTokenSource Private Sub BackgroundWorker1_DoWork(sender As Object, e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork …

VB:BackgroundWorkerを使ったスレッド処理

Imports System.ComponentModelImports System.ThreadingPublic Class Form1 'スレッド開始ボタン処理 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click '処理が行われているときは、何もしない If BackgroundWorker1.Is…

データ収集・保存

using Microsoft.VisualBasic;using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks;using Syst…

テキストファイルをカンマ区切りで読み込み、配列に格納する

private void button6_Click(object sender, EventArgs e) { int time = 2; int Count = 0; string[,] list = new string[10,10]; string listGyo = new string[10]; // CSVファイルの読み込み string filePath = Application.StartupPath + "\\aaa.txt"; //…