Results 1 to 5 of 5

Thread: some vb code snippets

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2003
    Posts
    140

    Question some vb code snippets

    Hello,

    I am looking a code in VB6 that does:

    1) Runs Internet Explorer or any other default browser

    2) Runs Outlook Express or any other default email client

    3) Cut Function

    4) Copy Function

    5) Paste Function

    These are all for buttons in my ToolBar! I am a complete newbie (only started using vb last week), so please explain stuff in dummy terms!

    Thanks

  2. #2
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089
    1) read something about shellexecute api

    2) same as 1

    3,4,5) depends where u want to use it
    for cut, copy u would need :
    VB Code:
    1. Clipboard.SetText "some text"

  3. #3

  4. #4
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    and try www.planet-source-code.com for thousands of various programming examples

  5. #5
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246
    You also need to look into another thing.

    When you try and run Internet Explorer with VB, you need to know the exact Path and filename. Not all people have the same version of windows, or internet explorer. Which means you have to find how to search for such a filename on the computer.

    A few are IE.EXE, IEXPLORE.EXE, Internet Explorer.EXE


    You get the picture...



    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width