estimado Posted March 29, 2012 at 12:05 PM Report #446295 Posted March 29, 2012 at 12:05 PM boas Estou com uma ideia e gostaria que me podessem ajudar! Bem, eu no meu projecto queria meter um Menu! .... Bem, nesse Menu eu queria colocar um Label, depois esse Label passado 3/4 segundos desaparecia e voltava a aparecer outro Label, mas com a escrita diferente! Tipo, no 1º Label que aparece-se queria: Menu 2º Label Clica para aceder ao Menu Podem-me ajudar? Estou a fazer em C# obrigado cumps Visual Studio 2010 C#
José Lopes Posted March 29, 2012 at 12:30 PM Report #446299 Posted March 29, 2012 at 12:30 PM Parece-me que é qualquer coisa deste género que queres... http://www.java2s.com/Tutorial/CSharp/0460__GUI-Windows-Forms/LabelTextChange.htm Quando te pedirem peixe.... ensina-os a Pescar!!Hum..lálálálá!!
estimado Posted March 29, 2012 at 06:44 PM Author Report #446445 Posted March 29, 2012 at 06:44 PM boas Não estou a conseguir! Visual Studio 2010 C#
Gonka Posted March 29, 2012 at 08:36 PM Report #446462 Posted March 29, 2012 at 08:36 PM Explica melhor por favor... Não percebi nada. O que queres fazer propriamente?
estimado Posted March 29, 2012 at 08:40 PM Author Report #446463 Posted March 29, 2012 at 08:40 PM Tipo, criar um Label e nesse Label escrever tipo "Menu" Depois passado alguns segundos esse mesmo Label muda de nome! De "Menu" para "Clica para aceder"! O Label muda automaticamente passado alguns segundos Visual Studio 2010 C#
Gonka Posted March 29, 2012 at 08:54 PM Report #446469 Posted March 29, 2012 at 08:54 PM Ah! Tens que usar um timer.
estimado Posted March 29, 2012 at 08:54 PM Author Report #446470 Posted March 29, 2012 at 08:54 PM Podes-me ajudar a fazer isso? Obrigado desde já cumps:D Visual Studio 2010 C#
Gonka Posted March 29, 2012 at 09:16 PM Report #446477 Posted March 29, 2012 at 09:16 PM Por exemplo: class Program { static Timer myTimer = new Timer(); public static void Main(string[] args) { myTimer.Elapsed += new ElapsedEventHandler( DisplayTimeEvent ); myTimer.Interval = 1000; myTimer.Start(); Console.WriteLine("Menu"); while (!Console.Read().Equals("sair")) { //nao faz nada... } } public static void DisplayTimeEvent( object source, ElapsedEventArgs e ) { Console.WriteLine("O texto mudou sozinho!"); myTimer.Stop(); } } Isto está para Console. Agora mudas como te convém.
estimado Posted March 29, 2012 at 09:27 PM Author Report #446482 Posted March 29, 2012 at 09:27 PM boas Bem, aparece-me depois um erro sobre " ElapsedEventArgs" Obrigado Visual Studio 2010 C#
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now