|
-
Jan 2nd, 2025, 09:21 AM
#26
Re: VS2022 Excel VB.net
 Originally Posted by wes4dbt
When I run this,
Code:
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
For i = 1 To 21
TextBox1.Text = i.ToString
TextBox1.Refresh()
Next
End Sub
All I see in the textbox is "21". I know it's updating the textbox but it's to fast to see. But I'm old, maybe your eyes are better than mine.
It won't always update, even with Refresh. I've never spent any time trying to figure out why that would be. Refresh SHOULD cause execution of the loop to pause until the paint has happened, and usually it does....but if the loop is fast enough, sometimes it does not, which is really weird.
My usual boring signature: Nothing
 
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|