Click here to Skip to main content
16,005,316 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Referece Lost Pin
Mithun.Shitole15-Jun-09 22:45
Mithun.Shitole15-Jun-09 22:45 
AnswerRe: Referece Lost Pin
Nagy Vilmos15-Jun-09 23:07
professionalNagy Vilmos15-Jun-09 23:07 
GeneralRe: Referece Lost Pin
Mithun.Shitole15-Jun-09 23:26
Mithun.Shitole15-Jun-09 23:26 
QuestionTransfer of data from LIstview to table in MsAccess Pin
sazd115-Jun-09 16:21
sazd115-Jun-09 16:21 
AnswerRe: Transfer of data from LIstview to table in MsAccess Pin
Dave Kreskowiak15-Jun-09 16:29
mveDave Kreskowiak15-Jun-09 16:29 
GeneralRe: Transfer of data from LIstview to table in MsAccess Pin
sazd115-Jun-09 17:15
sazd115-Jun-09 17:15 
GeneralRe: Transfer of data from LIstview to table in MsAccess Pin
Dave Kreskowiak15-Jun-09 18:01
mveDave Kreskowiak15-Jun-09 18:01 
QuestionDetecting object with vbscript Pin
chatko15-Jun-09 11:56
chatko15-Jun-09 11:56 
I'm trying to detect if my ATL control is installed on the users system in IE8. There seems to be a functional difference between the two implementations below. The first always returns "true" (even if control is uninstalled), while the second seems to detect the case where my control is not installed, however it raises IE8 security prompts ("Are you sure you want to run this control?"). Ideally, I just want to know if the control is installed or not so i can prompt a download if needed. Can anyone help?

function DetectActiveX (controlName)
    on error resume next
    dim res
    res = 0
    if IsObject(CreateObject(controlName)) then
        res = 1
    end if
    DetectActiveX = res
end function




function DetectActiveX (controlName)
		on error resume next
		dim tControl
		dim res
		res = 0
		set tControl = CreateObject(controlName)
		if IsObject(tControl) then
			res = 1
		end if
		DetectActiveX = res
	end function



I know about the codebase attribute, but I don't want to use it as testing has proven its very slow to refresh after install.

Thanks,
Chris
AnswerRe: Detecting object with vbscript Pin
Dave Kreskowiak15-Jun-09 16:27
mveDave Kreskowiak15-Jun-09 16:27 
GeneralRe: Detecting object with vbscript Pin
chatko16-Jun-09 7:27
chatko16-Jun-09 7:27 
GeneralRe: Detecting object with vbscript Pin
Dave Kreskowiak16-Jun-09 8:07
mveDave Kreskowiak16-Jun-09 8:07 
Questiondealing with control arrays Pin
No-e15-Jun-09 6:08
No-e15-Jun-09 6:08 
AnswerRe: dealing with control arrays Pin
dan!sh 15-Jun-09 6:42
professional dan!sh 15-Jun-09 6:42 
GeneralRe: dealing with control arrays Pin
No-e15-Jun-09 7:19
No-e15-Jun-09 7:19 
GeneralRe: dealing with control arrays Pin
dan!sh 15-Jun-09 7:26
professional dan!sh 15-Jun-09 7:26 
AnswerRe: dealing with control arrays Pin
Dave Kreskowiak15-Jun-09 7:51
mveDave Kreskowiak15-Jun-09 7:51 
GeneralRe: dealing with control arrays Pin
Jon_Boy16-Jun-09 10:13
Jon_Boy16-Jun-09 10:13 
GeneralRe: dealing with control arrays Pin
Dave Kreskowiak16-Jun-09 12:04
mveDave Kreskowiak16-Jun-09 12:04 
GeneralRe: dealing with control arrays Pin
Jon_Boy18-Jun-09 1:37
Jon_Boy18-Jun-09 1:37 
QuestionFinding the PropertyGrid Delete Key Event in VB.NET Pin
VB 8.015-Jun-09 4:16
VB 8.015-Jun-09 4:16 
AnswerRe: Finding the PropertyGrid Delete Key Event in VB.NET Pin
Dave Kreskowiak15-Jun-09 7:56
mveDave Kreskowiak15-Jun-09 7:56 
GeneralRe: Finding the PropertyGrid Delete Key Event in VB.NET Pin
VB 8.016-Jun-09 6:07
VB 8.016-Jun-09 6:07 
GeneralRe: Finding the PropertyGrid Delete Key Event in VB.NET Pin
Dave Kreskowiak16-Jun-09 6:28
mveDave Kreskowiak16-Jun-09 6:28 
QuestionEmail - Problem Pin
Paramu197315-Jun-09 3:12
Paramu197315-Jun-09 3:12 
AnswerRe: Email - Problem Pin
Tom Deketelaere15-Jun-09 3:18
professionalTom Deketelaere15-Jun-09 3:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.