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

    Avoid default method

    Under VB when I call a control in a dialog box (TestD)for example : TestD.OneTexBox , it calls in fact the default method of the TextBox class which is Value. Is there a way to avoid this please ?


  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Avoid default method

    There is no way to prevent VB from using default properties by other than specifying exactly what you want (Leave it blank and VB will supply the default). In VB.Net (VB 7), default values are no longer accepted.

    John G

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