Click here to Skip to main content
15,922,155 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to disable event handler from its execution Pin
Luc Pattyn13-May-10 3:11
sitebuilderLuc Pattyn13-May-10 3:11 
AnswerRe: How to disable event handler from its execution Pin
Stanciu Vlad12-May-10 20:02
Stanciu Vlad12-May-10 20:02 
QuestionISP Bandwidth Measure [modified] Pin
Omoniyi Ogunderu11-May-10 23:20
Omoniyi Ogunderu11-May-10 23:20 
AnswerRe: ISP Bandwidth Measure Pin
OriginalGriff11-May-10 23:22
mveOriginalGriff11-May-10 23:22 
GeneralRe: ISP Bandwidth Measure Pin
Omoniyi Ogunderu11-May-10 23:39
Omoniyi Ogunderu11-May-10 23:39 
AnswerRe: ISP Bandwidth Measure Pin
Michel Godfroid11-May-10 23:54
Michel Godfroid11-May-10 23:54 
AnswerRe: ISP Bandwidth Measure Pin
Bernhard Hiller12-May-10 3:23
Bernhard Hiller12-May-10 3:23 
GeneralRe: ISP Bandwidth Measure Pin
harold aptroot12-May-10 3:32
harold aptroot12-May-10 3:32 
Questionwhat can I do to my poorful combobox to be filled???? Pin
Tunisien8611-May-10 23:13
Tunisien8611-May-10 23:13 
AnswerRe: what can I do to my poorful combobox to be filled???? Pin
#realJSOP11-May-10 23:32
professional#realJSOP11-May-10 23:32 
GeneralRe: what can I do to my poorful combobox to be filled???? Pin
Tunisien8611-May-10 23:39
Tunisien8611-May-10 23:39 
GeneralRe: what can I do to my poorful combobox to be filled???? Pin
Pete O'Hanlon12-May-10 1:12
mvePete O'Hanlon12-May-10 1:12 
GeneralRe: what can I do to my poorful combobox to be filled???? Pin
#realJSOP12-May-10 1:40
professional#realJSOP12-May-10 1:40 
GeneralRe: what can I do to my poorful combobox to be filled???? Pin
Tunisien8612-May-10 4:09
Tunisien8612-May-10 4:09 
GeneralRe: what can I do to my poorful combobox to be filled???? Pin
johannesnestler13-May-10 5:05
johannesnestler13-May-10 5:05 
AnswerRe: what can I do to my poorful combobox to be filled???? Pin
Luc Pattyn12-May-10 3:03
sitebuilderLuc Pattyn12-May-10 3:03 
GeneralRe: what can I do to my poorful combobox to be filled???? Pin
Tunisien8613-May-10 1:00
Tunisien8613-May-10 1:00 
QuestionMulticolumn listbox in smart device application Pin
bacem smari11-May-10 23:06
bacem smari11-May-10 23:06 
Good morning,
I am working on a smart device application.
I want to create a listbox with 3 columns which get there data from a local database .sdf
I tried the following code but an exception occurred.



private void button1_Click(object sender, EventArgs e)
        {
            string wCS = @"Data Source =\Storage Card\ModeDifféré\BaseGmaoLocale.sdf;";
            SqlCeConnection sqlceconn = new SqlCeConnection(wCS);
            SqlCeCommand command = sqlceconn.CreateCommand();
            command.CommandText = "SELECT [ID]+\" \"+[Magasin]+\" \"+ [qtyonhand] AS IMQ from stocks where ID like %@txt%";
            SqlCeDataAdapter adapter = new SqlCeDataAdapter(command);
            SqlCeParameter txt = new SqlCeParameter("@txt", SqlDbType.NVarChar);
            txt.Value= textBox1.Text;
            command.Parameters.Add(txt);
            DataSet ds = new DataSet();
            adapter.Fill(ds);
            listBox1.DataSource = ds.Tables[0];
            listBox1.DisplayMember="IMQ";
        }


this is the exception

there is an error parsing the querry. [token line number =1, token line offset=77, Token in error = %]


thank you in advance.
AnswerRe: Multicolumn listbox in smart device application Pin
William Winner12-May-10 6:22
William Winner12-May-10 6:22 
Questionrole of substitution Pin
tek 200911-May-10 23:02
tek 200911-May-10 23:02 
AnswerRe: role of substitution Pin
Ravi Sant14-Apr-11 1:05
Ravi Sant14-Apr-11 1:05 
QuestionFree/Open Source Library to Generate Barcodes Pin
Rafferty Uy11-May-10 21:36
Rafferty Uy11-May-10 21:36 
AnswerRe: Free/Open Source Library to Generate Barcodes Pin
Peace ON11-May-10 21:50
Peace ON11-May-10 21:50 
GeneralRe: Free/Open Source Library to Generate Barcodes Pin
Rafferty Uy11-May-10 22:44
Rafferty Uy11-May-10 22:44 
AnswerRe: Free/Open Source Library to Generate Barcodes Pin
Luc Pattyn12-May-10 1:58
sitebuilderLuc Pattyn12-May-10 1:58 

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.