Message Bar

user21009

Member
Joined
Aug 10, 2008
Messages
12
Programming Experience
Beginner
Hi

I want to write a software similar to the one that is displayed on various TV Programs. For example while watching Formula 1 a bar that shows the current time of the drivers and their race classification is being shown and then removed. This program runs on top of everything. Is there any way to implement that or could you give me a link with an example.

Thanks in advance
 
Set TopMost property True to make your form topmost.
 
Thanks for your reply

Do you know how to make the form looks as pretty as the one I described in my 1st post?
I mean make a flashing message because in my attempt to implement this the form looks very "solid".
For example I want a flashing message which shows a text that is moving. Does anyone know how to achieve this?

thanks
 
A few simple tricks can be utilized for such fancyness:
  • Setting form transparency with Opacity property is very cool.
  • Movement can be achieved with timers, for example one Timer that slides a Label over the form, and another used for letting the label wait for a while. The movement timer can be coded for that special Formula1 effect by using a optical illusion; If you at first move the Label with large step then gradually smaller steps the Label will look like it comes flying in at large speed and slow down to a full stop, while the Timer interval stays the same. This is very easy to code once you figure out what is supposed to happen, example is attached (yes, VB 2008)
  • Another style-only trick is to skin the form with a shaped image, have a read at article Shaped .NET Windows Forms.
 

Attachments

  • vbnet35-slidein.zip
    13.9 KB · Views: 30
May I ask if the code you've attached works for Visual Basic.Net 2005?
Yes, it does, I can see that it will compile for .Net 2.0 from VB 2008 studio. Why are you using VB 2005 by the way? VB 2008 is much better, it can also produce .Net 2.0 compatible assemblies when this is required for deployment.
 
I cannot open the file u have attached using visual studio 2005. It says "The selection file is a solution file, but was created by a newer version of this application and cannot be opened".
Is there any way to open it?


Thanks
 
Open the .vbproj file instead, I believe the .vbproj files don't have specific version formatting in them which means they can all be read by the various versions of VS.

After opening the .vbproj file, you can save it as a separate solution which will give you a vs 2005 .sln file
 
I tried to open the file u described but all it gives me is
"<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />"
and nothing appears beyond this.

Thanks in advance
 
Back
Top