Hello!
I’m quite new
in c# and I have a problem and don't know what to do :(. I have an IP2010 form, with a windows form (form1)
and a combobox (comboBox1) and a field (/my:fields/my:field1).
I’d like to
do, when the value of the combo box changing, I want to copy the new value of
the combobox to the field. But, it’s not working L
I think, the
solution would be this:
Form1.cs
private void
comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox1.Text != null)
XmlNamespaceManager ns = this.NamespaceManager;
XPathNavigator ch1 =
MainDataSource.CreateNavigator();
XPathNavigator ch2 = ch1.SelectSingleNode("/my:fields/my:filed", ns);
ch2.SetValue(ComboBox1.Text);
}
But I can’t
create NamespaceManager and DataSource, CreateNavigator, because of this: „'TST_64.Form1'
does not contain a definition for 'NamespaceManager'”, or „The name
'MainDataSource' does not exist in the current context”, etc..
What should I
do? L What
is wrong? Can anybody help me?
Thank you in advance for your help.