dimspyder
September 18th, 2001, 11:32 PM
among other things i am trying, this one is fairly simple i just cant get it to execute properly. I want a new instance of internet explorer to load and display a page which i have specified. i can get this to work at the cmd line with this "start iexplore.exe http://chat.msn.com/find.msnw?cat=CP" but when i try to do that within VB it doesnt seem to work. i have also thrown a variable into the mix by letting the user have input into which category it displays (msn sorts the chat room categories by 2 letters... such at CP for computing or TN for teen). the code that i have so far is as follows:
private Sub cmdViewPage_Click()
ShellExecute hWnd, "open", "http://chat.msn.com/find.msnw?cat=" & txtCategory.Text, vbNullString, vbNullString, conSwNormal
End Sub
the only problem with this is that it doesnt open a new instance of IE.. it uses one thats already open, and to open a new instance i need this cmd to execute: "start iexplore.exe http://chat.msn.com/find.msnw?cat=CP"
i cant seem to get it to work within VB, so if anyone has any suggestions i would really appriciate it. thx,
-frank
private Sub cmdViewPage_Click()
ShellExecute hWnd, "open", "http://chat.msn.com/find.msnw?cat=" & txtCategory.Text, vbNullString, vbNullString, conSwNormal
End Sub
the only problem with this is that it doesnt open a new instance of IE.. it uses one thats already open, and to open a new instance i need this cmd to execute: "start iexplore.exe http://chat.msn.com/find.msnw?cat=CP"
i cant seem to get it to work within VB, so if anyone has any suggestions i would really appriciate it. thx,
-frank