Results 1 to 6 of 6

Thread: Two simple questions.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Posts
    123

    Post

    Well I can answer one question. The difference b/w a member and a junior member is that to be a member you must have 30 posts.

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    593

    Post

    Have a look at:
    http://www.vb-world.net/demos/shellexecute/

    Re: Members
    A Member has posted 30 or more messages and a Junior Member has posted less.



    ------------------
    John Percival
    Editor, VB-World.net
    [email protected]



  3. #3
    Hyperactive Member Matt-D's Avatar
    Join Date
    Nov 1999
    Location
    Mettmann, Germany
    Posts
    305

    Post

    I don't know the perfect answer to your second question, but I can help you a little bit.
    You can do this:
    Make a textbox in witch the user writes the path of the Internet Explorer. Then use a command button:

    Sub Command1_Click ()
    Dim A
    B = text1.text
    A = Shell(B, 1)
    End Sub


    If you want to make it more comfortable for the user you can open a text file in which the user saves the path, into a textbox.

    sub Form_Load ()
    filenum = FreeFile 'get a freefile number once again
    On Error GoTo 1
    Open "c:\file1.txt" For Input As filenum 'open the file File1.txt for INPUT
    Text1.Text = Input(LOF(filenum), filenum)
    Close filenum
    1
    end sub

    Via a common dialogue (STD1) you can save the textbox with your program:

    Command2_Click ()
    STD1.action = 2
    MousePointer = 1
    On Error GoTo 2
    Open Settings.Std1.Filename For Output As #1
    Print #1, Text1.Text;
    Close #1
    MousePointer = 1
    2
    Exit Sub
    end Sub

    don't forget to initalize the FileName in the characteristics of your common dialogue.

    I hope this can help you, if you've any questions, send me a eMail.

    Nice greetings from Germany, Matt

  4. #4
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

    Post

    Netscape do a ActiveX Control that opens a web page etc in the users' default browser. It is at http://shareware.netscape.com/comput...d=108&id=66281 if you want to download it.

    If you don't want to use a control, the path to the default browser is stored in the registry in some obscure place, I will try and find out.

    Regards,

    ------------------
    - Chris
    [email protected]
    If it ain't broke - don't fix it

  5. #5
    New Member
    Join Date
    Jan 2000
    Location
    Åsa, -, Sweden
    Posts
    14

    Post

    First I was wondering what the difference is between a member and a junior member.
    Doesn't really matter but I'm interested anyways.
    Next I was wondering if there is any way to "track" where Internet Explorer and Netscape is installed.
    (Like in "c:\program\IE" so that I can make my application work no matter where IE and NetScape are installed)
    Third is a little question about the command for Netscape.
    I don't have it installed now so I want to know how to start it and then make it go to a page.
    In IE it's something like shell(explorer.exe, "page") but I'm not sure if it's the same in NetScape.
    Thx.

  6. #6
    Lively Member Maartin's Avatar
    Join Date
    Jan 2000
    Location
    Benoni, Gauteng, South-Africa
    Posts
    99

    Post

    If you have Netscape installed on you PC, start regedit (start menu, run type: regedit, click ok)

    Now go to the HKEY_LOCAL_MACHINE key branch out the tree. The branch out SOFTWARE key in there you will find a key called Netscape.
    Have a look in there. I uninstalled mine so the keys are empty. But try.

    If you are looking for a reg control e-mail me and I will mail you a free easy to use control to manipulate the registry.

    Hope it helps you.



    ------------------
    -----------------------
    Maartin
    [email protected]
    -----------------------

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