Click here to Skip to main content
15,913,204 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# UI Control to crop images Pin
electriac17-Jan-07 5:21
electriac17-Jan-07 5:21 
GeneralRe: C# UI Control to crop images Pin
njoaopg17-Jan-07 5:35
njoaopg17-Jan-07 5:35 
Questionhow to display time over form ? Pin
Software_Specialist16-Jan-07 11:20
Software_Specialist16-Jan-07 11:20 
AnswerRe: how to display time over form ? Pin
Guffa16-Jan-07 12:29
Guffa16-Jan-07 12:29 
QuestionDatagridview combobox Pin
john3416-Jan-07 10:48
john3416-Jan-07 10:48 
QuestionListbox selecteditems Pin
Drew McGhie16-Jan-07 9:49
Drew McGhie16-Jan-07 9:49 
AnswerRe: Listbox selecteditems Pin
Luc Pattyn16-Jan-07 10:31
sitebuilderLuc Pattyn16-Jan-07 10:31 
GeneralRe: Listbox selecteditems Pin
Drew McGhie17-Jan-07 3:49
Drew McGhie17-Jan-07 3:49 
Thanks for the response. What I ended up getting working was looping through the items list (which will never be more than a dozen or so), rather than the List<> of items that needed to select. From that, I could parse the correct object from the associated datarow (by casting it as such) and then compare that to the list of approved items.

uxlbSuite.SelectedItems.Clear();
List<object> objectsToAdd = new List<object>();
foreach (object unit in uxlbSuite.Items)
{
   System.Data.DataRowView Row = unit as System.Data.DataRowView;
   if (Row != null && toSelect.Contains(Row["ID"].ToString()))
   {
      objectsToAdd.Add(unit);
   }
}

foreach (object unit in objectsToAdd)
{
   uxlbSuite.SelectedItems.Add(unit);
}

QuestionComboBox Problem Pin
Darren D16-Jan-07 8:33
Darren D16-Jan-07 8:33 
AnswerRe: ComboBox Problem Pin
Christian Graus16-Jan-07 9:09
protectorChristian Graus16-Jan-07 9:09 
GeneralRe: ComboBox Problem Pin
Darren D16-Jan-07 9:28
Darren D16-Jan-07 9:28 
GeneralRe: ComboBox Problem Pin
Dave Kreskowiak16-Jan-07 10:05
mveDave Kreskowiak16-Jan-07 10:05 
GeneralRe: ComboBox Problem Pin
Darren D16-Jan-07 10:15
Darren D16-Jan-07 10:15 
QuestionWindows Events Pin
Monin D.16-Jan-07 8:18
Monin D.16-Jan-07 8:18 
AnswerRe: Windows Events Pin
Christian Graus16-Jan-07 8:23
protectorChristian Graus16-Jan-07 8:23 
AnswerRe: Windows Events Pin
Luc Pattyn16-Jan-07 8:26
sitebuilderLuc Pattyn16-Jan-07 8:26 
AnswerRe: Windows Events Pin
Dave Kreskowiak16-Jan-07 9:30
mveDave Kreskowiak16-Jan-07 9:30 
QuestionShowing two different printdocuments in single Print Preview dialog? Pin
kumar.bs16-Jan-07 8:08
kumar.bs16-Jan-07 8:08 
AnswerRe: Showing two different printdocuments in single Print Preview dialog? Pin
Luc Pattyn16-Jan-07 8:24
sitebuilderLuc Pattyn16-Jan-07 8:24 
GeneralRe: Showing two different printdocuments in single Print Preview dialog? Pin
kumar.bs16-Jan-07 9:15
kumar.bs16-Jan-07 9:15 
GeneralRe: Showing two different printdocuments in single Print Preview dialog? Pin
Luc Pattyn16-Jan-07 9:55
sitebuilderLuc Pattyn16-Jan-07 9:55 
GeneralRe: Showing two different printdocuments in single Print Preview dialog? Pin
kumar.bs16-Jan-07 12:52
kumar.bs16-Jan-07 12:52 
GeneralRe: Showing two different printdocuments in single Print Preview dialog? Pin
Luc Pattyn16-Jan-07 13:05
sitebuilderLuc Pattyn16-Jan-07 13:05 
GeneralRe: Showing two different printdocuments in single Print Preview dialog? Pin
kumar.bs16-Jan-07 13:25
kumar.bs16-Jan-07 13:25 
GeneralRe: Showing two different printdocuments in single Print Preview dialog? Pin
Luc Pattyn16-Jan-07 13:49
sitebuilderLuc Pattyn16-Jan-07 13:49 

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.