TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
khuram tanweer
NA
5
0
BindingSource for Windows Forms
May 4 2010 10:25 AM
Hi
I wonder if anyone can help me i am stuck on trying to retrieve a current value from a Bindingsource which has only one row. I have recently moved from VB to C# and i had it working perfectly in VB. My project is a windows application.
The vb code that worked for me was
greeting.Text =
"Good Morning"
&
" "
&
Me
.PersonBindingSource.Current(
"firstname"
).ToString &
""
I tried the following in C#
lbl_greeting.Text = personBindingSource.Current(
"firstname"
.ToString().ToString());
except it keeps throwing up
Non-Invocable member 'systems.windows.forms.bindingsource.current' cannot be used like a method.
Please can someone help me out. I would be very greatfull!
Thanks
Reply
Answers (
6
)
MDI Forms
Deploying and Installing Windows Service on Windows 7