Jump to content

Problemas com VisualStyles no Win 7


Dotinho
 Share

Recommended Posts

Boas pessoal, tenho um pequeno problema, quis fazer um projecto no VS2008, mas quero que ele trabalhe sem janela, então comecei um projecto em branco. Até aqui não há problema.

Depois de interpretar os argumentos, abro uma janela que fiz, em que tem duas progressbares, o problema é que ficam com aquele aspecto de windows 98, e não sei porque...

Deixo aqui algumas partes do código.

 

Shared Sub Main()

        Dim args() = Environment.GetCommandLineArgs

        Select Case I_Arranque(args)
            Case I_TipoArranque.Normal
                Dim f As New Form1
                f.ShowDialog()
            Case I_TipoArranque.SmartSync
                Dim s As New SmarSync.Sync(args(2), args(3))
                Dim res = s.Sync
                MsgBox(res.ToString)
        End Select

    End Sub

    Shared Function I_Arranque(ByVal args() As String) As I_TipoArranque
        Dim n = args.Length
        If n = 0 Then : Return I_TipoArranque.Normal : Exit Function : End If
        If args(1) = "-sync" Then : Return I_TipoArranque.SmartSync : End If
    End Function

'E depois onde chamo a janela


        Public Function Sync() As ISync.SyncRes Implements ISync.Sync

            F.ShowDialog()

        End Function

Luis Lourenço

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.