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

C#

 
AnswerRe: Multiple user accessing single DB Pin
Tom Deketelaere16-Jun-09 1:22
professionalTom Deketelaere16-Jun-09 1:22 
GeneralRe: Multiple user accessing single DB Pin
Hum Dum16-Jun-09 18:55
Hum Dum16-Jun-09 18:55 
GeneralRe: Multiple user accessing single DB Pin
Tom Deketelaere16-Jun-09 21:09
professionalTom Deketelaere16-Jun-09 21:09 
AnswerRe: Multiple user accessing single DB Pin
Nagy Vilmos16-Jun-09 2:35
professionalNagy Vilmos16-Jun-09 2:35 
GeneralRe: Multiple user accessing single DB Pin
Hum Dum16-Jun-09 18:58
Hum Dum16-Jun-09 18:58 
AnswerRe: Multiple user accessing single DB Pin
OriginalGriff16-Jun-09 4:40
mveOriginalGriff16-Jun-09 4:40 
Questioncontroling cells in TableLayoutPanel Pin
samy10016-Jun-09 0:43
samy10016-Jun-09 0:43 
AnswerRe: controling cells in TableLayoutPanel Pin
OriginalGriff16-Jun-09 1:05
mveOriginalGriff16-Jun-09 1:05 
samy100 wrote:
can i do it wuth the TableLayoutPanel control


Yes.

samy100 wrote:
how?


Create your panel, with the rows and columns you want.
Add a label control to each, and set its Dock property to Fill.
Set its TextAlign property to MiddleCenter.

Set each label Click event to the same click handler.
Make your click event look like this:
private void label_Click(object sender, EventArgs e)
    {
    if (sender is Label)
        {
        Label lab = sender as Label;
        if (lab.BackColor == Color.Red)
            {
            lab.BackColor = Color.AntiqueWhite;
            lab.Text = "Hello";
            }
        else
            {
            lab.BackColor = Color.Red;
            lab.Text = "Goodbye";
            }
        }
    }


No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.

This message is made of fully recyclable Zeros and Ones

QuestionRemote Desktop Connection Pin
singhdurgesh16-Jun-09 0:17
singhdurgesh16-Jun-09 0:17 
AnswerRe: Remote Desktop Connection [modified] Pin
Baran M16-Jun-09 1:38
Baran M16-Jun-09 1:38 
GeneralRe: Remote Desktop Connection Pin
singhdurgesh16-Jun-09 1:56
singhdurgesh16-Jun-09 1:56 
GeneralRe: Remote Desktop Connection Pin
Baran M16-Jun-09 2:03
Baran M16-Jun-09 2:03 
GeneralRe: Remote Desktop Connection Pin
singhdurgesh16-Jun-09 2:17
singhdurgesh16-Jun-09 2:17 
GeneralRe: Remote Desktop Connection Pin
Baran M16-Jun-09 2:38
Baran M16-Jun-09 2:38 
QuestionTracking number of a given object stored in memory Pin
Nil_IQ15-Jun-09 23:59
Nil_IQ15-Jun-09 23:59 
AnswerRe: Tracking number of a given object stored in memory [modified] Pin
Luc Pattyn16-Jun-09 0:22
sitebuilderLuc Pattyn16-Jun-09 0:22 
JokeRe: Tracking number of a given object stored in memory Pin
OriginalGriff16-Jun-09 1:14
mveOriginalGriff16-Jun-09 1:14 
GeneralRe: Tracking number of a given object stored in memory Pin
Luc Pattyn16-Jun-09 1:26
sitebuilderLuc Pattyn16-Jun-09 1:26 
AnswerRe: Tracking number of a given object stored in memory Pin
Rob Philpott16-Jun-09 0:22
Rob Philpott16-Jun-09 0:22 
QuestionGroup Policy Management Pin
subhabasu15-Jun-09 23:52
subhabasu15-Jun-09 23:52 
AnswerRe: Group Policy Management Pin
Calla17-Jun-09 0:48
Calla17-Jun-09 0:48 
GeneralRe: Group Policy Management Pin
subhabasu17-Jun-09 18:24
subhabasu17-Jun-09 18:24 
QuestionSerial Ports problem Pin
izakiel15-Jun-09 23:16
izakiel15-Jun-09 23:16 
AnswerRe: Serial Ports problem Pin
shineqiujuan12-Jan-10 22:26
shineqiujuan12-Jan-10 22:26 
QuestionC# - sending mails Pin
treuveni15-Jun-09 22:04
treuveni15-Jun-09 22:04 

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.