728x90 반응형 thread1 C# 윈폼(Windows Forms) Thread 사용 using System; using System.Windows; using System.Threading.Tasks; namespace WpfApp { /// /// Interaction logic for MainWindow.xaml /// public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } private void button1_Click(object sender, RoutedEventArgs e) { // 작업쓰레드 생성 Task.Factory.StartNew(Run); } private void Run() { // 해당 쓰레드가 UI쓰레드인가? if (textBox1.Dispatcher.Che.. 2020. 11. 2. 이전 1 다음 728x90