Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Classification Banner

Status
Not open for further replies.

murisonc

Programmer
Feb 11, 2015
1
US
thread779-1636126

I've been digging around trying to find a simple solution to the problem the OP posted. As for the why this is needed vs. putting a label on the monitor, many systems can be KVM'd (approved KVM for multiple classifications of course). Our solution for a long time has been a product from the Air Force research labs called JEDI. Recently they have said they will need to start charging for the software so I rolled my own.

The trick is a simple windows form with a label on it. I'll be adding additional code to set the background color and label text based on registry settings but this is a 90% solution for anyone else that needs it.

Code:
private void Form1_Load(object sender, EventArgs e)
        {
            int w = SystemInformation.VirtualScreen.Width;
            //int h = SystemInformation.VirtualScreen.Height;
            this.BackColor = Color.Green;
            this.Width = w +20 ;
            this.AllowTransparency = true;
            this.SizeGripStyle = SizeGripStyle.Hide;
            this.Top = 0;
            this.Left = 0;
            this.FormBorderStyle = FormBorderStyle.None;
            this.label1.Left = (w / 2) - (this.label1.Width /2);
            this.label1.TextAlign = ContentAlignment.MiddleCenter;
            this.TopMost = true;
            this.Opacity = .75;
            this.ShowInTaskbar = false;
            this.Height = 25;

        }
 
We used a different solution

1) Change the colour of the background and the default text lettering according to classification.
2) Like yours, it was a floating semi-transparent logo but this was written in Windows SDK so you didn't need the latest and greatest 20Mb of .net framework, nor did you need the numerous versions of MFC. It was compiled as /MT so it could run standalone on all systems ranging from W2K to W7. The text was driven from a configuration file so reconfiguration was a doddle.

The strange bit, when I did it was that nobody was aware that all this could be done in Windows SDK. They all thought you needed .net framework or at least MFC to do it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top