Solved

set text1.datasource= Rec1 (does not exist)??? in vb.net

Posted on 2004-03-21
5
263 Views
Last Modified: 2007-12-19
When I Upgrade my project from vb6 to vb.net the property datasource did not exist. how can i bound a text or a label.??? any solution
Omarmallat
0
Comment
Question by:omarmallat
  • 2
5 Comments
 
LVL 3

Expert Comment

by:pamboo
ID: 10643547

Me.textbox1.DataBindings.Add("Text", urdatatable,mapcolumnname)
Me.label1.DataBindings.Add("Text", urdatatable, mapcoulmnname)



0
 

Author Comment

by:omarmallat
ID: 10644327
please more explanation about parameters
text?
urdatatable?
mapcolumnname?
and where is the recordset?? usualy I bound to a field from a recordset that opened this field!!!
thanks
0
 
LVL 3

Accepted Solution

by:
pamboo earned 40 total points
ID: 10647481
In VB , u can bind only text property of textbox to a datasource,
whereas in Vb .NET u can even bind each property with DB.

In my ex, text means I am binding to the text property of the control textbox1.

U can even bind the Tag property of that textbox to some other columns of ur datatable

In VB .NET ADO is no more (meaning no more recordset concepts) . U have something like Datasets,DataTable,DataVies
eruivalent to Recordset. But  VB .NET supports backward compatabilty. So u can use ADO Recordsets still.

I havent tried using recordset in VB .NET . But try this , it may work

Me.textbox1.DataBindings.Add("Text", RecordSetName,RecordSetFieldName)

-Rajan
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

806 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