BLACK SCREEN


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: BLACK SCREEN

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    BLACK SCREEN

    [Originally posted by dinu]

    Hi!

    I have to make a package of applications desinged to be used in a medical environment.

    For this, I need to know if it's possible in Visual Basic to make a black screen (no forms, task-bar etc) and on this black screen to display some simple geometrical forms such as lines, circles etc.

    I also want to know if it's possible in VB to get the refresh rate of the monitor.

    Thank you very much,
    Dinu

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:BLACK SCREEN

    [Originally posted by xterra210]

    Click on FORM1.

    Open its properties.
    BorderStyle= None

    Set it to maximized

    Set its color to black

    you can even have some cool effects for the menu. If you've ever used Bryce 4 the menu is invisble, and when you mouseover the top, the menu is VISIBLE. this is perfect for what you want to do.

    Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Y < 500 Then
    '//code to display menu
    End If
    End Sub

    hope this helps

    to exit the app, you can easily add:

    Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    End
    End Sub


    or on a mouseclick, precedure, just like a ascreensaver.


  3. #3
    Join Date
    Aug 2004
    Posts
    43,023

    Re:BLACK SCREEN

    [Originally posted by John Citizen]

    An alternative that will allow you to do more but will alot harder then to get going then Xterra's example is you can directly reference DirectX.

    This will allow you to get any information about the screen (like refresh rate - resolution) and allow you to create your own black screen and 2D/3D animated or still graphics.

    NOTE this is very complicated and may be over doing it so i'll leave it up to you if you decide to investigate it. Once you learn it but it allows you to do incredible things. You will have to download the DirectX 8 SDK from microsoft's website (they have help support and examples).

    John Citizen
    NeocomIT
    www.neocomit.com.au

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center