i want to add combobox items and use any other controls in module but when i try to use my combobox there, is not recognized. In Window Form Application there was no problem, but in a WPF application I do not know now how to do it?
In WinForm App i do in Module.vb something like that
Sub FillComboBox()
Dim SQLStr As String = "use testowa Select COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE (TABLE_NAME = 'Import')"
Dim Reader As SqlDataReader
Dim cmd As New SqlCommand(SQLStr, myConnection)
Form2.ComboBox7.Items.Add("None")
Form2.ComboBox3.Items.Add("None")
Reader = cmd.ExecuteReader()
While Reader.Read()
Form2.ComboBox1.Items.Add(Reader.Item("COLUMN_NAME"))
Form2.ComboBox2.Items.Add(Reader.Item("COLUMN_NAME"))
Form2.ComboBox4.Items.Add(Reader.Item("COLUMN_NAME"))
Form2.ComboBox5.Items.Add(Reader.Item("COLUMN_NAME"))
Form2.ComboBox6.Items.Add(Reader.Item("COLUMN_NAME"))
Form2.ComboBox7.Items.Add(Reader.Item("COLUMN_NAME"))
Form2.ComboBox3.Items.Add(Reader.Item("COLUMN_NAME"))
End While
Reader.Close()
End Sub
Now i need to do the same thing in WPF app.
Please help, these are my first steps in WPF :)