CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 1999
    Posts
    128

    Adding properties/events

    Is there any way to add a property or an event in a standard VB form?


    -------------------------
    Nick A.

  2. #2
    Join Date
    Dec 1999
    Posts
    128

    Re: Adding properties/events

    I found something in VB's help (under Adding an Event to a Form) but it's not very convenient. Is there another way? Perhaps using WinAPI? I have a routine which i use to load forms. I want to be able (inside that routine) to add an event to each form i load.

    -------------------------
    Nick A.

  3. #3
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: Adding properties/events

    Events, i don't know. But you can add your own properties with the SetProp API.
    What do you want to do? Maybe you can create functions in the forms with fixed names to call (instead of raising an event).

    Crazy D @ Work :-)

  4. #4
    Join Date
    Dec 1999
    Posts
    128

    Re: Adding properties/events

    Even if i could create an event programmatically when i loaded a form, how would i put code in it since in development mode it wouldn't exist??? Silly me. Forget it. One of my crazy thoughts...

    SetProp you say. Hmmm..... I don't think it will be helpful for what i want but i'll have it in mind. Thanx for the suggestion.

    -------------------------
    Nick A.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured