[VBS.NET] Tutorial Repository

Discussion in 'Mixed Languages' started by jlgager, Nov 30, 2010.

  1. jlgager

    jlgager MDL Developer

    Oct 30, 2009
    365
    3,190
    10
    #1 jlgager, Nov 30, 2010
    Last edited by a moderator: Apr 20, 2017
    [VBS.NET] Tutorial Repository​


    This is a list of all the parts of the tutorial in one place.
    In this series I will show you everything from the basics to the most advanced. If you would like me to cover a specific topic, just PM me or post below. If it is a topic I wasn’t planning on covering I will put a star next to its name so check back a lot for updates. The ones without links are coming soon.


    Random Side Note:
    If you would like your program to start as administrator, click the project menu then click properties.
    Click on "View Windows Settings"
    Replace all the text in the file that displays with the following:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
      <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
        <security>
          <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
            <requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
          </requestedPrivileges>
        </security>
      </trustInfo>
    </asmv1:assembly>
    Thanks flare4000 for this tip!

    [​IMG]
    Want to thank me?
    Then just hit the thanks button on this post!
    Also post any ideas for future topics and any typos please.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. seyamco

    seyamco MDL Novice

    May 7, 2008
    25
    0
    0
    thanks jlgager
     
  3. Hustle910

    Hustle910 MDL Member

    Nov 12, 2009
    132
    218
    10
    I'm new to Visual Studio, Thank You :D.
     
  4. UVAIS

    UVAIS MDL Expert

    Mar 17, 2011
    1,333
    1,886
    60
    hey Which book you think is good for learning VB ?? i downloaded many books like wrox's ,VB step by step Etc .I need ur Suggestion & :SmallAwesomeSmiley: one thing more which language i must know for making program like orb changer,Remove wat ,Loader Etc pleas advice me

    Thanks:hug2:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. SS111

    SS111 MDL Novice

    Jul 19, 2011
    30
    2
    0
    For programming things such as Loaders, I recommend VB or C#.

    They are both very simple and flexible.

    I prefer C#, but that's my opinion.

    But if it's just simple commands, simply put it in Batch :p


    Hope I helped...
     
  6. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,504
    3,619
    120
    +1 for C# (You also will benefit from it for understanding other programming languages better)
     
  7. QuantumBug

    QuantumBug MDL Developer

    Mar 7, 2012
    1,485
    1,322
    60
    #7 QuantumBug, Jul 27, 2012
    Last edited by a moderator: Apr 20, 2017
    You only have to replace this line...
    Code:
    <requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
    
    :eek:
     
  8. Calistoga

    Calistoga MDL Senior Member

    Jul 25, 2009
    420
    198
    10
    @UVAIS

    Read C# in a Nutshell, the best book there is. It's nice and huge :)
    This, you will not regret it. C# is not really much more difficult to learn, and it's worth that extra effort. That way you can easily pick up plain C when the time is right.
     
  9. PAYMYRENT

    PAYMYRENT MDL Developer

    Jul 28, 2009
    1,462
    419
    60
    #9 PAYMYRENT, Nov 13, 2012
    Last edited by a moderator: Apr 20, 2017
    just a warning... doing this will disable UAC's registry virtualizations

    another way to start your program with UAC is this

    Code:
                   Dim p As New Process
                    With p.StartInfo
                        .FileName = "file://" & My.Application.Info.DirectoryPath & "\" & Application.Info.AssemblyName & ".exe" ' Path to your program as detected by visual basic
                        .Verb = "runas"' command to invoke UAC dialog
                    End With
                    Try
                        p.Start() ' try to restart your program with admin rights
                        End ' close this instance because we are loading the program with admin rights
                    Catch ex As Exception
                        ' Do something if uac is told no
                        End ' close this application because uac was told no
                    End Try