• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 303
  • Last Modified:

ERROR 'Button16" is not a member of Test.FormName

I have been successfully using a Button on a form for more than a year in Visual Basic 2005
After moving this Button into a Panel control I started getting the following run time error:

'Button16’ is not a member of   Test.FormName

I continued to get this error even when the button was taken out of the Panel control and moved back to its original location on the form.  When programing (i.e.; me. button16.visible = false) I get the same error.   However all the Events associated with this button continue to function.
When I type “me.” the intellisense (sp?) box list all of the components on this form except Button16.  It even shows the Events associated with button16 (i.e.;  button16_ click) but not button16.  As if there was no button on the form with this name.
I am now unable to change any of button16 's properties within the program.

Why would the program no longer recognize the existence of a button?
Thanks for the help,
0
Budified
Asked:
Budified
1 Solution
 
Neil RussellTechnical Development LeadCommented:
In the gui just delete Button16 and add a new Button and call it Button16. Event code will stay as it is i seem to remember.
0
 
BudifiedAuthor Commented:
Even though this was an easy solution.... the key point made within the solution was that the remnents of the prior Button16 would remain unchange.  That was the key point.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now