Click here to Skip to main content
15,899,937 members
Home / Discussions / C#
   

C#

 
AnswerRe: ASCII LpSTR? Pin
Dave Herren30-May-07 1:21
Dave Herren30-May-07 1:21 
QuestionSub-classing Pin
Shivaprasad D Atthigode29-May-07 23:27
Shivaprasad D Atthigode29-May-07 23:27 
AnswerRe: Sub-classing Pin
MarkB77729-May-07 23:56
MarkB77729-May-07 23:56 
Questionrich textbox Pin
treah29-May-07 23:18
treah29-May-07 23:18 
AnswerRe: rich textbox Pin
JoeSharp29-May-07 23:26
JoeSharp29-May-07 23:26 
AnswerRe: rich textbox Pin
NassosReyzidis29-May-07 23:27
NassosReyzidis29-May-07 23:27 
QuestionPopulate combobox Pin
matjame29-May-07 23:00
matjame29-May-07 23:00 
AnswerRe: Populate combobox Pin
Christian Graus29-May-07 23:06
protectorChristian Graus29-May-07 23:06 
What a mess

matjame wrote:
con.ConnectionString = str;


what is str, and why is a member variable named so badly ?

matjame wrote:
String str1 = "Select * from Filter";


You never use this anywhere, so it's irrelevant to the rest of the code.

What is con, cm and dtr ? Why do you have badly named member variables like this, that probably could be local, and are not named in a way that means anything ?


matjame wrote:
cboExtension.Text = (dtr["FilterKey"]).ToString();<<*****Problem****


What's the problem ? Does it not compile ? Does it blow up ? What's the error message ?

This is also not going to do more than add one value into the combo box. That's what the Text property will do. To add items, make a collection the datasource, and if it's not a collection of strings, set the DisplayMember property.

All of this looks to me like you're making it up as you go and hoping it will work. Intellisense is no substitute for reading MSDN or buying a good book as a reference.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

GeneralRe: Populate combobox Pin
matjame29-May-07 23:21
matjame29-May-07 23:21 
AnswerRe: Populate combobox Pin
sujithkumarsl29-May-07 23:15
sujithkumarsl29-May-07 23:15 
GeneralRe: Populate combobox Pin
J4amieC29-May-07 23:42
J4amieC29-May-07 23:42 
GeneralRe: Populate combobox Pin
sujithkumarsl29-May-07 23:58
sujithkumarsl29-May-07 23:58 
GeneralRe: Populate combobox Pin
J4amieC30-May-07 0:58
J4amieC30-May-07 0:58 
GeneralRe: Populate combobox Pin
matjame30-May-07 0:48
matjame30-May-07 0:48 
AnswerRe: Populate combobox Pin
Shivaprasad D Atthigode29-May-07 23:38
Shivaprasad D Atthigode29-May-07 23:38 
GeneralRe: Populate combobox Pin
matjame29-May-07 23:50
matjame29-May-07 23:50 
GeneralRe: Populate combobox Pin
sujithkumarsl30-May-07 0:00
sujithkumarsl30-May-07 0:00 
GeneralRe: Populate combobox Pin
matjame30-May-07 0:23
matjame30-May-07 0:23 
AnswerRe: Populate combobox Pin
Shivaprasad D Atthigode30-May-07 0:15
Shivaprasad D Atthigode30-May-07 0:15 
GeneralRe: Populate combobox Pin
matjame30-May-07 0:27
matjame30-May-07 0:27 
GeneralRe: Populate combobox Pin
matjame30-May-07 0:51
matjame30-May-07 0:51 
AnswerRe: Populate combobox Pin
Shivaprasad D Atthigode30-May-07 1:24
Shivaprasad D Atthigode30-May-07 1:24 
GeneralRe: Populate combobox Pin
matjame30-May-07 1:37
matjame30-May-07 1:37 
QuestionPictureBox's and the Graphics Class Pin
MarkB77729-May-07 22:58
MarkB77729-May-07 22:58 
AnswerRe: PictureBox's and the Graphics Class Pin
Christian Graus29-May-07 23:02
protectorChristian Graus29-May-07 23:02 

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.