G
Gavaskar
Hello
I've got a listBox on a Windows form in which I add data to it ,as needed,
or so I think.
Basically I'm cycling oversome data and if I find some matches, I call my
helper function AddtoList(str)
public void somefunc()
{
AddToList("sometexttodisplay");
}
public void AddToList(String s)
{
string sOut = datetime.TimeOfDat.ToString() + s ;
listBox1.Add(sOut);
}
Now the the gets displayed, but after the program has stopped running. How
do I have the listbox update when the line listBox1.Add(sOut); is actually
excuted?
I've got a listBox on a Windows form in which I add data to it ,as needed,
or so I think.
Basically I'm cycling oversome data and if I find some matches, I call my
helper function AddtoList(str)
public void somefunc()
{
AddToList("sometexttodisplay");
}
public void AddToList(String s)
{
string sOut = datetime.TimeOfDat.ToString() + s ;
listBox1.Add(sOut);
}
Now the the gets displayed, but after the program has stopped running. How
do I have the listbox update when the line listBox1.Add(sOut); is actually
excuted?