Re: test whether ocx is registered from VB, possible?




"mscir" <mscir@xxxxxxxxx> wrote in message
news:V4mdnZYa_KhD9UzfRVn-pA@xxxxxxxxxxxxxxxxx
> Some Fred wrote:
>> Stick sthing like this in Main() in the starting module:
- snipped -
>>
>
> Since I have code on the main form that requires an OCX to be registered,
> it sounds like you're saying I should do the OCX test before the main form
> load event from a sub in a module, is that correct? If so, how do I get
> the code in the module to execute first unless I call it from the main
> form load event? I think I'm missing something because I don't understand
> what you meant by 'starting module'.
>

Define the project's startup object to be Sub Main, rather than the form.
Then follow Some Fred's advice.


.



Relevant Pages

  • Re: Passing parameter from textbox
    ... I will now analyse the code what it does, so that i understand what is ... you may have faster load times if you don't populate the ... the page load event will fire before the ItemCommand event so ... >> Private Sub ItemCommand(ByVal source As Object, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Form Filter
    ... Private Sub Form_Load ... Why does the filter not seem to fully execute during the load event? ... "don't know" did you set filter to data during form load event or not. ...
    (comp.databases.ms-access)
  • Re: Not in list combo questions
    ... And this is on the On Load event of the pop up form. ... Private Sub Form_Load ... Response = acDataErrContinue ... vbCrLf & vbCrLf & _ ...
    (microsoft.public.access.forms)
  • Re: Passing parameter from textbox
    ... set the "Text" property of the linkbutton control as shown ... you may have faster load times if you don't populate the ... the page load event will fire before the ItemCommand event so ... > Sub Page_Load ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: test whether ocx is registered from VB, possible?
    ... Sub Main ... Dim MyOCX As SomeOCX.SomeObj ... it sounds like you're saying I should do the OCX test before ... the main form load event from a sub in a module, ...
    (microsoft.public.vb.winapi)