Close

Results 1 to 6 of 6
  1. #1
    DF Probation Goldberg's Avatar
    Join Date
    Jun 2001
    Location
    Landaaaan!
    Posts
    14,453
    Thanks
    1,325
    Thanked:        1,547
    Karma Level
    1153

    Default On-Screen Display (OSD) with VB.Net?

    Hi all,

    I'm looking to display info on screen as my program is running. I need it to be displayed on screen rather than in a form or a message window. Similar to when you change TV channels or if you have a multimedia keyboard the volume control etc.....

    I have found an old VB5 solution but it wont work in vb.Net http://www.freevbcode.com/ShowCode.asp?ID=1288

    If anyone knows how to do this it would be much appreciated. I have a feeling you probably cannot as vb.net seems to want everything done within the form. I have got around this in the past with other elements but cannot crack this.
    We all make mistakes sometimes

  2. #2
    DF VIP Member big man's Avatar
    Join Date
    Jul 2002
    Location
    The big smoke
    Posts
    2,824
    Thanks
    8
    Thanked:        0
    Karma Level
    445

    Default Re: On-Screen Display (OSD) with VB.Net?

    It's been a while since i've written any winforms stuff, but i remember that you can set a window to use an image as a background, so you can make it look nice (think splash / loading screens). Maybe you could use this with a completely transparent image to remove the standard windows look and then overlay your information

    It might be worth a look
    I am a loud man with a very large hat. This means I am in charge

    Never argue with an idiot. They will bring you down to their level, then beat you with experience.

  3. #3
    DF Probation Goldberg's Avatar
    Join Date
    Jun 2001
    Location
    Landaaaan!
    Posts
    14,453
    Thanks
    1,325
    Thanked:        1,547
    Karma Level
    1153

    Default Re: On-Screen Display (OSD) with VB.Net?

    Good thinking... I'll give that a try. If I use 'Send to back' it should never come in focus either which would be a problem.
    We all make mistakes sometimes

  4. #4
    DF Probation Goldberg's Avatar
    Join Date
    Jun 2001
    Location
    Landaaaan!
    Posts
    14,453
    Thanks
    1,325
    Thanked:        1,547
    Karma Level
    1153

    Default Re: On-Screen Display (OSD) with VB.Net?

    OK Cracked it (with your help )

    Set up your form, take off the borders so no controls etc....
    Set the background colour to White
    Set the TransparencyKey to the same white
    Add the label with a Transparent background.
    Make the font in the label big bold and bright

    Bingo

    It's annoying that you just cannot set the transparency of the Form to Transparent! It gives you the option but crashes and complains that your not allowed!!!!

    But sorted

    Oh ayou may need to add the line: TransparencyKey = Color.Transparent to the Form Load
    Last edited by Goldberg; 4th April 2008 at 04:26 PM.
    We all make mistakes sometimes

  5. #5
    DF VIP Member big man's Avatar
    Join Date
    Jul 2002
    Location
    The big smoke
    Posts
    2,824
    Thanks
    8
    Thanked:        0
    Karma Level
    445

    Default Re: On-Screen Display (OSD) with VB.Net?

    Cool - glad it worked
    I am a loud man with a very large hat. This means I am in charge

    Never argue with an idiot. They will bring you down to their level, then beat you with experience.

  6. #6
    DF Probation Goldberg's Avatar
    Join Date
    Jun 2001
    Location
    Landaaaan!
    Posts
    14,453
    Thanks
    1,325
    Thanked:        1,547
    Karma Level
    1153

    Default Re: On-Screen Display (OSD) with VB.Net?

    It's a bit ropey getting it to update. Refresh does not seem to work so I have to Close it, change the label and then show it again..... Why do M$ have to make easy things difficult...

    But it works and i'm well please with it.
    We all make mistakes sometimes

Similar Threads

  1. xxxxxxx TFT FLAT SCREEN MONITER XXXXXXX
    By dark manz (AKA master99) in forum Hall Of Shame
    Replies: 19
    Last Post: 27th September 2002, 06:45 PM
  2. Replies: 2
    Last Post: 17th September 2002, 02:38 PM
  3. How do you delete the stupid logos on the screen?
    By hn120 in forum Unlocking Questions & Solutions
    Replies: 4
    Last Post: 15th September 2002, 07:53 AM
  4. Blue screen of death Problem
    By crocodile13 in forum PC Problems
    Replies: 4
    Last Post: 13th September 2002, 01:53 PM
  5. 8210:screen probs
    By Danger Mouse in forum Unlocking Questions & Solutions
    Replies: 9
    Last Post: 6th September 2002, 10:08 PM

Social Networking Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •