Seemed simple at the time but despite my best efforts the text box does not update until everything else is finished.
Basically I just need it to display update the text box while the an action is being taken (trying to do a status window).
Seemed simple at the time but despite my best efforts the text box does not update until everything else is finished.
Basically I just need it to display update the text box while the an action is being taken (trying to do a status window).
look into the doevent function....
easiparcel.com Shop online and ship to Jamaica
my assumption is u doin a win form...
Code:theTextBox.Text = theTextBox.Text & Environment.NewLine & somethingElse theTextBox.Refresh() ' after u update the text
Cultured in Aggression and Koding like a Warrior!!
“Common sense is instinct. Enough of it is genius.” - George Bernard Shaw.
"The significant problems we face cannot be solved by the same level of thinking that created them." - Albert Einstein
thanks man, it worked like a charm, tried to get the same effect with the webrowser control but no such luck, logic bieng I wanted to format the text, and html markup would be easir than messing with a rich textbox, anyway here is what I have.
tried a couple approaches, neither worked,interestingly together they do, but don't display until the last call is made.Dim collectedText As String
Dim opt As New WebBrowserRefreshOption
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
formatline("This is a test")
formatline("really it is")
formatline("honestly")
formatline("are u calling me a liar!!!")
End Sub
Private Sub formatline(ByVal input As String)
Thread.Sleep(500)
collectedText += DateTime.Now & input & vbNewLine
TextBox1.Text = collectedText
TextBox1.Refresh()
WebBrowser1.DocumentText += "<html><body>" & collectedText & "</body></html>"
' WebBrowser1.Document.Write(collectedText)
WebBrowser1.Refresh(WebBrowserRefreshOption.Comple tely)
End Sub