Jump to content

C# Label'de Özel Karakter Sorunu


WolfmanTR_
 Share

Recommended Posts

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: 

IVrAmJx.png

Link to comment
Share on other sites

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 by WolfmanTR_
Link to comment
Share on other sites

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);
Link to comment
Share on other sites

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 by WolfmanTR_
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...