Leon_Amirreza wrote:
> I have installed a hanlder for this event:
>
> this.BindingContext[dataSetCurriculumsCourses,
> "TableInstitutes"].CurrentChanged
>
> ....
>
> void FormCurriculumsCoursesInstitutes_CurrentItemChanged(object sender,
> EventArgs e)
>
> {
>
> this.Text += "1";
>
> }
>
> at runtime just "11" will appeare in the title bar of the form no matter
> how many time the current record is changed.
>
> I dont know what is wrong!
Hi,
Do you mean the title bar fills up with "1"'s, or the title bar stays
at "11"?
If it's the former, then I guess you're expecting the number to increment by
one each time, which means you need to do this (assuming your title bar
starts off as "0" i.e. this.Text = "0"
this.Text = (int.Parse(this.Text) + 1).ToString();
If it's the latter, then I'm not sure of the solution to your problem.
--
Hope this helps,
Tom Spink
Google first, ask later.