|
-
May 28th, 2004, 03:59 PM
#1
Thread Starter
Member
referncing to a control +
hello,
i have two important questions :
question 1:
i have a name of a control (string). i want to create an object of this control.
the problem is that me.controls() only works with integers and i need to create it while using a string of it's name.
i can create a function that will loop the controls array and return the correct number but i have a lot of controls in each forms.
question 2:
I'm tring to use
Me.BindingContext(m_DsData.Tables(0)).AddNew()
but nothing happens.
what could be the reason ?
many thanks
Eran.
-
May 28th, 2004, 04:50 PM
#2
PowerPoster
Hi,
Ref. your point 1.
Have a look at the thread posted just before yours.
http://www.vbforums.com/showthread.p...hreadid=291544
It should help.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
-
May 28th, 2004, 06:17 PM
#3
Thread Starter
Member
thanks... unfortunatly
since i create my controls on run-time, i can't use this method.
the type of my form doesn't recognize those button as members because they are private situation
i think i will have to create an hash table from the controls array with key as name and value as location in control array
regarding my second question, i really need guidness.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|