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

C#

 
AnswerRe: how to select multiple items from checkedlistbox and display in datagridview Pin
Richard MacCutchan2-Oct-16 22:47
mveRichard MacCutchan2-Oct-16 22:47 
AnswerRe: how to select multiple items from checkedlistbox and display in datagridview Pin
Richard Deeming3-Oct-16 2:21
mveRichard Deeming3-Oct-16 2:21 
QuestionC# Integration with Barcode Printers Pin
mohamad10882-Oct-16 1:01
mohamad10882-Oct-16 1:01 
AnswerRe: C# Integration with Barcode Printers Pin
OriginalGriff2-Oct-16 1:18
mveOriginalGriff2-Oct-16 1:18 
GeneralLearning C# Pin
Lrk891-Oct-16 10:01
Lrk891-Oct-16 10:01 
GeneralRe: Learning C# Pin
Peter_in_27801-Oct-16 13:30
professionalPeter_in_27801-Oct-16 13:30 
Questionconnecting acess2007 database in c# Pin
Member 1276842430-Sep-16 0:26
Member 1276842430-Sep-16 0:26 
AnswerRe: connecting acess2007 database in c# Pin
OriginalGriff30-Sep-16 0:29
mveOriginalGriff30-Sep-16 0:29 
AnswerRe: connecting acess2007 database in c# Pin
Simon_Whale30-Sep-16 1:17
Simon_Whale30-Sep-16 1:17 
QuestionNeed Help | Increase .NET knowledge Pin
Member 1179671529-Sep-16 6:08
Member 1179671529-Sep-16 6:08 
AnswerRe: Need Help | Increase .NET knowledge Pin
Richard MacCutchan29-Sep-16 6:28
mveRichard MacCutchan29-Sep-16 6:28 
AnswerRe: Need Help | Increase .NET knowledge Pin
#realJSOP29-Sep-16 7:38
professional#realJSOP29-Sep-16 7:38 
AnswerRe: Need Help | Increase .NET knowledge Pin
OriginalGriff29-Sep-16 8:03
mveOriginalGriff29-Sep-16 8:03 
GeneralRe: Need Help | Increase .NET knowledge Pin
Mycroft Holmes29-Sep-16 12:50
professionalMycroft Holmes29-Sep-16 12:50 
AnswerRe: Need Help | Increase .NET knowledge Pin
Member 1276600929-Sep-16 19:50
Member 1276600929-Sep-16 19:50 
GeneralRe: Need Help | Increase .NET knowledge Pin
Pete O'Hanlon29-Sep-16 21:38
mvePete O'Hanlon29-Sep-16 21:38 
AnswerRe: Need Help | Increase .NET knowledge Pin
Nathan Minier30-Sep-16 1:16
professionalNathan Minier30-Sep-16 1:16 
PraiseRe: Need Help | Increase .NET knowledge Pin
Member 117967153-Oct-16 5:32
Member 117967153-Oct-16 5:32 
QuestionText speed control using text to speech winform c# application. Pin
Member 1229735329-Sep-16 2:20
Member 1229735329-Sep-16 2:20 
AnswerRe: Text speed control using text to speech winform c# application. Pin
Pete O'Hanlon29-Sep-16 2:45
mvePete O'Hanlon29-Sep-16 2:45 
GeneralRe: Text speed control using text to speech winform c# application. Pin
Member 1229735329-Sep-16 7:00
Member 1229735329-Sep-16 7:00 
GeneralRe: Text speed control using text to speech winform c# application. Pin
Pete O'Hanlon29-Sep-16 7:15
mvePete O'Hanlon29-Sep-16 7:15 
AnswerRe: Text speed control using text to speech winform c# application. Pin
Dave Kreskowiak29-Sep-16 2:49
mveDave Kreskowiak29-Sep-16 2:49 
QuestionCan I Convert list = new List<...> from Net 4.0 to Net 2.0 ? Pin
Member 245846728-Sep-16 15:25
Member 245846728-Sep-16 15:25 
I want to convert the code List<TestGridImage> list = new List<TestGridImage>() below from Net4.0 to .Net 2.0. Can you help me ?
C#
namespace ExampleConvertList
{
    public partial class Form1 : Form
    {
        private List<TestGridImage> list;

        public Form1()
        {
            InitializeComponent();

            // I want to convert code have got List...
                        list = new List<TestGridImage>()
                       {
                             new TestGridImage() { KeyIndex = 0, KeyIndexAlt = 2 },
                             new TestGridImage() { KeyIndex = 1, KeyIndexAlt = 0 },
                             new TestGridImage() { KeyIndex = 2, KeyIndexAlt = 1 }
                       };
                       this.gridControl1.DataSource = list;

        }
    }

    public class TestGridImage
    {
        private int keyIndex;

        private int keyIndexAlt;

        public int KeyIndex
        {
            get { return keyIndex; }
            set { keyIndex = value; }
        }

        public int KeyIndexAlt
        {
            get { return keyIndexAlt; }
            set { keyIndexAlt = value; }
        }
    }
}


modified 29-Sep-16 3:06am.

AnswerRe: Can I Convert list = new List<...> from Net 4.0 to Net 2.0 ? Pin
Pete O'Hanlon28-Sep-16 21:30
mvePete O'Hanlon28-Sep-16 21:30 

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.