473,385 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Is this possible in VB.Net?

The question is......is the following possible in VB.Net? If so, can you
point me to an example?

Here is a snippet from
http://msdn.microsoft.com/library/de...tomization.asp

---------------------
Controlling Download and Execution
The WebBrowser Control gives you control over what it downloads, displays,
and executes. To gain this control, you need to implement your host's
IDispatch so it handles DISPID_AMBIENT_DLCONTROL. When the WebBrowser
Control is instantiated, it will call your IDispatch::Invoke with this ID.
Set pvarResult to a combination of following flags, using the bitwise OR
operator, to indicate your preferences.

a.. DLCTL_DLIMAGES, DLCTL_VIDEOS, and DLCTL_BGSOUNDS: Images, videos, and
background sounds will be downloaded from the server and displayed or played
if these flags are set. They will not be downloaded and displayed if the
flags are not set.
b.. DLCTL_NO_SCRIPTS and DLCTL_NO_JAVA: Scripts and Java applets will not
be executed.
c.. DLCTL_NO_DLACTIVEXCTLS and DLCTL_NO_RUNACTIVEXCTLS : ActiveX controls
will not be downloaded or will not be executed.
d.. DLCTL_DOWNLOADONLY: The page will only be downloaded, not displayed.
e.. DLCTL_NO_FRAMEDOWNLOAD: The WebBrowser Control will download and parse
a frameSet, but not the individual frame objects within the frameSet.
f.. DLCTL_RESYNCHRONIZE and DLCTL_PRAGMA_NO_CACHE: These flags cause cache
refreshes. With DLCTL_RESYNCHRONIZE, the server will be asked for update
status. Cached files will be used if the server indicates that the cached
information is up-to-date. With DLCTL_PRAGMA_NO_CACHE, files will be
re-downloaded from the server regardless of the update status of the files.
g.. DLCTL_NO_BEHAVIORS: Behaviors are not downloaded and are disabled in
the document.
h.. DLCTL_NO_METACHARSET_HTML: Character sets specified in meta elements
are suppressed.
i.. DLCTL_URL_ENCODING_DISABLE_UTF8 and DLCTL_URL_ENCODING_ENABLE_UTF8:
These flags function similarly to the
DOCHOSTUIFLAG_URL_ENCODING_DISABLE_UTF8 and
DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8 flags used with
IDocHostUIHandler::GetHostInfo. The difference is that the DOCHOSTUIFLAG
flags are checked only when the WebBrowser Control is first instantiated.
The download flags here for the ambient property change are checked whenever
the WebBrowser Control needs to perform a download.
j.. DLCTL_NO_CLIENTPULL: No client pull operations will be performed.
k.. DLCTL_SILENT: No user interface will be displayed during downloads.
l.. DLCTL_FORCEOFFLINE: The WebBrowser Control always operates in offline
mode.
m.. DLCTL_OFFLINEIFNOTCONNECTED and DLCTL_OFFLINE: These flags are the
same. The WebBrowser Control will operate in offline mode if not connected
to the Internet.
DISPID_AMBIENT_DLCONTROL and the flag values are defined in mshtmdid.h.

Initially, when the function call to IDispatch::Invoke starts, the VARIANT
to which the parameter pvarResult points is of type VT_EMPTY. You must
switch the type to VT_I4 for any settings to have an effect. You can place
your flag values in the lVal member of the VARIANT.

Most of the flag values have negative effects, that is, they prevent
behavior that normally happens. For instance, scripts are normally executed
by the WebBrowser Control if you don't customize its behavior. But if you
set the DLCTL_NOSCRIPTS flag, no scripts will execute in that instance of
the control. However, three flags-DLCTL_DLIMAGES, DLCTL_VIDEOS, and
DLCTL_BGSOUNDS-work exactly opposite. If you set flags at all, you must set
these three for the WebBrowser Control to behave in its default manner
vis-a-vis images, videos and sounds.

The following code sample causes a WebBrowser Control instance to download
and display images and videos, but not background sounds, since the
DLCTL_BGSOUNDS is not explicitly set. Also, script execution on pages
displayed by the WebBrowser Control is disabled.

Hide Example

STDMETHODIMP CAtlBrCon::Invoke(DISPID dispidMember, REFIID riid,
LCID lcid, WORD wFlags,
DISPPARAMS* pDispParams,
VARIANT* pvarResult,
EXCEPINFO* pExcepInfo,
UINT* puArgErr)
{
switch (dispidMember)
{
case DISPID_AMBIENT_DLCONTROL:
pvarResult->vt = VT_I4;
pvarResult->lVal = DLCTL_DLIMAGES | DLCTL_VIDEOS | DLCTL_NO_SCRIPTS;
break;

default:
return DISP_E_MEMBERNOTFOUND;
}

return S_OK;
}
---------------------

Thanks!
Nov 21 '05 #1
4 4153
Jim,

You can start with having a look at this

webbrowser
http://support.microsoft.com/?kbid=311303

some faqs
http://support.microsoft.com/default...b;EN-US;311284
I hope this helps a little bit?

Cor

"Jim Hubbard" <re***@groups.please>
The question is......is the following possible in VB.Net? If so, can you
point me to an example?

Here is a snippet from
http://msdn.microsoft.com/library/de...tomization.asp

---------------------
Controlling Download and Execution
The WebBrowser Control gives you control over what it downloads, displays,
and executes. To gain this control, you need to implement your host's
IDispatch so it handles DISPID_AMBIENT_DLCONTROL. When the WebBrowser
Control is instantiated, it will call your IDispatch::Invoke with this ID.
Set pvarResult to a combination of following flags, using the bitwise OR
operator, to indicate your preferences.

a.. DLCTL_DLIMAGES, DLCTL_VIDEOS, and DLCTL_BGSOUNDS: Images, videos, and
background sounds will be downloaded from the server and displayed or
played
if these flags are set. They will not be downloaded and displayed if the
flags are not set.
b.. DLCTL_NO_SCRIPTS and DLCTL_NO_JAVA: Scripts and Java applets will not
be executed.
c.. DLCTL_NO_DLACTIVEXCTLS and DLCTL_NO_RUNACTIVEXCTLS : ActiveX controls
will not be downloaded or will not be executed.
d.. DLCTL_DOWNLOADONLY: The page will only be downloaded, not displayed.
e.. DLCTL_NO_FRAMEDOWNLOAD: The WebBrowser Control will download and
parse
a frameSet, but not the individual frame objects within the frameSet.
f.. DLCTL_RESYNCHRONIZE and DLCTL_PRAGMA_NO_CACHE: These flags cause
cache
refreshes. With DLCTL_RESYNCHRONIZE, the server will be asked for update
status. Cached files will be used if the server indicates that the cached
information is up-to-date. With DLCTL_PRAGMA_NO_CACHE, files will be
re-downloaded from the server regardless of the update status of the
files.
g.. DLCTL_NO_BEHAVIORS: Behaviors are not downloaded and are disabled in
the document.
h.. DLCTL_NO_METACHARSET_HTML: Character sets specified in meta elements
are suppressed.
i.. DLCTL_URL_ENCODING_DISABLE_UTF8 and DLCTL_URL_ENCODING_ENABLE_UTF8:
These flags function similarly to the
DOCHOSTUIFLAG_URL_ENCODING_DISABLE_UTF8 and
DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8 flags used with
IDocHostUIHandler::GetHostInfo. The difference is that the DOCHOSTUIFLAG
flags are checked only when the WebBrowser Control is first instantiated.
The download flags here for the ambient property change are checked
whenever
the WebBrowser Control needs to perform a download.
j.. DLCTL_NO_CLIENTPULL: No client pull operations will be performed.
k.. DLCTL_SILENT: No user interface will be displayed during downloads.
l.. DLCTL_FORCEOFFLINE: The WebBrowser Control always operates in offline
mode.
m.. DLCTL_OFFLINEIFNOTCONNECTED and DLCTL_OFFLINE: These flags are the
same. The WebBrowser Control will operate in offline mode if not connected
to the Internet.
DISPID_AMBIENT_DLCONTROL and the flag values are defined in mshtmdid.h.

Initially, when the function call to IDispatch::Invoke starts, the VARIANT
to which the parameter pvarResult points is of type VT_EMPTY. You must
switch the type to VT_I4 for any settings to have an effect. You can place
your flag values in the lVal member of the VARIANT.

Most of the flag values have negative effects, that is, they prevent
behavior that normally happens. For instance, scripts are normally
executed
by the WebBrowser Control if you don't customize its behavior. But if you
set the DLCTL_NOSCRIPTS flag, no scripts will execute in that instance of
the control. However, three flags-DLCTL_DLIMAGES, DLCTL_VIDEOS, and
DLCTL_BGSOUNDS-work exactly opposite. If you set flags at all, you must
set
these three for the WebBrowser Control to behave in its default manner
vis-a-vis images, videos and sounds.

The following code sample causes a WebBrowser Control instance to download
and display images and videos, but not background sounds, since the
DLCTL_BGSOUNDS is not explicitly set. Also, script execution on pages
displayed by the WebBrowser Control is disabled.

Hide Example

STDMETHODIMP CAtlBrCon::Invoke(DISPID dispidMember, REFIID riid,
LCID lcid, WORD wFlags,
DISPPARAMS* pDispParams,
VARIANT* pvarResult,
EXCEPINFO* pExcepInfo,
UINT* puArgErr)
{
switch (dispidMember)
{
case DISPID_AMBIENT_DLCONTROL:
pvarResult->vt = VT_I4;
pvarResult->lVal = DLCTL_DLIMAGES | DLCTL_VIDEOS |
DLCTL_NO_SCRIPTS;
break;

default:
return DISP_E_MEMBERNOTFOUND;
}

return S_OK;
}
---------------------

Thanks!

Nov 21 '05 #2
Jim,

You can start with having a look at this

webbrowser
http://support.microsoft.com/?kbid=311303

some faqs
http://support.microsoft.com/default...b;EN-US;311284
I hope this helps a little bit?

Cor

"Jim Hubbard" <re***@groups.please>
The question is......is the following possible in VB.Net? If so, can you
point me to an example?

Here is a snippet from
http://msdn.microsoft.com/library/de...tomization.asp

---------------------
Controlling Download and Execution
The WebBrowser Control gives you control over what it downloads, displays,
and executes. To gain this control, you need to implement your host's
IDispatch so it handles DISPID_AMBIENT_DLCONTROL. When the WebBrowser
Control is instantiated, it will call your IDispatch::Invoke with this ID.
Set pvarResult to a combination of following flags, using the bitwise OR
operator, to indicate your preferences.

a.. DLCTL_DLIMAGES, DLCTL_VIDEOS, and DLCTL_BGSOUNDS: Images, videos, and
background sounds will be downloaded from the server and displayed or
played
if these flags are set. They will not be downloaded and displayed if the
flags are not set.
b.. DLCTL_NO_SCRIPTS and DLCTL_NO_JAVA: Scripts and Java applets will not
be executed.
c.. DLCTL_NO_DLACTIVEXCTLS and DLCTL_NO_RUNACTIVEXCTLS : ActiveX controls
will not be downloaded or will not be executed.
d.. DLCTL_DOWNLOADONLY: The page will only be downloaded, not displayed.
e.. DLCTL_NO_FRAMEDOWNLOAD: The WebBrowser Control will download and
parse
a frameSet, but not the individual frame objects within the frameSet.
f.. DLCTL_RESYNCHRONIZE and DLCTL_PRAGMA_NO_CACHE: These flags cause
cache
refreshes. With DLCTL_RESYNCHRONIZE, the server will be asked for update
status. Cached files will be used if the server indicates that the cached
information is up-to-date. With DLCTL_PRAGMA_NO_CACHE, files will be
re-downloaded from the server regardless of the update status of the
files.
g.. DLCTL_NO_BEHAVIORS: Behaviors are not downloaded and are disabled in
the document.
h.. DLCTL_NO_METACHARSET_HTML: Character sets specified in meta elements
are suppressed.
i.. DLCTL_URL_ENCODING_DISABLE_UTF8 and DLCTL_URL_ENCODING_ENABLE_UTF8:
These flags function similarly to the
DOCHOSTUIFLAG_URL_ENCODING_DISABLE_UTF8 and
DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8 flags used with
IDocHostUIHandler::GetHostInfo. The difference is that the DOCHOSTUIFLAG
flags are checked only when the WebBrowser Control is first instantiated.
The download flags here for the ambient property change are checked
whenever
the WebBrowser Control needs to perform a download.
j.. DLCTL_NO_CLIENTPULL: No client pull operations will be performed.
k.. DLCTL_SILENT: No user interface will be displayed during downloads.
l.. DLCTL_FORCEOFFLINE: The WebBrowser Control always operates in offline
mode.
m.. DLCTL_OFFLINEIFNOTCONNECTED and DLCTL_OFFLINE: These flags are the
same. The WebBrowser Control will operate in offline mode if not connected
to the Internet.
DISPID_AMBIENT_DLCONTROL and the flag values are defined in mshtmdid.h.

Initially, when the function call to IDispatch::Invoke starts, the VARIANT
to which the parameter pvarResult points is of type VT_EMPTY. You must
switch the type to VT_I4 for any settings to have an effect. You can place
your flag values in the lVal member of the VARIANT.

Most of the flag values have negative effects, that is, they prevent
behavior that normally happens. For instance, scripts are normally
executed
by the WebBrowser Control if you don't customize its behavior. But if you
set the DLCTL_NOSCRIPTS flag, no scripts will execute in that instance of
the control. However, three flags-DLCTL_DLIMAGES, DLCTL_VIDEOS, and
DLCTL_BGSOUNDS-work exactly opposite. If you set flags at all, you must
set
these three for the WebBrowser Control to behave in its default manner
vis-a-vis images, videos and sounds.

The following code sample causes a WebBrowser Control instance to download
and display images and videos, but not background sounds, since the
DLCTL_BGSOUNDS is not explicitly set. Also, script execution on pages
displayed by the WebBrowser Control is disabled.

Hide Example

STDMETHODIMP CAtlBrCon::Invoke(DISPID dispidMember, REFIID riid,
LCID lcid, WORD wFlags,
DISPPARAMS* pDispParams,
VARIANT* pvarResult,
EXCEPINFO* pExcepInfo,
UINT* puArgErr)
{
switch (dispidMember)
{
case DISPID_AMBIENT_DLCONTROL:
pvarResult->vt = VT_I4;
pvarResult->lVal = DLCTL_DLIMAGES | DLCTL_VIDEOS |
DLCTL_NO_SCRIPTS;
break;

default:
return DISP_E_MEMBERNOTFOUND;
}

return S_OK;
}
---------------------

Thanks!

Nov 21 '05 #3
Dude.....you rock!

"Cor Ligthert" <no************@planet.nl> wrote in message
news:et**************@TK2MSFTNGP12.phx.gbl...
Jim,

You can start with having a look at this

webbrowser
http://support.microsoft.com/?kbid=311303

some faqs
http://support.microsoft.com/default...b;EN-US;311284
I hope this helps a little bit?

Cor

"Jim Hubbard" <re***@groups.please>
The question is......is the following possible in VB.Net? If so, can you
point me to an example?

Here is a snippet from
http://msdn.microsoft.com/library/de...tomization.asp

---------------------
Controlling Download and Execution
The WebBrowser Control gives you control over what it downloads,
displays,
and executes. To gain this control, you need to implement your host's
IDispatch so it handles DISPID_AMBIENT_DLCONTROL. When the WebBrowser
Control is instantiated, it will call your IDispatch::Invoke with this
ID.
Set pvarResult to a combination of following flags, using the bitwise OR
operator, to indicate your preferences.

a.. DLCTL_DLIMAGES, DLCTL_VIDEOS, and DLCTL_BGSOUNDS: Images, videos,
and
background sounds will be downloaded from the server and displayed or
played
if these flags are set. They will not be downloaded and displayed if the
flags are not set.
b.. DLCTL_NO_SCRIPTS and DLCTL_NO_JAVA: Scripts and Java applets will
not
be executed.
c.. DLCTL_NO_DLACTIVEXCTLS and DLCTL_NO_RUNACTIVEXCTLS : ActiveX
controls
will not be downloaded or will not be executed.
d.. DLCTL_DOWNLOADONLY: The page will only be downloaded, not displayed.
e.. DLCTL_NO_FRAMEDOWNLOAD: The WebBrowser Control will download and
parse
a frameSet, but not the individual frame objects within the frameSet.
f.. DLCTL_RESYNCHRONIZE and DLCTL_PRAGMA_NO_CACHE: These flags cause
cache
refreshes. With DLCTL_RESYNCHRONIZE, the server will be asked for update
status. Cached files will be used if the server indicates that the cached
information is up-to-date. With DLCTL_PRAGMA_NO_CACHE, files will be
re-downloaded from the server regardless of the update status of the
files.
g.. DLCTL_NO_BEHAVIORS: Behaviors are not downloaded and are disabled in
the document.
h.. DLCTL_NO_METACHARSET_HTML: Character sets specified in meta elements
are suppressed.
i.. DLCTL_URL_ENCODING_DISABLE_UTF8 and DLCTL_URL_ENCODING_ENABLE_UTF8:
These flags function similarly to the
DOCHOSTUIFLAG_URL_ENCODING_DISABLE_UTF8 and
DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8 flags used with
IDocHostUIHandler::GetHostInfo. The difference is that the DOCHOSTUIFLAG
flags are checked only when the WebBrowser Control is first instantiated.
The download flags here for the ambient property change are checked
whenever
the WebBrowser Control needs to perform a download.
j.. DLCTL_NO_CLIENTPULL: No client pull operations will be performed.
k.. DLCTL_SILENT: No user interface will be displayed during downloads.
l.. DLCTL_FORCEOFFLINE: The WebBrowser Control always operates in
offline
mode.
m.. DLCTL_OFFLINEIFNOTCONNECTED and DLCTL_OFFLINE: These flags are the
same. The WebBrowser Control will operate in offline mode if not
connected
to the Internet.
DISPID_AMBIENT_DLCONTROL and the flag values are defined in mshtmdid.h.

Initially, when the function call to IDispatch::Invoke starts, the
VARIANT
to which the parameter pvarResult points is of type VT_EMPTY. You must
switch the type to VT_I4 for any settings to have an effect. You can
place
your flag values in the lVal member of the VARIANT.

Most of the flag values have negative effects, that is, they prevent
behavior that normally happens. For instance, scripts are normally
executed
by the WebBrowser Control if you don't customize its behavior. But if you
set the DLCTL_NOSCRIPTS flag, no scripts will execute in that instance of
the control. However, three flags-DLCTL_DLIMAGES, DLCTL_VIDEOS, and
DLCTL_BGSOUNDS-work exactly opposite. If you set flags at all, you must
set
these three for the WebBrowser Control to behave in its default manner
vis-a-vis images, videos and sounds.

The following code sample causes a WebBrowser Control instance to
download
and display images and videos, but not background sounds, since the
DLCTL_BGSOUNDS is not explicitly set. Also, script execution on pages
displayed by the WebBrowser Control is disabled.

Hide Example

STDMETHODIMP CAtlBrCon::Invoke(DISPID dispidMember, REFIID riid,
LCID lcid, WORD wFlags,
DISPPARAMS* pDispParams,
VARIANT* pvarResult,
EXCEPINFO* pExcepInfo,
UINT* puArgErr)
{
switch (dispidMember)
{
case DISPID_AMBIENT_DLCONTROL:
pvarResult->vt = VT_I4;
pvarResult->lVal = DLCTL_DLIMAGES | DLCTL_VIDEOS |
DLCTL_NO_SCRIPTS;
break;

default:
return DISP_E_MEMBERNOTFOUND;
}

return S_OK;
}
---------------------

Thanks!


Nov 21 '05 #4
Dude.....you rock!

"Cor Ligthert" <no************@planet.nl> wrote in message
news:et**************@TK2MSFTNGP12.phx.gbl...
Jim,

You can start with having a look at this

webbrowser
http://support.microsoft.com/?kbid=311303

some faqs
http://support.microsoft.com/default...b;EN-US;311284
I hope this helps a little bit?

Cor

"Jim Hubbard" <re***@groups.please>
The question is......is the following possible in VB.Net? If so, can you
point me to an example?

Here is a snippet from
http://msdn.microsoft.com/library/de...tomization.asp

---------------------
Controlling Download and Execution
The WebBrowser Control gives you control over what it downloads,
displays,
and executes. To gain this control, you need to implement your host's
IDispatch so it handles DISPID_AMBIENT_DLCONTROL. When the WebBrowser
Control is instantiated, it will call your IDispatch::Invoke with this
ID.
Set pvarResult to a combination of following flags, using the bitwise OR
operator, to indicate your preferences.

a.. DLCTL_DLIMAGES, DLCTL_VIDEOS, and DLCTL_BGSOUNDS: Images, videos,
and
background sounds will be downloaded from the server and displayed or
played
if these flags are set. They will not be downloaded and displayed if the
flags are not set.
b.. DLCTL_NO_SCRIPTS and DLCTL_NO_JAVA: Scripts and Java applets will
not
be executed.
c.. DLCTL_NO_DLACTIVEXCTLS and DLCTL_NO_RUNACTIVEXCTLS : ActiveX
controls
will not be downloaded or will not be executed.
d.. DLCTL_DOWNLOADONLY: The page will only be downloaded, not displayed.
e.. DLCTL_NO_FRAMEDOWNLOAD: The WebBrowser Control will download and
parse
a frameSet, but not the individual frame objects within the frameSet.
f.. DLCTL_RESYNCHRONIZE and DLCTL_PRAGMA_NO_CACHE: These flags cause
cache
refreshes. With DLCTL_RESYNCHRONIZE, the server will be asked for update
status. Cached files will be used if the server indicates that the cached
information is up-to-date. With DLCTL_PRAGMA_NO_CACHE, files will be
re-downloaded from the server regardless of the update status of the
files.
g.. DLCTL_NO_BEHAVIORS: Behaviors are not downloaded and are disabled in
the document.
h.. DLCTL_NO_METACHARSET_HTML: Character sets specified in meta elements
are suppressed.
i.. DLCTL_URL_ENCODING_DISABLE_UTF8 and DLCTL_URL_ENCODING_ENABLE_UTF8:
These flags function similarly to the
DOCHOSTUIFLAG_URL_ENCODING_DISABLE_UTF8 and
DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8 flags used with
IDocHostUIHandler::GetHostInfo. The difference is that the DOCHOSTUIFLAG
flags are checked only when the WebBrowser Control is first instantiated.
The download flags here for the ambient property change are checked
whenever
the WebBrowser Control needs to perform a download.
j.. DLCTL_NO_CLIENTPULL: No client pull operations will be performed.
k.. DLCTL_SILENT: No user interface will be displayed during downloads.
l.. DLCTL_FORCEOFFLINE: The WebBrowser Control always operates in
offline
mode.
m.. DLCTL_OFFLINEIFNOTCONNECTED and DLCTL_OFFLINE: These flags are the
same. The WebBrowser Control will operate in offline mode if not
connected
to the Internet.
DISPID_AMBIENT_DLCONTROL and the flag values are defined in mshtmdid.h.

Initially, when the function call to IDispatch::Invoke starts, the
VARIANT
to which the parameter pvarResult points is of type VT_EMPTY. You must
switch the type to VT_I4 for any settings to have an effect. You can
place
your flag values in the lVal member of the VARIANT.

Most of the flag values have negative effects, that is, they prevent
behavior that normally happens. For instance, scripts are normally
executed
by the WebBrowser Control if you don't customize its behavior. But if you
set the DLCTL_NOSCRIPTS flag, no scripts will execute in that instance of
the control. However, three flags-DLCTL_DLIMAGES, DLCTL_VIDEOS, and
DLCTL_BGSOUNDS-work exactly opposite. If you set flags at all, you must
set
these three for the WebBrowser Control to behave in its default manner
vis-a-vis images, videos and sounds.

The following code sample causes a WebBrowser Control instance to
download
and display images and videos, but not background sounds, since the
DLCTL_BGSOUNDS is not explicitly set. Also, script execution on pages
displayed by the WebBrowser Control is disabled.

Hide Example

STDMETHODIMP CAtlBrCon::Invoke(DISPID dispidMember, REFIID riid,
LCID lcid, WORD wFlags,
DISPPARAMS* pDispParams,
VARIANT* pvarResult,
EXCEPINFO* pExcepInfo,
UINT* puArgErr)
{
switch (dispidMember)
{
case DISPID_AMBIENT_DLCONTROL:
pvarResult->vt = VT_I4;
pvarResult->lVal = DLCTL_DLIMAGES | DLCTL_VIDEOS |
DLCTL_NO_SCRIPTS;
break;

default:
return DISP_E_MEMBERNOTFOUND;
}

return S_OK;
}
---------------------

Thanks!


Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Julia Briggs | last post by:
I am struggling to create a PHP function that would take a specified image (JPG, GIF or PNG) from a link, and resize it down to a thumbnail so it will always fit in a 200x250 space. I am hoping...
36
by: rbt | last post by:
Say I have a list that has 3 letters in it: I want to print all the possible 4 digit combinations of those 3 letters: 4^3 = 64 aaaa
20
by: CHIN | last post by:
Hi all.. here s my problem ( maybe some of you saw me on other groups, but i cant find the solution !! ) I have to upload a file to an external site, so, i made a .vbs file , that logins to...
7
by: Andrzej | last post by:
Is it possible to call a function which name is given by a string? Let assume that I created a program which call some functions for example void f1(void), void f2(void), void f3(void). ...
2
by: Bhupesh Naik | last post by:
This is a query regarding my problem to make a spell and grammar check possible in text area of a web page. We have aspx pages which are used to construct letters. The browser based screens...
1
by: AAA | last post by:
hi, I'll explain fastly the program that i'm doing.. the computer asks me to enter the cardinal of a set X ( called "dimX" type integer)where X is a table of one dimension and then to fill it...
25
by: Piotr Nowak | last post by:
Hi, Say i have a server process which listens for some changes in database. When a change occurs i want to refresh my page in browser by notyfinig it. I do not want to refresh my page i.e....
4
by: RSH | last post by:
Okay my math skills aren't waht they used to be... With that being said what Im trying to do is create a matrix that given x number of columns, and y number of possible values i want to generate...
7
by: Robert S. | last post by:
Searching some time now for documents on this but still did not find anything about it: Is it possible to replace the entry screen of MS Office Access 2007 - that one presenting that default...
14
by: bjorklund.emil | last post by:
Hello pythonistas. I'm a newbie to pretty much both programming and Python. I have a task that involves writing a test script for every possible combination of preference settings for a software...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.