Solved

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

Posted on 2011-02-22
2
292 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
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now