Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-03-21
5
Medium Priority
?
286 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 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)

-Rajan
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

604 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