Solved

Visual Basic NOT allowing to create any control or menu item in MDI Form

Posted on 2008-06-18
5
414 Views
Last Modified: 2010-04-21
I am creating a visual basic application

The MDI Form has huge menu structure. Now I want to add further menu items, but Visual Basic is throwing the following message...!

Reached Limit : cannot create any more controls for this form

How to solve this ?
0
Comment
Question by:nds_rahulmistry
  • 2
  • 2
5 Comments
 
LVL 39

Accepted Solution

by:
appari earned 250 total points
ID: 21811072
is it is visual basic 6 or .net?

in vb6 if you reach the control limit, you can try using control array.
try  creating  the new menu controls with samename and define the index, it creates control array.
0
 
LVL 19

Assisted Solution

by:Stephen Manderson
Stephen Manderson earned 250 total points
ID: 21811333
I presume its vb6 because of the tags so..

Vb6 can only handle 254 named controls per form, you need to change your naming convention to allow for control arrays.

Such as text1.text, text2.text, text3.text would be changed to control arrays such that they would be named text(0).text, text(1).text, text(3).text

Regards
Steve
0
 
LVL 19

Expert Comment

by:Stephen Manderson
ID: 21811335
Heres the msdn reference for this issue

http://msdn.microsoft.com/en-us/library/aa265801(VS.60).aspx

Regards
Steve
0
 
LVL 3

Author Comment

by:nds_rahulmistry
ID: 21811374
IT IS VB6

AFTER I DELETED ONE TIMER CONTROL FROM THE DESIGN VIEW OF MDI FORM, NOW IT IS ALLOWING ME TO ADD MANY CONTROLS........!    

ACTUALLY, AFTER ABOVE MESSAGE, I WAS TRYING TO LOCATE UN-USED COMPONENTS OR CONTROLS. I FOUND ONLY THE TIMER CONTROL ON MY MDI FORM. I DELETED IT AND NOW ITS WORKING FINE.....!

ISN'T IT STRANGE ??

REGARDS,

RAHUL
0
 
LVL 3

Author Closing Comment

by:nds_rahulmistry
ID: 31468246
THANX
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 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

13 Experts available now in Live!

Get 1:1 Help Now