I’m writing a very simple program that says whatever you type into a textbox out loud (background here). It’s written in VB.net 2008 Express and uses Vista’s built-in text-to-speech capabilities. Source code here.
Whenever I push the button to make it talk, the program freezes until the speech is complete. How can I make it stay active so I can continue typing new sentences into a queue?
Does it have anything to do with Application.DoEvents() or multi-threading? I know I’ve done this before, but I don’t remember how and that was way before .NET anyway. Is there a proper/better way to do this nowadays?
[rant]Glatrhgagasfgisadfsafeehatehatehatevideos. And THE MONSTROSITY THAT IS SILVERLIGHT! There was nothing wrong with animated .GIFs!!! BRING BACK GOPHER!!!
[/rant]
Ahem. I will investigate this newfangled threadpool thing and hopefully make it work. Thank you both
And hey, if anyone wants to go ahead and put in some sample code for making a simple multithreaded app… (I tried Googling, but there is sooooo much out there that it’s hard to find something for the most recent version).
Say what you will about Microsoft, their development tools & APIs rock. I only wish web development was as sophisticated as windows form development was in, say, 1992. But the horror that is HTML persists…
Does Microsoft’s promise of “write once, deploy everywhere (meaning on the web and all Windows versions)” ring true or is that just empty propaganda?
How difficult is it to take, say, a Windows Forms application and transfer it to the web? How is the UI difference between Windows and HTML handled, for example? And what’s this fancy schmancy WPF thing? Is that just another name for “make your app as glassy as Aero!” or does it actually help in cross-platform interface drawing?
I grew up on LAMP and Visual Studio, but the sheer bliss that is the VS IDE is something Dreamweaver et al. can only dream of.
VS2008 makes earlier versions seem like Wordpad, in truth. It is the current pinnacle of development environments; I mean, I like Eclipse, especially the version that Adobe has banged into Flex Builder, but it still pales in comparison to VS2008.
There are a lot of parallels between ASP.NET and Windows Forms, these days. They have gone a long way to make them functionally similar, especially with the controls like grids and views. Even the paradigm, with the code-behind files that were introduced in the original ASP.NET approach, is very similar to Forms. And, with things like login in and user control now extended to Windows Forms (for which you still need to create a web service), the architecture can be shared to a great degree between a web application and a Forms application. Nonetheless, there are still a great many differences between the two. ASP.NET is too deeply entrenched in the web/HTML paradigm to really be easily interoperable with Forms applications.