Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. MSScriptControl and VB.Net Control Events

MSScriptControl and VB.Net Control Events

Scheduled Pinned Locked Moved Visual Basic
csharptools
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    andrew
    wrote on last edited by
    #1

    I am attempting to add a form or control as an object to my instance of the MSScriptControl, where the control or form will extend its events to the loaded script... oScripting.AddObject("Window", Me, True) oScripting.State = MSScriptControl.ScriptControlStates.Connected That is supposed to add the object and attach its members and events... but it doesnt fire the event within the script.. Sub Window_Click() Msgbox "clicked" End Sub I have also tried; Sub Window_Click(sender, e) Msgbox "clicked" End Sub Please advise! I would very much like to know what I am doing wrong!

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups