Click here to Skip to main content
15,904,024 members
Home / Discussions / C#
   

C#

 
GeneralRe: Console Check (Part II) Pin
Bassam Abdul-Baki11-Apr-13 9:04
professionalBassam Abdul-Baki11-Apr-13 9:04 
SuggestionRe: Console Check (Part II) Pin
Richard MacCutchan11-Apr-13 6:00
mveRichard MacCutchan11-Apr-13 6:00 
GeneralRe: Console Check (Part II) Pin
Bassam Abdul-Baki11-Apr-13 6:34
professionalBassam Abdul-Baki11-Apr-13 6:34 
SuggestionRe: Console Check (Part II) Pin
Eddy Vluggen11-Apr-13 8:05
professionalEddy Vluggen11-Apr-13 8:05 
GeneralRe: Console Check (Part II) Pin
jschell11-Apr-13 11:10
jschell11-Apr-13 11:10 
GeneralRe: Console Check (Part II) Pin
Bassam Abdul-Baki11-Apr-13 11:30
professionalBassam Abdul-Baki11-Apr-13 11:30 
QuestionC# cystal report using mysql Pin
alam12310-Apr-13 20:40
alam12310-Apr-13 20:40 
AnswerRe: C# cystal report using mysql Pin
Abhinav S10-Apr-13 20:51
Abhinav S10-Apr-13 20:51 
Questioncalculating grades with files and arrays Pin
Magda634710-Apr-13 18:46
Magda634710-Apr-13 18:46 
AnswerRe: calculating grades with files and arrays Pin
PIEBALDconsult10-Apr-13 19:05
mvePIEBALDconsult10-Apr-13 19:05 
AnswerRe: calculating grades with files and arrays Pin
Abhinav S10-Apr-13 19:07
Abhinav S10-Apr-13 19:07 
GeneralRe: calculating grades with files and arrays Pin
Magda634710-Apr-13 19:38
Magda634710-Apr-13 19:38 
AnswerRe: calculating grades with files and arrays Pin
Abhinav S10-Apr-13 19:49
Abhinav S10-Apr-13 19:49 
AnswerRe: calculating grades with files and arrays Pin
V.11-Apr-13 19:57
professionalV.11-Apr-13 19:57 
Questionsmartcard application Pin
prasannakumarV10-Apr-13 18:21
prasannakumarV10-Apr-13 18:21 
AnswerRe: smartcard application Pin
Abhinav S10-Apr-13 19:44
Abhinav S10-Apr-13 19:44 
Questionfirst row blank when export from gridview to excel with master pages included project Pin
Dhyanga10-Apr-13 10:56
Dhyanga10-Apr-13 10:56 
AnswerRe: first row blank when export from gridview to excel with master pages included project Pin
Dhyanga11-Apr-13 4:03
Dhyanga11-Apr-13 4:03 
Questionmaking a desktop lights app Pin
Johnny English10-Apr-13 4:44
Johnny English10-Apr-13 4:44 
AnswerRe: making a desktop lights app Pin
Eddy Vluggen10-Apr-13 5:06
professionalEddy Vluggen10-Apr-13 5:06 
GeneralRe: making a desktop lights app Pin
Johnny English10-Apr-13 5:18
Johnny English10-Apr-13 5:18 
AnswerRe: making a desktop lights app Pin
Eddy Vluggen10-Apr-13 6:52
professionalEddy Vluggen10-Apr-13 6:52 
Johnny English wrote:
but that transparent form will recieve click events rather than desktop itself, right?
Wrong. Alternatively, you can set a specific color to become transparent.
C#
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Collections.Generic;
static class Program
{        
    public static void Main()
    {
        using (var f = new Form())
        {
            var b = new Button();
            b.Text = "Hello world";
            f.Controls.Add(b);
            
            //f.Opacity = 0;
            f.BackColor = Color.Red;
            f.TransparencyKey = Color.Red;
            f.AllowTransparency = true;
            f.WindowState = FormWindowState.Maximized;
            f.ShowDialog();
        }
    }
}

Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: making a desktop lights app Pin
Johnny English10-Apr-13 10:30
Johnny English10-Apr-13 10:30 
GeneralRe: making a desktop lights app Pin
Eddy Vluggen10-Apr-13 11:08
professionalEddy Vluggen10-Apr-13 11:08 
GeneralRe: making a desktop lights app Pin
Johnny English10-Apr-13 20:37
Johnny English10-Apr-13 20:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.