Good Morning! This weekend was pretty busy. In addition to my side work and work on my current projects we had meetings with people about the formation of another band, and making plans to do some work on my house this summer.
Today’s topic was asked of me and it can be a little frustrating I guess. Basically we want to scroll within a panel to a particular control within that panel and have that control come into view. Not complicated but it works. Make it a great day!
Public Class Form1
Public Class MyData
Public Sub New(ByVal ctl As Control)
Me.Ctl = ctl
Public Ctl As Control
Public Overrides Function ToString() As String
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
For Each ctl As Control In Panel1.Controls
If TypeOf ctl Is GroupBox Then
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
Dim ctl As Control = DirectCast(ComboBox1.SelectedItem, MyData).Ctl