Click here to Skip to main content
12,075,066 members (64,849 online)
   

C#

 
AnswerRe: Fibonacci sequence Pin
Abhinav S22-Apr-13 19:01
mvpAbhinav S22-Apr-13 19:01 
AnswerRe: Fibonacci sequence Pin
Pete O'Hanlon22-Apr-13 20:48
protectorPete O'Hanlon22-Apr-13 20:48 
AnswerRe: Fibonacci sequence Pin
Kenneth Haugland22-Apr-13 23:00
professionalKenneth Haugland22-Apr-13 23:00 
AnswerRe: Fibonacci sequence Pin
Clifford Nelson24-Apr-13 16:49
memberClifford Nelson24-Apr-13 16:49 
QuestionThrow NullReferenceException in SendKeys.Send() Pin
tikcireviva22-Apr-13 4:49
membertikcireviva22-Apr-13 4:49 
AnswerRe: Throw NullReferenceException in SendKeys.Send() Pin
Eddy Vluggen22-Apr-13 5:56
mvpEddy Vluggen22-Apr-13 5:56 
AnswerRe: Throw NullReferenceException in SendKeys.Send() Pin
Alan N22-Apr-13 6:49
memberAlan N22-Apr-13 6:49 
QuestionDatabind won't work for Combobox and Checkbox Pin
yuifox22-Apr-13 4:08
memberyuifox22-Apr-13 4:08 
Hi !

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

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 5:58
mvpEddy Vluggen22-Apr-13 5:58 
GeneralRe: Databind won't work for Combobox and Checkbox Pin
yuifox22-Apr-13 12:46
memberyuifox22-Apr-13 12:46 
AnswerRe: Databind won't work for Combobox and Checkbox Pin
Eddy Vluggen23-Apr-13 11:35
mvpEddy Vluggen23-Apr-13 11:35 
QuestionManipulating taskbar right click applicatin menu Pin
Andreas X22-Apr-13 0:09
professionalAndreas X22-Apr-13 0:09 
AnswerRe: Manipulating taskbar right click applicatin menu Pin
Eddy Vluggen22-Apr-13 1:32
mvpEddy Vluggen22-Apr-13 1:32 
GeneralRe: Manipulating taskbar right click applicatin menu Pin
Andreas X22-Apr-13 2:31
professionalAndreas X22-Apr-13 2:31 
AnswerRe: Manipulating taskbar right click applicatin menu Pin
Richard Deeming22-Apr-13 2:48
professionalRichard Deeming22-Apr-13 2:48 
GeneralRe: Manipulating taskbar right click applicatin menu Pin
Andreas X22-Apr-13 8:15
professionalAndreas X22-Apr-13 8:15 
QuestionCode-Behind doesn't show Pin
larsp77721-Apr-13 23:56
memberlarsp77721-Apr-13 23:56 
AnswerRe: Code-Behind doesn't show Pin
OriginalGriff22-Apr-13 0:06
mvpOriginalGriff22-Apr-13 0:06 
AnswerRe: Code-Behind doesn't show Pin
Eddy Vluggen22-Apr-13 1:30
mvpEddy Vluggen22-Apr-13 1:30 
GeneralRe: Code-Behind doesn't show Pin
larsp77722-Apr-13 1:35
memberlarsp77722-Apr-13 1:35 
GeneralRe: Code-Behind doesn't show Pin
Pete O'Hanlon22-Apr-13 1:43
protectorPete O'Hanlon22-Apr-13 1:43 
GeneralRe: Code-Behind doesn't show Pin
larsp77722-Apr-13 2:00
memberlarsp77722-Apr-13 2:00 
GeneralRe: Code-Behind doesn't show Pin
Pete O'Hanlon22-Apr-13 2:45
protectorPete O'Hanlon22-Apr-13 2:45 
GeneralRe: Code-Behind doesn't show Pin
larsp77722-Apr-13 2:55
memberlarsp77722-Apr-13 2:55 
GeneralRe: Code-Behind doesn't show Pin
Eddy Vluggen22-Apr-13 2:05
mvpEddy Vluggen22-Apr-13 2: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.


Advertise | Privacy | Mobile
Web03 | 2.8.160208.1 | Last Updated 11 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid