WolfmanTR_ Posted July 7, 2013 Share Posted July 7, 2013 web'den label'e csharp & delphi adında yazı çektiğimizi varsayalım.Labelde "&" karakteri görünmüyor.(boşluk) Görünmediği içinde notifyicon.Showballon 'da göstermiyor ve program hata veriyor. hata: Quote Link to comment Share on other sites More sharing options...
KintaRo Posted July 7, 2013 Share Posted July 7, 2013 stackoverflow.com a baktımda gelen & karakterini replace komutuyla (komutu bilmiyorum) & ile değiştirin diyorlar. Quote Link to comment Share on other sites More sharing options...
galetis Posted July 7, 2013 Share Posted July 7, 2013 label.Text = title.Replace("&", "&&"); Quote Link to comment Share on other sites More sharing options...
KintaRo Posted July 7, 2013 Share Posted July 7, 2013 evet benim dediğim xml içinmiş. Quote Link to comment Share on other sites More sharing options...
WolfmanTR_ Posted July 8, 2013 Author Share Posted July 8, 2013 (edited) label.Text = title.Replace("&", "&&"); label e & yazdı ama yine app.Run satırına yönlendiriyor. Sorun : notifyIcon.Text = label.Text +"adasd"; satırından dolayı oldugunu fark ettim. Edited July 8, 2013 by WolfmanTR_ Quote Link to comment Share on other sites More sharing options...
galetis Posted July 8, 2013 Share Posted July 8, 2013 O zaman başka bir stack daha var. Kodları görmeden yardımcı olamam. Quote Link to comment Share on other sites More sharing options...
WolfmanTR_ Posted July 8, 2013 Author Share Posted July 8, 2013 O zaman başka bir stack daha var. Kodları görmeden yardımcı olamam. baslik.Text 'te = sdasdada & adsadasd yazdığını varsayalım string traytext = baslik.Text; trayIcon.Text =traytext+" Dinlemek İçin Tıklayın"; trayIcon.MouseClick += delegate { Process.Start(dosyadi); }; trayIcon.Visible = true; trayIcon.ShowBalloonTip(1, "İndirme Tamamlandı!", baslik.Text + " İndirildi.Dinlemek İçin Tıklayın!", ToolTipIcon.Info); Quote Link to comment Share on other sites More sharing options...
galetis Posted July 8, 2013 Share Posted July 8, 2013 Ben bu koddan hata verdiğini nasıl anlıyacağım şimdi? Quote Link to comment Share on other sites More sharing options...
WolfmanTR_ Posted July 8, 2013 Author Share Posted July 8, 2013 (edited) Ben bu koddan hata verdiğini nasıl anlıyacağım şimdi? baslik.Text'e web'den yazdırma şekli : baslik.Text = web.Document.GetElementById("title").InnerText.Replace("Başlık: ", ""); Edited July 8, 2013 by WolfmanTR_ 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.