Click here to Skip to main content
15,908,768 members
Home / Discussions / C#
   

C#

 
AnswerRe: Date And Time Pin
NaNg1524117-May-06 6:54
NaNg1524117-May-06 6:54 
AnswerRe: Date And Time Pin
NaNg1524118-May-06 2:37
NaNg1524118-May-06 2:37 
QuestionDataGridView - row height bigger than grid's height Pin
Pedro Miguel Pereira17-May-06 5:08
Pedro Miguel Pereira17-May-06 5:08 
Question2.0 gridview Pin
fmardani17-May-06 4:48
fmardani17-May-06 4:48 
QuestionPassing enum as a parameter Pin
dayakar_dn17-May-06 4:43
dayakar_dn17-May-06 4:43 
AnswerRe: Passing enum as a parameter Pin
NaNg1524117-May-06 5:07
NaNg1524117-May-06 5:07 
QuestionToolStripComboBox problem Pin
Wjousts17-May-06 3:47
Wjousts17-May-06 3:47 
QuestionCheckbox control Pin
jackalfb17-May-06 3:31
jackalfb17-May-06 3:31 
i have a textbox, a button and a checkbox in my form.

if button click and then checkbox click , in my textbox i can draw rectangle ,this is not problem
but checkbox doubleclick , still i can draw rectangle to the textbox, how can i block this.

my code;

bool bbas=false;
bool rbutton=false;

private void button1_Click(object sender, System.EventArgs e)
{
bbas=true;
}

private void textbox1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if(bbas&&rbutton)
{
graphic.DrawRectangle(blackpen,e.X-25,e.Y-25,50,50);
graphic.FillRectangle(blackbrush,e.X-25,e.Y-25,50,50);
}
}

private void checkbox1_CheckedChanged(object sender, System.EventArgs e)
{
rbutton=true;
}
AnswerRe: Checkbox control Pin
stancrm17-May-06 3:45
stancrm17-May-06 3:45 
GeneralRe: Checkbox control Pin
jackalfb17-May-06 4:38
jackalfb17-May-06 4:38 
GeneralRe: Checkbox control Pin
microsoc17-May-06 20:04
microsoc17-May-06 20:04 
GeneralRe: Checkbox control Pin
jackalfb20-May-06 1:36
jackalfb20-May-06 1:36 
AnswerRe: Checkbox control Pin
Wjousts17-May-06 3:49
Wjousts17-May-06 3:49 
AnswerRe: Checkbox control Pin
jackalfb17-May-06 4:33
jackalfb17-May-06 4:33 
QuestionLooping through form elements Pin
Brendan Vogt17-May-06 3:23
Brendan Vogt17-May-06 3:23 
AnswerRe: Looping through form elements Pin
stancrm17-May-06 3:34
stancrm17-May-06 3:34 
AnswerRe: Looping through form elements Pin
Wjousts17-May-06 3:53
Wjousts17-May-06 3:53 
GeneralRe: Looping through form elements: THANKS Pin
Brendan Vogt17-May-06 4:22
Brendan Vogt17-May-06 4:22 
GeneralRe: Looping through form elements: THANKS Pin
Wjousts17-May-06 4:33
Wjousts17-May-06 4:33 
GeneralRe: Looping through form elements: THANKS Pin
J4amieC17-May-06 4:34
J4amieC17-May-06 4:34 
QuestionRe: Looping through form elements Pin
Brendan Vogt17-May-06 4:34
Brendan Vogt17-May-06 4:34 
AnswerRe: Looping through form elements Pin
Wjousts17-May-06 5:31
Wjousts17-May-06 5:31 
GeneralRe: Looping through form elements Pin
J4amieC17-May-06 5:47
J4amieC17-May-06 5:47 
GeneralRe: Looping through form elements Pin
Brendan Vogt17-May-06 22:52
Brendan Vogt17-May-06 22:52 
AnswerRe: Looping through form elements Pin
stancrm18-May-06 2:50
stancrm18-May-06 2:50 

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.