Hello, I am making a program, when I click picturebox, some text appears on the form. So I got that part right, I am clicking picturebox and text is appearing, but the problem is, that I dont know how to clear that text one by one after certain amount of time. I would like to have control of each drawn text(e.g. change opacity, color) and remove it from form after some time. Is it possible to do that stuff in VB, or I should try something else, what would you guys recommend me to do?
Jump to Post
Add a label to the form at design time and on form load do
Label1.Parent = PictureBox1 Label1.BackColor = Color.Transparent
When you assign text to the label it will be visible. To make it disappear just assign the null string to the label. If the label …
Jump to Post
Public Class Form1 Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Label1.Text = "" Label1.Parent = PictureBox1 Label1.BackColor = Color.Transparent End Sub Private Sub btnShow_Click(sender As System.Object, e As System.EventArgs) Handles btnShow.Click Label1.Text = "Some text" End Sub Private Sub btnHide_Click(sender As System.Object, e As …
All 6 RepliesReply to this topic
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.