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

Posted on 2004-03-21
Medium Priority
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
Question by:omarmallat
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

ID: 10643547

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


Author Comment

ID: 10644327
please more explanation about parameters
and where is the recordset?? usualy I bound to a field from a recordset that opened this field!!!

Accepted Solution

pamboo earned 160 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)


Featured Post

RHCE - Red Hat OpenStack Prep Course

This course will provide in-depth training so that students who currently hold the EX200 & EX210 certifications can sit for the EX310 exam. Students will learn how to deploy & manage a full Red Hat environment with Ceph block storage, & integrate Ceph into other OpenStack service

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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 …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

801 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