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

C#

 
AnswerRe: Fibonacci sequence Pin
Abhinav S22-Apr-13 18:01
Abhinav S22-Apr-13 18:01 
AnswerRe: Fibonacci sequence Pin
Pete O'Hanlon22-Apr-13 19:48
mvePete O'Hanlon22-Apr-13 19:48 
AnswerRe: Fibonacci sequence Pin
Kenneth Haugland22-Apr-13 22:00
mvaKenneth Haugland22-Apr-13 22:00 
AnswerRe: Fibonacci sequence Pin
Clifford Nelson24-Apr-13 15:49
Clifford Nelson24-Apr-13 15:49 
QuestionThrow NullReferenceException in SendKeys.Send() Pin
tikcireviva22-Apr-13 3:49
tikcireviva22-Apr-13 3:49 
AnswerRe: Throw NullReferenceException in SendKeys.Send() Pin
Eddy Vluggen22-Apr-13 4:56
professionalEddy Vluggen22-Apr-13 4:56 
AnswerRe: Throw NullReferenceException in SendKeys.Send() Pin
Alan N22-Apr-13 5:49
Alan N22-Apr-13 5:49 
QuestionDatabind won't work for Combobox and Checkbox Pin
yuifox22-Apr-13 3:08
yuifox22-Apr-13 3:08 
Hi !

Pardon for my bad english.
Ive been working this code for weeks,

C#
foreach (Control Ctrl in this.Controls)
            {
                switch (Ctrl.GetType().ToString())
                {
                    case "clarinrt.form.other.sdate":
                        if (Ctrl.Tag.ToString() != "") Ctrl.DataBindings.Add(new Binding("Text", formdataset, Ctrl.Tag.ToString()));
                        break;
                    case "clarinrt.form.other.slookup":
                        if (Ctrl.Tag.ToString() != "") Ctrl.DataBindings.Add(new Binding("Text", formdataset, Ctrl.Tag.ToString()));
                        break;
                    case "clarinrt.form.other.scheck":
                        if (Ctrl.Tag.ToString() != "") Ctrl.DataBindings.Add(new Binding("Checked", formdataset, Ctrl.Tag.ToString()));
                        break;
                    case "clarinrt.form.other.snumeric":
                        if (Ctrl.Tag.ToString() != "") Ctrl.DataBindings.Add(new Binding("Text", formdataset, Ctrl.Tag.ToString()));
                        break;
                    case "clarinrt.form.other.stext":
                        if (Ctrl.Tag.ToString() != "") Ctrl.DataBindings.Add(new Binding("Text", formdataset, Ctrl.Tag.ToString()));
                        break;
                    case "clarinrt.form.other.sdropdown":
                        if (Ctrl.Tag.ToString() != "") Ctrl.DataBindings.Add(new Binding("SelectedIndex", formdataset, Ctrl.Tag.ToString()));
                        break;
                    default:
                        break;
                }

            }


For each control, TAG property will be filled such as "account.detail" refering to a column in table name, while formdataset is Dataset for this form.

This code in Load method on base form. the problem with sdropdown and scheck which inherited from combobox and Checkbox. If I comment out, those two part, Databind work fine.

Can someone told me, what I should do ? sdropdown will be databind with Integer column while scheck will be databind with Boolean column

Thank you for your help...
AnswerRe: Databind won't work for Combobox and Checkbox Pin
Eddy Vluggen22-Apr-13 4:58
professionalEddy Vluggen22-Apr-13 4:58 
GeneralRe: Databind won't work for Combobox and Checkbox Pin
yuifox22-Apr-13 11:46
yuifox22-Apr-13 11:46 
AnswerRe: Databind won't work for Combobox and Checkbox Pin
Eddy Vluggen23-Apr-13 10:35
professionalEddy Vluggen23-Apr-13 10:35 
QuestionManipulating taskbar right click applicatin menu Pin
Andreas X21-Apr-13 23:09
professionalAndreas X21-Apr-13 23:09 
AnswerRe: Manipulating taskbar right click applicatin menu Pin
Eddy Vluggen22-Apr-13 0:32
professionalEddy Vluggen22-Apr-13 0:32 
GeneralRe: Manipulating taskbar right click applicatin menu Pin
Andreas X22-Apr-13 1:31
professionalAndreas X22-Apr-13 1:31 
AnswerRe: Manipulating taskbar right click applicatin menu Pin
Richard Deeming22-Apr-13 1:48
mveRichard Deeming22-Apr-13 1:48 
GeneralRe: Manipulating taskbar right click applicatin menu Pin
Andreas X22-Apr-13 7:15
professionalAndreas X22-Apr-13 7:15 
QuestionCode-Behind doesn't show Pin
larsp77721-Apr-13 22:56
larsp77721-Apr-13 22:56 
AnswerRe: Code-Behind doesn't show Pin
OriginalGriff21-Apr-13 23:06
mveOriginalGriff21-Apr-13 23:06 
AnswerRe: Code-Behind doesn't show Pin
Eddy Vluggen22-Apr-13 0:30
professionalEddy Vluggen22-Apr-13 0:30 
GeneralRe: Code-Behind doesn't show Pin
larsp77722-Apr-13 0:35
larsp77722-Apr-13 0:35 
GeneralRe: Code-Behind doesn't show Pin
Pete O'Hanlon22-Apr-13 0:43
mvePete O'Hanlon22-Apr-13 0:43 
GeneralRe: Code-Behind doesn't show Pin
larsp77722-Apr-13 1:00
larsp77722-Apr-13 1:00 
GeneralRe: Code-Behind doesn't show Pin
Pete O'Hanlon22-Apr-13 1:45
mvePete O'Hanlon22-Apr-13 1:45 
GeneralRe: Code-Behind doesn't show Pin
larsp77722-Apr-13 1:55
larsp77722-Apr-13 1:55 
GeneralRe: Code-Behind doesn't show Pin
Eddy Vluggen22-Apr-13 1:05
professionalEddy Vluggen22-Apr-13 1:05 

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.