winvistafiko Posted June 16, 2015 Share Posted June 16, 2015 Merhabalar öncelikle trackBar1.Value int değeri alabilir yani sayısal değerler olmalı siz ToString() ile yazı biçiminde çağırmaya çalışıyorsun VS de size hata veriyor sonucu; trackBar1.Value = Convert.ToInt32(Registry.LocalMachine.OpenSubKey("xxx").GetValue("xxx")); şeklinde yaparsınız çözmüş olursunuz. Registry deki değer boş dönerse sayısal biçime çevirmede sıkıntı yapabilir try catch ile müdahale edilebilir yine; try { trackBar1.Value = Convert.ToInt32(Registry.LocalMachine.OpenSubKey("xxx").GetValue("xxx")); } catch { trackBar1.Value = 0; // Varsayılan değer ne olucaksa } Kolay gelsin =) Quote Link to comment Share on other sites More sharing options...
KintaRo Posted June 17, 2015 Share Posted June 17, 2015 namespace WindowsFormsApplication14 { public partial class Form1 : Form { ToolTip tp = new ToolTip(); public Form1() { InitializeComponent(); } private void trackBar1_MouseEnter(object sender, EventArgs e) { //tp.ToolTipIcon = ToolTipIcon.Info; //tp.ToolTipTitle = "Trackbar Değeri"; //tp.IsBalloon = true; tp.SetToolTip(trackBar1, trackBar1.Value.ToString()); } } } yorum satırlarından // leri silersen görünümü özelleştirebilirsin. Quote Link to comment Share on other sites More sharing options...
winvistafiko Posted June 17, 2015 Author Share Posted June 17, 2015 Ben yetişemeden @KintaRo hocamla çözmüşünüz kalanını =) Scroll eventi ile olması daha iyi olmuş öbür türlü klavye ile müdahale ettiğiniz zaman bilgi balonu gözükmeyecekti =) 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.