Hi
I am developing a custom on screen keyboard. So far I have an array of
buttons and then using SendKeys to send the text of the button to the active
control to receive the text.
The only problem is that the application is rather slow at painting the
buttons. Ideally I wanted to allow the user to re-size the control and
change the text and style of the buttons without such rendering issues.
(I have a tool to re-size the buttons, its just the paint that is an issue
here)
Is there anyway to render a series of controls in a more efficient way than
going something like:
Friend WithEvents Button1 As Button
Me.Button1 = New Button
Me.Button1.Location = New System.Drawing.Point(32, 32)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(24, 24)
Me.Button1.TabIndex = 0
Me.Button1.Text = "Q"
and so on for all the other keys.
And then when the user clicks the CapsLock button I would then go through
all the buttons setting the text ToUpper ot ToLower.
Regards, Carl Gilbert