Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Dim asm = System.Reflection.Assembly.GetExecutingAssembly
Dim myTypes As Type() = asm.GetTypes()
Dim frm As Form
For Each t As Type In myTypes
Is this possible at runtime?
People ask me why you want to search in forms which aren't opened.
Simple... Each control, in my case 'buttons' are pointing out a detail of some kind. The detail is written in every button tag.
I want to be able to write the detail i'm looking for in a textbox...
Doesn't make any sense ?
For Each ctrl As Control In Controls
If (TypeOf ctrl Is Button) And ctrl.Tag = TextBox3.Text Then
ctrl.Tag = TextBox2.Text
Dim thisButtonName As String =...
Thanks for the reply.
For the moment i'm coding like this:
In the load event:
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
For Each formprop In My.Forms.GetType.GetProperties 'percorre todos os forms
Dim node =...
Actually what I need is the following:
I have a treeview from all forms and the buttons on these forms.
When i click a particular button name on that treeview i have the buttonname clicked projected in a textbox.
I want to put a new tag description for that particular button, weather it is on...
Yes indeed, this is the way. But i'm having difficulties with how i'm about to tell the program that the selection that is made needs to change that particular button on that particular form.
I face some issues on how i'm about to change a button.text and *.tag info.
I have over 5000 buttons(in total) on over 100 forms.
I created a Treeview on a form which i can enter only, that shows all my forms with buttons & tag names.
a textbox has the name of the...
I have a verification screen where all the buttons pressed-information is stored in text-boxes.
Once pressed the "save to database" button, he's looking up on a server in a folder if a particular excel file with current year and week-number exist.
I have been able to view the cad drawing in 3d PDF with the acrobat plugin pdf viewer. This gives the the possibility of adding 3D comments on the joining's as labels. Now just trying to figure out if i can protect the file so no-one after me can erase the labels. This is my temporary solution...
It seems that my code doesn't seem to work very much.
(The code to get the tag data from buttons into a textbox), nothing really happens when I press a button...
Here's the code I use in a class module:
Public Class clsbuttons
Public WithEvents Btn As Button
I'm new to VB.NET and come straight forward with 1 particular question.
I have created a program within excel, which allows users to select particular joinings on images, which are labeled by a button.
To explain a joiningtype this could be an for example an arcweld. Once a...