Visual Studio'da yaratılan uygulama hata veriyor

cilginmanyakdeli

Femtopat
Katılım
30 Temmuz 2020
Mesajlar
31
Şu kodu kullanıyorum.

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;
Using System. Diagnostics;

Namespace araç.
{
Public partial class form1: Form.
{
Public Form1()
{
InitializeComponent();
}

Private Void BUTTON1_CLICK(object sender, eventargs e)
{
Process. Start(@"C:\Program files (X86)\Microsoft Office\Office12\EXCEL.EXE");
}

Private Void BUTTON2_CLICK(object sender, eventargs e)
{
Process. Start(@"C:\Program files (X86)\Microsoft Office\Office12\EXCEL.EXE");
}
}
}
Ve basit, iki buton var, birine basınca Excel açsın. Ama daha uygulamayı açar açmaz Excel'i açıyor. Nasıl düzeltebilirim?
 
Son düzenleyen: Moderatör:
İlginç, internette de böyle bir sorun yaşayan göremedim.

Form load eventi ekleyebilir misin ? ( Designer ekranından boş form'a çift klik yaparsan otomatik ekler. ) Oraya da 1-2 öylesine kod yaz, load metodundan sonra yine buton clicklere gidecek mi bakalım.

Birde designer'ın kod sayfasını paylaşabilir misin ? Belkide auto click tarzı birşey tanımlanmıştır butonlara.
 

Yeni konular

Geri
Yukarı