acipinarli Posted October 16, 2015 Share Posted October 16, 2015 Arkadaşlar bir program yapıyorum ve usb portuna bir flash bellek taktığımda listboxta listeleme niyetim var. Bunun için programı kapat aç yapmadan bir yol aradım ve bulamadım. Daha sonra bir buton eklemek aklıma geldi ve butona tıklayınca liste yenileniyor ancak bunu otomatik yapmak gibi bir işleme gidersek nasıl yaparız. Yani flash takınca listeye eklenecek çıkartınca listeden silinecek. timer kullanmayı düşündüm ancak bu kez listeden bir sürücü seçince işlem yapmama gerekecek ve bu sürede timer çalışırsa liste yenileneceği için seçme işlemi silinmiş olacak. yardımınızı bekliyorum. Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted October 16, 2015 Editor Share Posted October 16, 2015 timer eklersin. butondaki kodları arkaplanda belirli zaman aralıkları ile tekrar ettirirsin. http://www.codeproject.com/Articles/63878/Enumerate-and-Auto-Detect-USB-Drives Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.