.NET 3.x Отображения данных во время выполнения программы - C#
Формулировка задачи:
Добрый день, помогите написать программу. Есть какие-то способ для отображения данных например в лейбла во время выполнения программы с какой паузой для просмотра тех данных. Я начал писать но мне ничего невыхода, вот мой код:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xml; using System.Data.OleDb; using System.Threading; using System.Runtime.InteropServices; namespace Show { public partial class Form1 : Form { private int CountPeaple; Config cf=new Config(); public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { this.Width = cf.showWidth; this.Height = cf.showHeight; this.Location = new Point(cf.locationX, cf.locationY); } private void Control_Panel() { ControlPanel cp= new ControlPanel(); cp.Show(); } private void Form1_KeyPress(object sender, KeyPressEventArgs e) { //ESC - exite if (e.KeyChar == (char)27) { Application.Exit(); MyConnection.Close(); } //+ if (e.KeyChar == (char)43) { Control_Panel(); } //probil if(e.KeyChar==(char)32) { StartShow(); } } private void StartShow() { Label mylab = new Label(); mylab.Text = "в\n жури 1"; mylab.AutoSize = true; mylab.Font = new Font("Arial", 70, FontStyle.Bold); mylab.ForeColor = System.Drawing.Color.Red; mylab.TextAlign = ContentAlignment.TopCenter; this.Controls.Add(mylab); Thread.Sleep(3000); mylab.Text = "ТЕСТ 1"; // Application.Exit(); } } }
Решение задачи: «.NET 3.x Отображения данных во время выполнения программы»
textual
Листинг программы
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xml; using System.Data.OleDb; using System.Threading; using System.Runtime.InteropServices;
ИИ поможет Вам:
- решить любую задачу по программированию
- объяснить код
- расставить комментарии в коде
- и т.д