Click here to Skip to main content
15,914,419 members
Home / Discussions / C#
   

C#

 
GeneralRe: Custom Exceptions - Best Practices Pin
BillWoodruff22-Jan-17 15:10
professionalBillWoodruff22-Jan-17 15:10 
QuestionC# classes Pin
Bobbla1310-Jan-17 23:17
Bobbla1310-Jan-17 23:17 
GeneralRe: C# classes Pin
harold aptroot10-Jan-17 23:35
harold aptroot10-Jan-17 23:35 
GeneralRe: C# classes Pin
#realJSOP11-Jan-17 7:47
professional#realJSOP11-Jan-17 7:47 
GeneralRe: C# classes Pin
OriginalGriff11-Jan-17 8:03
mveOriginalGriff11-Jan-17 8:03 
GeneralRe: C# classes Pin
#realJSOP12-Jan-17 2:06
professional#realJSOP12-Jan-17 2:06 
AnswerRe: C# classes Pin
Daniel Pfeffer10-Jan-17 23:36
professionalDaniel Pfeffer10-Jan-17 23:36 
AnswerRe: C# classes Pin
Pete O'Hanlon10-Jan-17 23:43
mvePete O'Hanlon10-Jan-17 23:43 
AnswerRe: C# classes Pin
Gerry Schmitz11-Jan-17 8:26
mveGerry Schmitz11-Jan-17 8:26 
QuestionHow to dynamically Add and Close tab items in Browser click on add and close buttons Pin
Aniruddha.A10-Jan-17 18:53
Aniruddha.A10-Jan-17 18:53 
AnswerRe: How to dynamically Add and Close tab items in Browser click on add and close buttons Pin
Afzaal Ahmad Zeeshan11-Jan-17 0:03
professionalAfzaal Ahmad Zeeshan11-Jan-17 0:03 
QuestionUse of LevDan.Exif assembly for DNG files?? Pin
Grahame_20059-Jan-17 23:33
Grahame_20059-Jan-17 23:33 
AnswerRe: Use of LevDan.Exif assembly for DNG files?? Pin
Pete O'Hanlon10-Jan-17 2:30
mvePete O'Hanlon10-Jan-17 2:30 
GeneralRe: Use of LevDan.Exif assembly for DNG files?? Pin
Grahame_200510-Jan-17 3:43
Grahame_200510-Jan-17 3:43 
GeneralRe: Use of LevDan.Exif assembly for DNG files?? Pin
Pete O'Hanlon10-Jan-17 4:29
mvePete O'Hanlon10-Jan-17 4:29 
QuestionProgrammatically Open A Solution In Current IDE Pin
Kevin Marois9-Jan-17 10:31
professionalKevin Marois9-Jan-17 10:31 
AnswerRe: Programmatically Open A Solution In Current IDE Pin
Afzaal Ahmad Zeeshan11-Jan-17 0:09
professionalAfzaal Ahmad Zeeshan11-Jan-17 0:09 
QuestionNothing happens when CheckBox is checked Pin
Pavlex49-Jan-17 8:00
Pavlex49-Jan-17 8:00 
I created program where when user checks checkbox edit text is enabled, but when I check any of checkboxes nothing happens!!!

Java
@Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        editText2 = (EditText) findViewById(R.id.editText_symbols);
        editText3 = (EditText) findViewById(R.id.editText_numbers);
        editText4 = (EditText) findViewById(R.id.editText_lowercase);
        editText5 = (EditText) findViewById(R.id.editText_uppercase);

        editText2.setEnabled(false);
        editText3.setEnabled(false);
        editText4.setEnabled(false);
        editText5.setEnabled(false);
    }

    public void checkCheckBox(View view)
    {
        boolean checked = (((CheckBox)view).isChecked());
        switch (view.getId())
        {
            case R.id.checkBox_uppercase:
                if(checked)
                    editText2.setEnabled(true);
                else
                    editText2.setEnabled(false);
                break;

            case R.id.checkBox_lowercase:
                if(checked)
                    editText3.setEnabled(true);
                else
                    editText3.setEnabled(false);
                break;

            case R.id.checkBox_numbers:
                if(checked)
                    editText4.setEnabled(true);
                else
                    editText4.setEnabled(false);
                break;

            case R.id.checkBox_symbols:
                if(checked)
                    editText5.setEnabled(true);
                else
                    editText5.setEnabled(false);
                break;
        }

    }

AnswerRe: Nothing happens when CheckBox is checked Pin
NotPolitcallyCorrect9-Jan-17 8:17
NotPolitcallyCorrect9-Jan-17 8:17 
AnswerRe: Nothing happens when CheckBox is checked Pin
Richard MacCutchan9-Jan-17 22:30
mveRichard MacCutchan9-Jan-17 22:30 
QuestionC# Enumerable Repeat Pin
Pavlex48-Jan-17 4:01
Pavlex48-Jan-17 4:01 
AnswerRe: C# Enumerable Repeat PinPopular
OriginalGriff8-Jan-17 4:49
mveOriginalGriff8-Jan-17 4:49 
AnswerRe: C# Enumerable Repeat Pin
Pete O'Hanlon8-Jan-17 23:01
mvePete O'Hanlon8-Jan-17 23:01 
GeneralRe: C# Enumerable Repeat Pin
harold aptroot9-Jan-17 8:20
harold aptroot9-Jan-17 8:20 
QuestionVisual Studio Debugger Questions Pin
zequion7-Jan-17 21:15
professionalzequion7-Jan-17 21:15 

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.