dostum kusura bakma bende yapılandırmacı anlayışa göre eğitim veriyorum
ve ondan bu kadar geçiktiriyorum fakat konuyu çözüldü olarak işaretlediğine göre belliki artık bıkmışsın sana durumu açıklayayım;
bunu basitçe bir timer nesnesiyle yapabilirsin öte yandan message box'unu özelleştirmek için dialog result kullan faydasını görürsün şimdi
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
DialogResult dr = new DialogResult();
int rndsys, wd = 0;
Random rnd = new Random();
private void Form1_Load(object sender, EventArgs e)
{
this.Hide();
}
private void timer1_Tick(object sender, EventArgs e)
{
this.Hide();
while (wd < 10)
{
rndsys = rnd.Next();
dr = MessageBox.Show(rndsys.ToString(), (rndsys / 2).ToString(), MessageBoxButtons.OK);
wd++;
}
}
}
}
bu kod kısmı projenin;
öte yandan foruma 1 tane timer nesnesi ekle ve enable ayarını true yap ardıdan çalıştır.
eğer olurda yapamazsan dosyayı buraya upload ediyorum indirip bakabilirsin
WindowsFormsApplication1.rar dosyasını indir, download. Dosya.tc .Dosya Upload. Dosya Paylaş. Dosya Yükle
www.dosya.tc
olurda "bu adam bana trojen rat atabilir" diye düşünürsen buda virüs total linki;
VirusTotal
www.virustotal.com