I'm currently trying to make an application were you can chat with people via the Firebase database and I have managed to retrieve data and set data into the database. But when I retrieve data from the stream, I can only view it with a Messagebox. Show or any type of System stuff.
I want to add the result to a listbox but its not letting me.
Here is the code (I have also tried to remove static)
private static async void EventStreaming()
{
var response = await _client.OnAsync("chat",
(sender, args, context) => { listBox1.Items.Add("" + args.Data); },
(sender, args, context) => { listBox1.Items.Add("" + args.Data); },
(sender, args, context) => { listBox1.Items.Add("" + args.Path); });
//Call dispose to stop listening for events
//response.Dispose();
}