Solved

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

Posted on 2004-03-21
5
258 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Service to Receive TCP Packets 4 122
Copy/Clone an object. 9 30
Syntax Error 2 46
Crystal reports vb.net 2 7
IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now