473,811 Members | 4,039 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create RectangleShapes at Runtime

1 New Member
I need to create RectangleShapes at Runtime based on a number value placed in a textbox.text by a user.

Each RectangleShape has to have the same height and width, and be evenly spaced apart.

This is what I have so far:
Expand|Select|Wrap|Line Numbers
  1. Dim shpArray As New ArrayList(TextBox1.Text)
  2.         Dim myShape As New Microsoft.VisualBasic.PowerPacks.RectangleShape
  3.         shpArray.Add(myShape)
  4.         For Each shp As Microsoft.VisualBasic.PowerPacks.RectangleShape In shpArray
  5.  
  6.  
  7.         Next
The shpArray in "Dim shpArray As New ArrayList(TextB ox1.Text)"
shows an "overload resolution failed because no accessible 'New can be called without a narrowing conversion:" error.
Nov 14 '11 #1
0 1414

Sign in to post your reply or Sign up for a free account.

Similar topics

5
1941
by: invincible | last post by:
hi friends , how can I declare / create function during runtime similiar to lambda in lisp. thanks Mohan
3
9148
by: takarimasu | last post by:
How can i create an input object (text area,select) at runtime ? B.
1
1974
by: SAN CAZIANO | last post by:
how can i create a runtime table and define a new field to allow null value and set the rquired to true or false ???
7
1572
by: Bob Darlington | last post by:
I've got the Stephen Lebans Report Utilities add in as a reference (A2KReportSpecs.mde ) so that I can export Access 2002 reports to rft instead of Snapshots. It works fine in my app in both mdb and mde formats. When I create an XP Runtime, I can't get it to work with the mde. If I create a runtime using the mdb (which I won't distribute for security reasons), it works fine. I presume it is a referencing problem, but how do I get around...
3
1316
by: MLH | last post by:
More to the point... Is it possible for me to install a runtime set of A97 executables onto a CD, give it to some- one, let them pop it into their PC, dbl-click an icon on CD and have it launch the runtime version of Access (on the CD) and open the mde file (on the CD). The obvious fact is that one could not write to the CD. Not a problem. Don't need to.
17
2075
by: Owen Jenkins | last post by:
I have an Access application that is being used by 150+ clients. I develop in 97, convert to 2000 and distribute as a 97 or 2000 mde, or 97 runtime. This limits me to 97 functions. My clients may use any one of Access 97, 2000, 2002, 2003 or 97 runtime. So that I'm not lingering too far behind, I'm thinking of developing in 2003, using 2000 file format and distributing a 2000 mde for users of Access 2000+. (I understand I'll need to use...
2
5869
by: Steve Pierce | last post by:
I am having some issues with a runtime dropdownlist in a datagrid. The issue is that I cannot get ViewState to fill the selected index of a runtime dropdown properly on postback. I do not want to use template columns as they seem to be a little difficult to create at runtime. Any assistance would be very greatly appreciated. private void DataGrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { if...
9
4988
by: Helly | last post by:
I know this might sound like a silly question but can someone explain to me what Runtime is or how it's used? thanks Helly
2
6567
by: manivelk | last post by:
Hi, i want to know how to display the table control at runtime data entry type.. If any one knows plz help me.. Thanks in advance.. Regards, Manivel. K
2
5222
by: varunkumarid | last post by:
Hai to all, Suppose The Database Table is Deleted by someone, I want to check the Table Either Exist or not and then create the Dynamic Database at the Project Runtime in sql Using the VB.Net Language.. If You Know about this Please Reply Quick.............
0
9724
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10394
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9201
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4336
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3863
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.