CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2000
    Location
    Upstate NY
    Posts
    249

    Objects not there

    This is a dumb one. I have a form with about 100 different objects. Buttons textboxes etc. Now I find that In trying to add a button or textbox or label that these show up fine on the template but at run time they are just not there . Not even when they are declared visible in code. Like I said "a dumb one"
    73 RSH


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

    Re: Objects not there

    You might make make sure they are in the visible bounds of the container and that the container is visible.
    A quick and dirty check would to put a Debug.print in the Forms_Click event that displays the missing controls top, Left, width and height, etc properties to see where they are located.

    John G

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

    Re: Objects not there

    Also chack and make sure they are not Hiding behind another control. Look at the .ZOrder method to determine the pecking order for controls that occupy the same space on a form. The pecking order is listed in the bottom couple of paragraphs of the .Zorder method in MSDN Help

    John G

  4. #4
    Join Date
    Oct 2000
    Location
    Upstate NY
    Posts
    249

    Re: Objects not there

    Sorry Fellers, Like I said it was a dumb one.
    I had turned off all objects on load with the (for each) Statement when I wrote the program
    a year ago. I forgot it was there.
    73 and Thanks


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