.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Ava Aiden
Imran Ghani
Thomas Shaw

Home >> Forum >> VB.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Control Array Error in visual Basic.net

Posted By: Sushil     Posted Date: January 04, 2010    Points:2   Category :VB.Net
Shape1(0).Height = UNIT 'VB6.TwipsToPixelsY(UNIT)
Shape1(0).Width = UNIT 'VB6.TwipsToPixelsX(UNIT)
Shape1(0).Top = SLOC 'VB6.TwipsToPixelsY(SLOC)
Shape1(0).Left = MARGIN_Renamed
Shape1(0).BackColor = Color.White
Here Shape1(0) ,
Error is Control array element 0 doesn't exist.
How I can solve it.

Author: Venkat             
Posted Date: January 08, 2010     Points: 5   


I guess your Shape1 is null. Just check the Shape1 object before calling show method.

Mark As Answer if this solve your problem
Warm Regards,

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend