|
-
May 4th, 2005, 12:57 AM
#1
[Resolved] How to Convert this C++ code to VB
What will be the equivalent of this enumeration in VB
Code:
typedef enum BrowserNavConstants {
navOpenInNewWindow = 0x1,
navNoHistory = 0x2,
navNoReadFromCache = 0x4,
navNoWriteToCache = 0x8,
navAllowAutosearch = 0x10,
navBrowserBar = 0x20,
navHyperlink = 0x40
} BrowserNavConstants;
Thanks in advance
Last edited by Pradeep1210; May 4th, 2005 at 06:11 AM.
-
May 4th, 2005, 01:02 AM
#2
Re: How to Convert this C++ code to VB
 Originally Posted by Pradeep1210
What will be the equivalent of this enumeration in VB
Code:
typedef enum BrowserNavConstants {
navOpenInNewWindow = 0x1,
navNoHistory = 0x2,
navNoReadFromCache = 0x4,
navNoWriteToCache = 0x8,
navAllowAutosearch = 0x10,
navBrowserBar = 0x20,
navHyperlink = 0x40
} BrowserNavConstants;
Thanks in advance
VB Code:
navOpenInNewWindow = 1,
navNoHistory = 2,
navNoReadFromCache = 4,
navNoWriteToCache = 8,
navAllowAutosearch = 16,
navBrowserBar = 32,
navHyperlink = 64
You could probably just use the hex value, also
-
May 4th, 2005, 01:04 AM
#3
Re: How to Convert this C++ code to VB
VB Code:
Enum BrowserNavConstants
navOpenInNewWindow = &H1
navNoHistory = &H2
navNoReadFromCache = &H4
navNoWriteToCache = &H8
navAllowAutosearch = &H10
navBrowserBar = &H20
navHyperlink = &H40
End Enum
-
May 4th, 2005, 01:51 AM
#4
Re: How to Convert this C++ code to VB
Thanks so much 
I'm using it with a webbrowser control and I m behind a proxy. I don't want cached pages from the proxy. I m not able to get this statement work. It is uncertain whether it will show a cached page or updated one
VB Code:
myHTTPHeader = "Content-Type: application/x-www-form-urlencoded" & Chr(10) & Chr(13)
WebBrowser1.Navigate2 myURL, navNoHistory + navNoReadFromCache + navNoWriteToCache, myPostData,,myHTTPHeader
myURL contains the URL address, myPostData is a byte array
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|