Hi
I have problem with propertymanager in my code. PositionChanged event
is not even raised. When i increase position, the value remains the
same - as a result textbox.Text value remains also unchanged.
How to solve these problems? I have tried to google but couldn't find
a solution.
ps - dataSet11 is typed dataset and is properly filled.
private void Form1_Load(obje ct sender, EventArgs e)
{
employeesTableA dapter1.Fill(da taSet11.Employe es);
tb = new TextBox();
this.Controls.A dd(tb);
tb.Location = new Point(50, 50);
tb.DataBindings .Add("Text", dataSet11.Emplo yees,
"Lastname") ;
pm = (PropertyManage r)this.BindingC ontext[tb];
pm.PositionChan ged += new
EventHandler(pm _PositionChange d);
}
void pm_PositionChan ged(object sender, EventArgs e)
{
}
private void button1_Click(o bject sender, EventArgs e)
{
pm.Position += 1;
}
Kind Regards
I have problem with propertymanager in my code. PositionChanged event
is not even raised. When i increase position, the value remains the
same - as a result textbox.Text value remains also unchanged.
How to solve these problems? I have tried to google but couldn't find
a solution.
ps - dataSet11 is typed dataset and is properly filled.
private void Form1_Load(obje ct sender, EventArgs e)
{
employeesTableA dapter1.Fill(da taSet11.Employe es);
tb = new TextBox();
this.Controls.A dd(tb);
tb.Location = new Point(50, 50);
tb.DataBindings .Add("Text", dataSet11.Emplo yees,
"Lastname") ;
pm = (PropertyManage r)this.BindingC ontext[tb];
pm.PositionChan ged += new
EventHandler(pm _PositionChange d);
}
void pm_PositionChan ged(object sender, EventArgs e)
{
}
private void button1_Click(o bject sender, EventArgs e)
{
pm.Position += 1;
}
Kind Regards
Comment