G
Guest
Good Afternoon:
I was hoping if someone could share some light on a problem that I'm facing.
When I create a Visual Basic.Net program and I use the XP style for my Window
Forms and buttons; if I add images to my menu buttons they don't show when
the form is created. But, if I don't use the XP style the images show on my
buttons correctly. Can someone please explain to me what the problem is and
how to get around it? Here is how I'm calling my forms:
Public Sub Main()
Dim frmSplash As New fclsSplash
Dim mainForm As New fclsMain
System.Windows.Forms.Application.EnableVisualStyles()
System.Windows.Forms.Application.Run(frmSplash)
Select Case vfClass.fdisplay
Case 0
System.Windows.Forms.Application.Run(SqlLogin)
Case 1
System.Windows.Forms.Application.Run(mainForm)
End Select
It's my mainForm that holds the menu buttons with the images. Do anyone
know what's going on? Thanks.
I was hoping if someone could share some light on a problem that I'm facing.
When I create a Visual Basic.Net program and I use the XP style for my Window
Forms and buttons; if I add images to my menu buttons they don't show when
the form is created. But, if I don't use the XP style the images show on my
buttons correctly. Can someone please explain to me what the problem is and
how to get around it? Here is how I'm calling my forms:
Public Sub Main()
Dim frmSplash As New fclsSplash
Dim mainForm As New fclsMain
System.Windows.Forms.Application.EnableVisualStyles()
System.Windows.Forms.Application.Run(frmSplash)
Select Case vfClass.fdisplay
Case 0
System.Windows.Forms.Application.Run(SqlLogin)
Case 1
System.Windows.Forms.Application.Run(mainForm)
End Select
It's my mainForm that holds the menu buttons with the images. Do anyone
know what's going on? Thanks.