![]() |
|
Removing an email from text - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Visual Basic & .NET Framework (https://sinister.li/Forum-Visual-Basic-NET-Framework) +--- Thread: Removing an email from text (/Thread-Removing-an-email-from-text) |
Removing an email from text - Frenzied - 05-20-2016 So I've managed to make a program that retrieves your skype username via email (webBrowser) And I need to delete the email off the second part of the label: http://prntscr.com/b6h0vt Thanks!
RE: Removing an email from text - Sophisticated - 05-20-2016 I believe you'd use something like Label.2.clear() Or something silly. Mind posting the code RE: Removing an email from text - Frenzied - 05-20-2016 (05-20-2016, 09:51 PM)Sophisticated Wrote: I believe you'd use something like Code: foreach (HtmlElement el in webBrowser1.Document.GetElementsByTagName("div"))
if (el.GetAttribute("className") == "animated bounceInDown")
{
skyperesult = el.InnerText;
}
label4.Text = skyperesult;RE: Removing an email from text - Sophisticated - 05-20-2016 (05-20-2016, 09:53 PM)Frenzied Wrote: Add a timer and then figure that out then Set the timer as 5 seconds Then end the code with Label4.Text = "" RE: Removing an email from text - 0xDEAD10CC - 06-19-2016 (05-20-2016, 09:56 PM)Sophisticated Wrote:(05-20-2016, 09:53 PM)Frenzied Wrote: I think you missed the point, because I seen him post this on another forum. He's retrieved text but only wants part of the retrieved text to show in the label. He doesn't want to clear the label... The solution was Regex or simple string manipulation methods. |