Tento C# kód
stream.End += new EventHandler( SongEnd);
sa vo VB .NET napíše takto:
AddHandler stream.End, AddressOf SongEnd
Ale ako napíše tento kód vo VB .NET ???
stream.Progress += new BASSProgessHandler( Progress);
Ak by som to napísal tak ako v 1. prípade, tak mi to vyhodí "Cross-thread operation not valid: Control 'lblMinutes' accessed from a thread other than the thread it was created on." - Jednoducho potrebujem vytvoriť new BASSProgessHandler a nie new EventHandler.
Poradí mi niekto?
TIP: Přetáhni ikonu na hlavní panel pro připnutí webu
![Vytvorenie event handlera [VB .NET vs C#] – .NET – Fórum – Programujte.com](http://img.cdnprg.webtea.cz/web/logo_new.png)
Super člen

Nahlásit jako SPAM
IP: 85.248.56.–
Hero
Zjistit počet nových příspěvků
































