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
Joshua Chambers
NA
6
0
binding a text field to a variable that's not quite in a dataset?
May 16 2008 2:31 PM
So... I have this form, and on it are a bunch of textbox controls... I populate the field from a database, which is actually queried from Outlook using the COM Outlook Interop stuff. I've got a bunch of data stored in an Outlook.ContactItem and an Outlook.JournalItem, and I want the user to be able to change these fields on the form and have them reflected in the database (potentially with a save button). Now, obviously, I can go through one by one when the save button is hit and move the data into the JournalItem and ContactItem objects just like I do when the form appears, by simply assigning one to the other.
But is there a better way?! Can I set the value of the text box to refer like a pointer to the actual piece of data, so all I have to do in the save button action is to call the Journal and Contact Item's Save() functions? This would be delightful, and make my work much easier, so if there's a way to do this, please do someone tell me, if not, I'll do it the long-winded one by one way. :)
THANK YOU ALL SO MUCH!
Joshua
Reply
Answers (
1
)
Testing whether a key on keyboard is actually pressed
User Control Width Hell!