473,397 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Create RectangleShapes at Runtime

1
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(TextBox1.Text)"
shows an "overload resolution failed because no accessible 'New can be called without a narrowing conversion:" error.
Nov 14 '11 #1
0 1402

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

Similar topics

5
by: invincible | last post by:
hi friends , how can I declare / create function during runtime similiar to lambda in lisp. thanks Mohan
3
by: takarimasu | last post by:
How can i create an input object (text area,select) at runtime ? B.
1
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
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...
3
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...
17
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...
2
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...
9
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
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.