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

    Control Notifications

    Hi ALL,
    In a VB form I am having different types of controls.Say 3 text boxes and 2 combo boxes.
    I am accepting an input in one textbox.Whatever
    the value entered in that textbox should come in
    all the controls.The Main important thing is you should not write the Code in Any of the events in the control.For my knowledge , I think using API
    We can do. Can you anybody give me the exact solution for this one?.
    Thanks in advance.
    Regards,
    Palani.






  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Control Notifications

    you could subclass all relevant controls and handle the events in the subclassing procedure.
    To do subclassing check out the SetWindowLong API
    and use the AddressOf operator for getting the address of the procedure that is supposed to handle the events.
    And..., honestly I strongly disagree with your statement "...you should not write the Code in Any of the events in the control"

    That's the way VB is designed, IMHO. Thus writing against or around that design is something that I would not recommend.


  3. #3
    Join Date
    Apr 1999
    Posts
    10

    Re: Control Notifications

    Hi Lothar,
    Thanks for your Information.I will look for subClassing.If you give me an simple Code for Two Text box controls in a Form, I will be happy.Because this is urgent one for me.
    Thanks in advance !

    Regards,
    Palani.


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