Click here to Skip to main content
15,890,506 members
Home / Discussions / C#
   

C#

 
GeneralRe: Read and Write a file at the same time? Pin
Tony496624-Nov-09 3:53
Tony496624-Nov-09 3:53 
AnswerRe: Read and Write a file at the same time? Pin
Luc Pattyn23-Nov-09 14:04
sitebuilderLuc Pattyn23-Nov-09 14:04 
GeneralRe: Read and Write a file at the same time? Pin
Paulo Zemek24-Nov-09 1:30
mvaPaulo Zemek24-Nov-09 1:30 
QuestionComponents: create runtime/designtime bindable property, possible? Pin
Wendell.S23-Nov-09 3:55
Wendell.S23-Nov-09 3:55 
AnswerRe: Components: create runtime/designtime bindable property, possible? Pin
The Man from U.N.C.L.E.23-Nov-09 6:45
The Man from U.N.C.L.E.23-Nov-09 6:45 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
Wendell.S23-Nov-09 7:27
Wendell.S23-Nov-09 7:27 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
dojohansen23-Nov-09 8:05
dojohansen23-Nov-09 8:05 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
Wendell.S23-Nov-09 8:56
Wendell.S23-Nov-09 8:56 
let's use the following relational example.

Database Structure:
table one: Employee(EmployeeID, Name, ContactID)
table two: Contact(ContactID, ContactName, Email)

Given the information, an Employee can have ONE Contact. My Component has 2 custom bindable properties, KeyID and Text... when the user types the name of the Contact, it binds the Text (ContactName), and the ContactID in the KeyID property as soon as it is validated.
That's fine... the data at the primary table will be filled and if I try to insert the data on the database, it will work.

Now imagine that I want to see more than one information, not only the contact Name, but I want the component to fill other information Like Email, so.. when i type the name and bind it's key, i also want to show the contact email in another field.... then I need another bindable property linked to the ContactEmail.

Form Design presentation:
EmployeeID (textfield), Name (textField)
ContactID and ContactName (customComponent databind (Text and KeyID))
Email = ? (what is going to fill the email data when I type and select the ContactName on my Component?)

I'll have both textfield and CustomComponent binding to the same field (Email) but one will be used ONLY as presentation. Actually

i need a code example of how to create a bindable property, all the others stuffs I can fix Frown | :(

Any doubts about it?
Thanks!
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
dojohansen23-Nov-09 9:14
dojohansen23-Nov-09 9:14 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
Wendell.S23-Nov-09 17:11
Wendell.S23-Nov-09 17:11 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
Gerry Schmitz23-Nov-09 22:30
mveGerry Schmitz23-Nov-09 22:30 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
Wendell.S23-Nov-09 23:52
Wendell.S23-Nov-09 23:52 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
dojohansen24-Nov-09 0:14
dojohansen24-Nov-09 0:14 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
Gerry Schmitz24-Nov-09 4:07
mveGerry Schmitz24-Nov-09 4:07 
QuestionUngroup shape in word file in c# Pin
Pankaj Saha23-Nov-09 2:24
Pankaj Saha23-Nov-09 2:24 
AnswerRe: Ungroup shape in word file in c# Pin
Pankaj Saha23-Nov-09 3:42
Pankaj Saha23-Nov-09 3:42 
GeneralRe: Ungroup shape in word file in c# Pin
Abhishek Sur23-Nov-09 3:48
professionalAbhishek Sur23-Nov-09 3:48 
GeneralRe: Ungroup shape in word file in c# Pin
Pankaj Saha23-Nov-09 17:46
Pankaj Saha23-Nov-09 17:46 
QuestionGetting CurrentException without catch. Pin
Paulo Zemek23-Nov-09 1:48
mvaPaulo Zemek23-Nov-09 1:48 
AnswerRe: Getting CurrentException without catch. Pin
Richard MacCutchan23-Nov-09 2:06
mveRichard MacCutchan23-Nov-09 2:06 
AnswerRe: Getting CurrentException without catch. Pin
Luc Pattyn23-Nov-09 2:19
sitebuilderLuc Pattyn23-Nov-09 2:19 
AnswerRe: Getting CurrentException without catch. Pin
Shameel23-Nov-09 4:30
professionalShameel23-Nov-09 4:30 
GeneralRe: Getting CurrentException without catch. [modified] Pin
Paulo Zemek23-Nov-09 6:22
mvaPaulo Zemek23-Nov-09 6:22 
GeneralRe: Getting CurrentException without catch. Pin
The Man from U.N.C.L.E.23-Nov-09 6:52
The Man from U.N.C.L.E.23-Nov-09 6:52 
GeneralRe: Getting CurrentException without catch. Pin
Paulo Zemek23-Nov-09 7:03
mvaPaulo Zemek23-Nov-09 7:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.