hi !
is it possible to Change the button background-Color or dis/enabled a staticpicture by runtime via vb.net?
for background i did not found properties!
for staticpicture! i try
Private WithEvents _Img_ProjCurrent As Autodesk.Map.IM.Forms.PictureBox Private _ImageProjCurrent As String = "$PICAKTUELL" Private Sub Dialog_load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load .... If Me.Dialog.Controls.Contains(_ImageProjCurrent) Then _Img_ProjCurrent = CType(Me.Dialog.Controls.ApiItem(_ImageProjCurrent), Autodesk.Map.IM.Forms.PictureBox) End If .... end Sub
here i get the message that the staticimage could not to be convert!
cound someone help?
regards Jan
Solved! Go to Solution.
hi !
is it possible to Change the button background-Color or dis/enabled a staticpicture by runtime via vb.net?
for background i did not found properties!
for staticpicture! i try
Private WithEvents _Img_ProjCurrent As Autodesk.Map.IM.Forms.PictureBox Private _ImageProjCurrent As String = "$PICAKTUELL" Private Sub Dialog_load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load .... If Me.Dialog.Controls.Contains(_ImageProjCurrent) Then _Img_ProjCurrent = CType(Me.Dialog.Controls.ApiItem(_ImageProjCurrent), Autodesk.Map.IM.Forms.PictureBox) End If .... end Sub
here i get the message that the staticimage could not to be convert!
cound someone help?
regards Jan
Solved! Go to Solution.
Solved by jan_tappenbeck. Go to Solution.
here the right way ....
Private WithEvents _BT_ProjCurrent As Autodesk.Map.IM.Forms.Button ... ' special color _BT_ProjCurrent.Desktop.BackColor = Drawing.Color.LightGreen ... 'default Color _BT_ProjCurrent.Desktop.BackColor = System.Drawing.SystemColors.Control ...
here the right way ....
Private WithEvents _BT_ProjCurrent As Autodesk.Map.IM.Forms.Button ... ' special color _BT_ProjCurrent.Desktop.BackColor = Drawing.Color.LightGreen ... 'default Color _BT_ProjCurrent.Desktop.BackColor = System.Drawing.SystemColors.Control ...
Can't find what you're looking for? Ask the community or share your knowledge.