Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: making a desktop lights app Pin
Clifford Nelson10-Apr-13 11:04
Clifford Nelson10-Apr-13 11:04 
AnswerRe: making a desktop lights app Pin
Abhinav S10-Apr-13 19:39
Abhinav S10-Apr-13 19:39 
GeneralRe: making a desktop lights app Pin
Johnny English10-Apr-13 20:39
Johnny English10-Apr-13 20:39 
QuestionMessage Closed Pin
10-Apr-13 3:36
sisadosizdah10-Apr-13 3:36 
AnswerRe: Fuzzy Logic Pin
Dave Kreskowiak10-Apr-13 3:41
mveDave Kreskowiak10-Apr-13 3:41 
JokeRe: Fuzzy Logic Pin
fjdiewornncalwe10-Apr-13 4:28
professionalfjdiewornncalwe10-Apr-13 4:28 
GeneralRe: Fuzzy Logic Pin
Dave Kreskowiak10-Apr-13 7:28
mveDave Kreskowiak10-Apr-13 7:28 
AnswerRe: Fuzzy Logic Pin
Clifford Nelson10-Apr-13 11:05
Clifford Nelson10-Apr-13 11:05 
AnswerMy vote of 1 Pin
Eddy Vluggen10-Apr-13 5:07
professionalEddy Vluggen10-Apr-13 5:07 
QuestionHow to read phone number (caller Identity) from Phone in C#. Pin
malikumarhassan9-Apr-13 22:00
malikumarhassan9-Apr-13 22:00 
AnswerRe: How to read phone number (caller Identity) from Phone in C#. Pin
Simon_Whale9-Apr-13 22:43
Simon_Whale9-Apr-13 22:43 
AnswerRe: How to read phone number (caller Identity) from Phone in C#. Pin
Pete O'Hanlon9-Apr-13 22:50
mvePete O'Hanlon9-Apr-13 22:50 
QuestionExcel.Application crash in "child" process Pin
Devis Meroni9-Apr-13 21:28
Devis Meroni9-Apr-13 21:28 
AnswerRe: Excel.Application crash in "child" process Pin
Bernhard Hiller9-Apr-13 23:42
Bernhard Hiller9-Apr-13 23:42 

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.