Dotinho Posted December 29, 2009 at 03:13 PM Report Share #302979 Posted December 29, 2009 at 03:13 PM 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 More sharing options...
ribeiro55 Posted December 29, 2009 at 03:32 PM Report Share #302983 Posted December 29, 2009 at 03:32 PM Exprimenta dar uma olhadela nisto. Surgiu em pesquisa. Sérgio Ribeiro "Great coders aren't born. They're compiled and released""Expert coders do not need a keyboard. They just throw magnets at the RAM chips" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now