VBScripts With VB Objects

Author Message
xroot

  • Total Posts : 2
  • Scores: 0
  • Reward points : 0
  • Joined: 6/26/2011
  • Status: offline
VBScripts With VB Objects Monday, June 27, 2011 7:39 AM (permalink)
0
I will share my VB dll wrapper, it will let you use VB Forms and Controls in VBScripts
without using HTML stuff.  (Don't forget to register the DLL)
Here are the Methods and Properties:
 Set_Window  Setup your Gui(Window) (if X and Y = 0 Gui is centered)
 Set_Control  Setup your Controls on Gui
 Obj2Ptr  Get a pointer from an object
 NoFocus_On  Remove focus lines on controls that have them
 Show_Window  Show Gui(Window)
 Close_Window  Close Gui(Window)
 MsgBoxT The "MessageBoxTimeout" API
 Click  Click an object returns the pointer to the object
 Index Get VB's index object (some VB objects use and set an index)
 DllActive  Return the number of open VB windows
 BorderStyle Set Gui(Window) border style
                      0=None,1=Fixed Single,2=Sizable,3=Fixed Dialog,4=Fixed ToolWindow,
                      5=Sizable ToolWindow (*Must be set before Set_Window()*)
                      If style is 0(none) the mouse will automatically drag the window.
 vbTagColor Set the background color property of a command button for mouse over effect
                     default is RED
                     To use this property set 'Tag' to True of the command button object.
                     If a Picture object is set for command button along with the DownPicture property,
                      set the 'Tag' property to a picture file name for mouse over picture.
Look @ the example files to get the details.
These are the controls you can use, each one returns an object.
    CommandButton
    Label
    PictureBox (If X,Y,W,H are 0 the picture will tile)
    ListBox
    TextBox
    Timer
    DriveListBox
    DirListBox
    FileListBox
    ComboBox
    OptionButton
    CheckBox
    Frame
    HScrollBar
    VScrollBar
    MonthView
    Image
    Line
    Shape
    HUpDown
    VUpDown
    SSTab
    ToggleButton (Is a formated CheckBox)
    DTPicker
    StatusBar
    ProgressBar
    MsFlexGrid
    Slider
    ListView
    TreeView
    ImageList
    ToolBar
    App
    Screen
This site will help you with VB controls.
http://msdn.microsoft.com/en-us/library/aa294929(v=office.11).aspx
Run the examples to see how it all works, and remember... have fun.
 
DownLoad@ vbscript.zip
 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9