PDA

Click to See Complete Forum and Search --> : Two simple questions.


ravcam
Jan 16th, 2000, 12:03 AM
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.

John
Jan 16th, 2000, 12:06 AM
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
john@vb-world.net

Matt-D
Jan 16th, 2000, 12:12 AM
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 ;)

chrisjk
Jan 16th, 2000, 08:44 AM
Netscape do a ActiveX Control that opens a web page etc in the users' default browser. It is at http://shareware.netscape.com/computing/shareware/software_title.tmpl?p=PC&category_id=70&subcategory_id=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
chris.kilhams@btinternet.com
If it ain't broke - don't fix it :)

Tiger Claw
Jan 16th, 2000, 11:06 AM
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.

Maartin
Jan 16th, 2000, 02:35 PM
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
dinamite@onwe.co.za
-----------------------