K
Kamlesh
Hi,
In VB6, on every click on Command1, to change the Form background
color dynamically, I use:
Private Sub Command1_Click()
Me.BackColor = QBColor(Rnd * 14)
End Sub
How can I achieve the same in .NET? When I am using QBColor()
function in .NET, it is giving the the following error:
Value of type 'Integer' cannot be converted to 'System.Drawing.Color'.
Regards,
Kamlesh
In VB6, on every click on Command1, to change the Form background
color dynamically, I use:
Private Sub Command1_Click()
Me.BackColor = QBColor(Rnd * 14)
End Sub
How can I achieve the same in .NET? When I am using QBColor()
function in .NET, it is giving the the following error:
Value of type 'Integer' cannot be converted to 'System.Drawing.Color'.
Regards,
Kamlesh