![]() ![]() ![]() What I want (not sure if it is possible) is to either have a.) the existing label change it's displayed value, or b.) the existing label to be destroyed and a new one created in its place. NumClicksLabel.BringToFront() ' This just keeps adding new labels each time I click. ![]() NumClicksLabel.Text = numFilter.ToString() NumClicksLabel.Location = New Point(200, 224) Here is the relevant code section: Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.ClickÄebug.WriteLine("You have now clicked" & numClicks.ToString() & " times") NET language) programmers?As a test I am simply trying to have a button count the number of clicks I do. Any hints from more experienced VB (or I suppose any. I have found how to add elements at runtime, but nothing on removing them. Is there any way to programmtically remove controls from a windows form at runtime with VB? I haven't done any VB development since helping friends in college (a long time ago). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |