No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
Define a List (or array) of ComboBoxes as a (private) member of your class and fill it in your for-loop. Then in your Button-Click event handler iterate over the List and obtain the selected value with currentComboBox.SelectedItem.Text;
What is the exact error message? Maybe you need a password? If so, you can append this to your connection string: [CODE]Jet OLEDB:Database Password=password;[/CODE]
I have no experience with DB2 from .NET, but I found some promising infos: 1) from [URL="http://www.codeproject.com/KB/database/DotnetDb2.aspx"]http://www.codeproject.com/KB/database/DotnetDb2.aspx[/URL] a quite realistic looking connection string: [CODE] OleDbConnection cn = new OleDbConnection( "Provider=IBMDA400.1;Data Source=TEST;User ID=db2user;" + "Password=db2user;Default Collection =SAMPLEDB"); [/CODE] 2) from [URL="http://csharp.net-informations.com/dataadapter/selectcommand-oledb.htm"]http://csharp.net-informations.com/dataadapter/selectcommand-oledb.htm[/URL] a snippet how to execute simple sql commands with a …
Looks like the _targetRoi variable is not initialized. It must be initialized in the constructor of your class or in the declaration of _targetRoi.
The End.
cudahead