I'd like to know how to make a system in which it automatically adds a button to a file with a specific event in a FlowLayoutPanel for a specific event that, upon clicking, launches the application. The code I can do is something like this:
Try
For Each file As String In My.Computer.FileSystem.GetFiles(My.Computer.FileSystem.SpecialDirectories.MyDocuments)
Dim mbtn As New MaterialSkin.Controls.MaterialFlatButton
mbtn.Icon = (Icon.ExtractAssociatedIcon(file)).ToBitmap
mbtn.Text = My.Computer.FileSystem.GetName(file)
mbtn.Tag = file
flp.Controls.Add(mbtn)
Next
Catch ex As Exception
MsgBox(ex.ToString)
End Try
With this, I have already been able to do everything but the system to open the link. And I'd also like to know how to hide the extension. I await replies:)