Solved

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

Posted on 2011-02-22
2
297 Views
Last Modified: 2012-05-11
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
Comment
Question by:Budified
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 37

Accepted Solution

by:
Neil Russell earned 500 total points
ID: 34958461
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
 

Author Closing Comment

by:Budified
ID: 34958554
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question