[C#] What I need to do to get the result in textbox?

In my WPF application I have two elements a button and textbox. With a click of a button Iam calling a async function which returns string. In same click function I want to populate the data being returned by async function, instead it is getting populated with absurd value. My code looks like this:http://ift.tt/1hxBXoU

Looks like textbox1.text does not want to wait for async function to complete. Please suggest how can i solve this.

by msvtrove via /r/csharp

Leave a Reply