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

C#

 
GeneralRe: Quick Q: How big is a bool value? Pin
Luc Pattyn1-Sep-07 0:55
sitebuilderLuc Pattyn1-Sep-07 0:55 
GeneralRe: Quick Q: How big is a bool value? Pin
PIEBALDconsult1-Sep-07 5:08
mvePIEBALDconsult1-Sep-07 5:08 
GeneralRe: Quick Q: How big is a bool value? Pin
PIEBALDconsult31-Aug-07 16:08
mvePIEBALDconsult31-Aug-07 16:08 
GeneralRe: Quick Q: How big is a bool value? Pin
Scott Dorman31-Aug-07 16:21
professionalScott Dorman31-Aug-07 16:21 
GeneralRe: Quick Q: How big is a bool value? Pin
PIEBALDconsult31-Aug-07 16:39
mvePIEBALDconsult31-Aug-07 16:39 
JokeRe: Quick Q: How big is a bool value? Pin
PIEBALDconsult31-Aug-07 14:40
mvePIEBALDconsult31-Aug-07 14:40 
QuestionCapturing Key Down Events in MenuStrip Pin
paas31-Aug-07 5:17
paas31-Aug-07 5:17 
QuestionRadioButton and CheckBox confusion... Pin
solutionsville31-Aug-07 4:44
solutionsville31-Aug-07 4:44 
Ok, I have a button event, that when I fire it needs to chedk the states on several CheckBoxes and a pair fo RadioButtons.

What I trying to understand is how to set the events to fire after I click the button.

Currently when I make a change to one of the CheckBoxes or RadioButtons, it is firing the event under that control.

private void btnFind_Click(object sender, System.EventArgs e)
{
try
{
int StartPosition;
StringComparison SearchType;
if (chkMatchCase.Checked == true)
{
SearchType = StringComparison.Ordinal;
}
else
{
SearchType = StringComparison.OrdinalIgnoreCase;
}
StartPosition = mMain.rtbDoc.Text.IndexOf(txtSearchTerm.Text, SearchType);
if (StartPosition == 0)
{
MessageBox.Show("String: " + txtSearchTerm.Text.ToString() + " not found", "No Matches",
MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
return;
}
mMain.rtbDoc.Select(StartPosition, txtSearchTerm.Text.Length);
mMain.Focus();
btnFindNext.Enabled = true;
mMain.rtbDoc.Select(0, 0);
mMain.rtbDoc.ScrollToCaret();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString(), "Error");
}
}

I want to be able to Change the CheckBoxes or RadioButtons and not make the event fire underneath.

Thanks,
AnswerRe: RadioButton and CheckBox confusion... Pin
PIEBALDconsult31-Aug-07 4:58
mvePIEBALDconsult31-Aug-07 4:58 
GeneralRe: RadioButton and CheckBox confusion... Pin
solutionsville31-Aug-07 5:23
solutionsville31-Aug-07 5:23 
GeneralRe: RadioButton and CheckBox confusion... Pin
PIEBALDconsult31-Aug-07 9:37
mvePIEBALDconsult31-Aug-07 9:37 
Questionconvert image to Byte Pin
TAREQ F ABUZUHRI31-Aug-07 4:29
TAREQ F ABUZUHRI31-Aug-07 4:29 
AnswerRe: convert image to Byte Pin
pmarfleet31-Aug-07 4:38
pmarfleet31-Aug-07 4:38 
GeneralRe: convert image to Byte Pin
TAREQ F ABUZUHRI31-Aug-07 4:40
TAREQ F ABUZUHRI31-Aug-07 4:40 
GeneralRe: convert image to Byte Pin
Steve Hansen31-Aug-07 4:41
Steve Hansen31-Aug-07 4:41 
GeneralRe: convert image to Byte Pin
leppie31-Aug-07 5:06
leppie31-Aug-07 5:06 
GeneralRe: convert image to Byte Pin
TAREQ F ABUZUHRI31-Aug-07 9:49
TAREQ F ABUZUHRI31-Aug-07 9:49 
GeneralRe: convert image to Byte Pin
Mairaaj Khan1-Sep-07 1:32
professionalMairaaj Khan1-Sep-07 1:32 
Questionerror Array Pin
TAREQ F ABUZUHRI31-Aug-07 4:26
TAREQ F ABUZUHRI31-Aug-07 4:26 
AnswerRe: error Array Pin
Steve Hansen31-Aug-07 4:42
Steve Hansen31-Aug-07 4:42 
QuestionGeneric Error While running in localhost without port Pin
MahiRaju31-Aug-07 3:49
MahiRaju31-Aug-07 3:49 
QuestionDllImport and cstring Pin
Saamir31-Aug-07 3:28
Saamir31-Aug-07 3:28 
AnswerRe: DllImport and cstring Pin
leppie31-Aug-07 3:46
leppie31-Aug-07 3:46 
GeneralRe: DllImport and cstring Pin
Saamir31-Aug-07 4:15
Saamir31-Aug-07 4:15 
GeneralRe: DllImport and cstring Pin
leppie31-Aug-07 5:02
leppie31-Aug-07 5:02 

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.