Click here to Skip to main content
15,922,315 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: how to stop the UPLOADING a file, or SAVING a file in middle by clicking cancel event. Pin
N a v a n e e t h6-Jul-08 19:13
N a v a n e e t h6-Jul-08 19:13 
QuestionCustom DataBinding Question [modified] Pin
David Henry6-Jul-08 10:01
David Henry6-Jul-08 10:01 
AnswerRe: Custom DataBinding Question Pin
darkelv6-Jul-08 16:10
darkelv6-Jul-08 16:10 
GeneralRe: Custom DataBinding Question Pin
David Henry6-Jul-08 22:44
David Henry6-Jul-08 22:44 
GeneralRe: Custom DataBinding Question Pin
darkelv6-Jul-08 23:24
darkelv6-Jul-08 23:24 
GeneralRe: Custom DataBinding Question Pin
David Henry6-Jul-08 23:48
David Henry6-Jul-08 23:48 
GeneralRe: Custom DataBinding Question Pin
darkelv7-Jul-08 3:22
darkelv7-Jul-08 3:22 
AnswerRe: Custom DataBinding Question Pin
David Henry9-Jul-08 22:57
David Henry9-Jul-08 22:57 
After a bit of searching I found This[^] which explained how to use a BindingSource object to bind together all the controls.

The only thing was in the article he adds each reference with the add method on BindingSource instead I just set the DataSource to my array.

Using this method to populate a listbox you get a list showing the object name until you set the DisplayMember to a property name. Also BindingSource only shows properties so my class of public fields didn't work I had to make them all private alter the name and add a public getter and setter with the names i was using elsewhere in my code. But now my textboxes are bound to the array and display whatever is selected in my listbox.

Job Done.

Dave Henry
-----------------------------------------
evil mastermind or genius benefactor?
NEVER trust the bunny...

Questionhow to implement recording sound in .net Pin
Ashok Nalam5-Jul-08 0:42
Ashok Nalam5-Jul-08 0:42 
AnswerDouble Post - Please ignore Pin
Giorgi Dalakishvili5-Jul-08 0:49
mentorGiorgi Dalakishvili5-Jul-08 0:49 
QuestionHow to handle form's ControlBox's Close Button Pin
pashitech4-Jul-08 1:06
pashitech4-Jul-08 1:06 
AnswerRe: How to handle form's ControlBox's Close Button Pin
Giorgi Dalakishvili4-Jul-08 5:30
mentorGiorgi Dalakishvili4-Jul-08 5:30 
GeneralRe: How to handle form's ControlBox's Close Button Pin
pashitech5-Jul-08 2:42
pashitech5-Jul-08 2:42 
GeneralRe: How to handle form's ControlBox's Close Button Pin
Giorgi Dalakishvili5-Jul-08 3:43
mentorGiorgi Dalakishvili5-Jul-08 3:43 
GeneralRe: How to handle form's ControlBox's Close Button Pin
pashitech5-Jul-08 4:45
pashitech5-Jul-08 4:45 
GeneralRe: How to handle form's ControlBox's Close Button Pin
Lutosław5-Jul-08 8:42
Lutosław5-Jul-08 8:42 
QuestionWin forms Sizing Issue Pin
Rohit Mahajan4-Jul-08 0:19
Rohit Mahajan4-Jul-08 0:19 
AnswerRe: Win forms Sizing Issue Pin
Christian Graus4-Jul-08 0:42
protectorChristian Graus4-Jul-08 0:42 
GeneralRe: Win forms Sizing Issue Pin
Rohit Mahajan4-Jul-08 2:19
Rohit Mahajan4-Jul-08 2:19 
GeneralRe: Win forms Sizing Issue Pin
Luc Pattyn4-Jul-08 15:30
sitebuilderLuc Pattyn4-Jul-08 15:30 
QuestionDoes Cross-threading effect non-UI objects? Pin
TheRedEye3-Jul-08 22:51
TheRedEye3-Jul-08 22:51 
AnswerRe: Does Cross-threading effect non-UI objects? Pin
Christian Graus4-Jul-08 0:41
protectorChristian Graus4-Jul-08 0:41 
AnswerRe: Does Cross-threading effect non-UI objects? Pin
Mycroft Holmes6-Jul-08 21:47
professionalMycroft Holmes6-Jul-08 21:47 
Questionsubscript and superscript like H20 Pin
kannanmani3-Jul-08 20:28
kannanmani3-Jul-08 20:28 
RantRe: subscript and superscript like H20 Pin
Smithers-Jones4-Jul-08 7:51
Smithers-Jones4-Jul-08 7:51 

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.