Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
AnswerRe: Size Image in PictureBox Pin
Richard MacCutchan20-Jan-12 22:06
mveRichard MacCutchan20-Jan-12 22:06 
AnswerRe: Size Image in PictureBox Pin
Luc Pattyn20-Jan-12 22:41
sitebuilderLuc Pattyn20-Jan-12 22:41 
GeneralRe: Size Image in PictureBox Pin
Richard MacCutchan20-Jan-12 23:04
mveRichard MacCutchan20-Jan-12 23:04 
GeneralRe: Size Image in PictureBox Pin
Steve Harp23-Jan-12 5:33
Steve Harp23-Jan-12 5:33 
GeneralRe: Size Image in PictureBox Pin
Richard MacCutchan23-Jan-12 6:35
mveRichard MacCutchan23-Jan-12 6:35 
AnswerRe: Size Image in PictureBox Pin
Luc Pattyn23-Jan-12 16:07
sitebuilderLuc Pattyn23-Jan-12 16:07 
GeneralRe: Size Image in PictureBox Pin
Richard MacCutchan23-Jan-12 23:07
mveRichard MacCutchan23-Jan-12 23:07 
QuestionDataBinding Pin
MWRivera20-Jan-12 9:37
MWRivera20-Jan-12 9:37 
Hi All,

I have an array of UserRights (class that holds the rights for an individual table) called arrTables and an array of controls called arrControls (10 of each type of control needed). The arrControls are displayed/listed on a Windows form (TableName, ViewRights, EditRights...) so that the data for 10 tables can be viewed at one time. I've bound the data to the form controls using the following code:

C#
for (int iLoop = 0; iLoop < 10; iLoop++)
{
    ctrlQAControls[iLoop, 0].DataBindings.Clear();
    ctrlQAControls[iLoop, 0].DataBindings.Add(new Binding("Text", arrTables, "TableName"));
    currencyMgr.Position++;
}


When I try and display the form to the user data from the 10th table stored in the arrTables array is displayed in all 10 sets of controls. I learnt that the CurrencyManager holds the value of the Current possition and that is the reason for these results.

Is there a way around or an alternative way to implement this without hacing to use a datGridView or other list control?

Thank you
AnswerRe: DataBinding Pin
Dave Kreskowiak20-Jan-12 10:27
mveDave Kreskowiak20-Jan-12 10:27 
GeneralRe: DataBinding Pin
MWRivera25-Jan-12 9:11
MWRivera25-Jan-12 9:11 
AnswerRe: DataBinding Pin
BobJanova22-Jan-12 12:46
BobJanova22-Jan-12 12:46 
GeneralRe: DataBinding Pin
MWRivera25-Jan-12 3:46
MWRivera25-Jan-12 3:46 
QuestionObject naming convention Pin
Ciumac Sergiu20-Jan-12 9:24
Ciumac Sergiu20-Jan-12 9:24 
AnswerMessage Removed Pin
20-Jan-12 9:49
professionalN_tro_P20-Jan-12 9:49 
GeneralRe: Object naming convention Pin
Ciumac Sergiu20-Jan-12 10:08
Ciumac Sergiu20-Jan-12 10:08 
GeneralRe: Object naming convention Pin
Nathan Stiles23-Jan-12 10:59
Nathan Stiles23-Jan-12 10:59 
AnswerRe: Object naming convention Pin
Dave Kreskowiak20-Jan-12 10:18
mveDave Kreskowiak20-Jan-12 10:18 
AnswerRe: Object naming convention Pin
Eddy Vluggen20-Jan-12 10:26
professionalEddy Vluggen20-Jan-12 10:26 
GeneralRe: Object naming convention Pin
Ciumac Sergiu20-Jan-12 10:36
Ciumac Sergiu20-Jan-12 10:36 
AnswerRe: Object naming convention Pin
jschell20-Jan-12 12:44
jschell20-Jan-12 12:44 
AnswerRe: Object naming convention Pin
PIEBALDconsult20-Jan-12 15:26
mvePIEBALDconsult20-Jan-12 15:26 
AnswerMessage Closed Pin
21-Jan-12 5:18
User 113800021-Jan-12 5:18 
GeneralRe: Object naming convention Pin
Ciumac Sergiu22-Jan-12 8:49
Ciumac Sergiu22-Jan-12 8:49 
AnswerRe: Object naming convention Pin
BobJanova22-Jan-12 12:42
BobJanova22-Jan-12 12:42 
QuestionHow to make an application(c#) to connect to a mdf file is located on another system in the network? Pin
hamid reza toosi20-Jan-12 5:26
hamid reza toosi20-Jan-12 5:26 

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.