PC Review


Reply
Thread Tools Rate Thread

BMB.CurrentChanged gets fired just once or twice?!

 
 
Tom Spink
Guest
Posts: n/a
 
      30th Oct 2006
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.
 
Reply With Quote
 
 
 
 
Leon_Amirreza
Guest
Posts: n/a
 
      31st Oct 2006
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!



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BMB.CurrentChanged gets fired just once or twice?! Leon_Amirreza Microsoft ADO .NET 0 31st Oct 2006 02:27 PM
Diff between PositionChanged and CurrentChanged ? Hemang Shah Microsoft ADO .NET 1 21st Feb 2005 04:09 PM
Diff between PositionChanged and CurrentChanged ? Hemang Shah Microsoft Dot NET Framework Forms 1 21st Feb 2005 04:09 PM
CurrentChanged event DOESNT get fired with Framework v1.1 Newsgroups MICROSOFT Microsoft VB .NET 2 15th Dec 2004 12:27 PM
Does not fire CurrentChanged Domingos Jr. Microsoft ADO .NET 2 2nd Aug 2003 05:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:52 PM.