Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
AnswerRe: Firing up the event when string text is changed Pin
Vimalsoft(Pty) Ltd28-Jul-09 4:19
professionalVimalsoft(Pty) Ltd28-Jul-09 4:19 
GeneralRe: Firing up the event when string text is changed Pin
Blubbo28-Jul-09 4:22
Blubbo28-Jul-09 4:22 
GeneralRe: Firing up the event when string text is changed Pin
Vimalsoft(Pty) Ltd28-Jul-09 4:30
professionalVimalsoft(Pty) Ltd28-Jul-09 4:30 
GeneralRe: Firing up the event when string text is changed Pin
Ian Shlasko28-Jul-09 4:30
Ian Shlasko28-Jul-09 4:30 
GeneralRe: Firing up the event when string text is changed Pin
Blubbo28-Jul-09 4:34
Blubbo28-Jul-09 4:34 
GeneralRe: Firing up the event when string text is changed Pin
Ian Shlasko28-Jul-09 4:38
Ian Shlasko28-Jul-09 4:38 
GeneralRe: Firing up the event when string text is changed [modified] Pin
Blubbo28-Jul-09 4:46
Blubbo28-Jul-09 4:46 
GeneralRe: Firing up the event when string text is changed Pin
Ian Shlasko28-Jul-09 6:04
Ian Shlasko28-Jul-09 6:04 
That will set the DisplayOutput value to the textbox text... I thought you wanted it the other way around.

Like I said, implement INotifyPropertyChanged in class 'b', modify the set{} section for DisplayOutput to trigger a PropertyChanged event... Then in class 'a', you can do something like:

ba.PropertyChanged += new PropertyChangedEventHandler(...)

And in the event handler, you just do: tbText.Text = ba.DisplayOutput

Basically, the control flow goes like this:

1) ba.DisplayOutput changes
2) ba.DisplayOutput updates ReadWriteMessage
3) ba.DisplayOutput triggers PropertyChanged
4) Class 'a' sees the PropertyChanged
5) Class 'a' sets tbText.Text to the new value of DisplayOutput

Proud to have finally moved to the A-Ark. Which one are you in?
Developer, Author (Guardians of Xen)

Question[Message Deleted] Pin
Vivek Vijayan28-Jul-09 4:09
Vivek Vijayan28-Jul-09 4:09 
AnswerRe: insert code not working Pin
moon_stick28-Jul-09 4:15
moon_stick28-Jul-09 4:15 
GeneralRe: insert code not working Pin
Vivek Vijayan28-Jul-09 4:24
Vivek Vijayan28-Jul-09 4:24 
GeneralRe: insert code not working Pin
Ian Shlasko28-Jul-09 4:36
Ian Shlasko28-Jul-09 4:36 
GeneralRe: insert code not working Pin
Vivek Vijayan28-Jul-09 4:37
Vivek Vijayan28-Jul-09 4:37 
GeneralRe: insert code not working Pin
musefan28-Jul-09 4:42
musefan28-Jul-09 4:42 
GeneralRe: insert code not working Pin
Vivek Vijayan28-Jul-09 4:50
Vivek Vijayan28-Jul-09 4:50 
GeneralRe: insert code not working Pin
musefan28-Jul-09 4:55
musefan28-Jul-09 4:55 
GeneralRe: insert code not working Pin
moon_stick28-Jul-09 4:43
moon_stick28-Jul-09 4:43 
GeneralRe: insert code not working Pin
Vivek Vijayan28-Jul-09 4:52
Vivek Vijayan28-Jul-09 4:52 
GeneralRe: insert code not working Pin
moon_stick28-Jul-09 5:07
moon_stick28-Jul-09 5:07 
GeneralRe: insert code not working Pin
moon_stick28-Jul-09 4:38
moon_stick28-Jul-09 4:38 
GeneralRe: insert code not working Pin
Vivek Vijayan28-Jul-09 4:44
Vivek Vijayan28-Jul-09 4:44 
GeneralRe: insert code not working Pin
moon_stick28-Jul-09 4:49
moon_stick28-Jul-09 4:49 
GeneralRe: insert code not working Pin
Vivek Vijayan28-Jul-09 5:05
Vivek Vijayan28-Jul-09 5:05 
GeneralRe: insert code not working Pin
moon_stick28-Jul-09 5:10
moon_stick28-Jul-09 5:10 
AnswerRe: insert code not working Pin
Ian Shlasko28-Jul-09 4:16
Ian Shlasko28-Jul-09 4:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.