Solved

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

Posted on 2004-03-21
5
275 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
[X]
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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

734 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