Click here to Skip to main content
15,916,683 members
Home / Discussions / C#
   

C#

 
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 
QuestionComboBox Problem Pin
Darren D16-Jan-07 8:33
Darren D16-Jan-07 8:33 
Hi,

I have a combobox with a dropdownstyle of DropDown. I have my DataSource and DisplayMember set up in the combobox properties like so:

DataSource = bindingSourceFollowUpCodes
DisplayMember = Legend
ValueMember = FollowUpCode

I have tried to set the properties to update correctly but I can't figure out how to do it. I have searched all over for an answer. I can do this properly in code. Could someone see if they can figure out what the correct property setting s would be to do this without code?

protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);

// Get Groups list
CommandGetFollowUpCodes getFollowUpCodes = new CommandGetFollowUpCodes("%");
m_FollowUpCodes = (FollowUpCodeList)m_AppController.ExecuteCommand(getFollowUpCodes);

// Bind controls
bindingSourceFollowUpCodes.DataSource = m_FollowUpCodes;

comboBoxFollowUpCode.SelectedItem = null;
GroupItem itmGroup = (GroupItem)bindingSourceDefault.Current;
foreach (FollowUpCodeItem itmFollowUpCode in m_FollowUpCodes)
{
if (itmGroup.FollowUpCode == itmFollowUpCode.FollowUpCode)
{
comboBoxFollowUpCode.SelectedItem = itmFollowUpCode;
}
}
}

private void comboBoxFollowUpCode_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBoxFollowUpCode.SelectedItem != null)
{
GroupItem itmGroup = (GroupItem)bindingSourceDefault.Current;
FollowUpCodeItem itmFollowUpCode = (FollowUpCodeItem)comboBoxFollowUpCode.SelectedItem;
itmGroup.FollowUpCode = itmFollowUpCode.FollowUpCode;
}
}

Thanks,
Darren
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 
GeneralRe: Showing two different printdocuments in single Print Preview dialog? Pin
Luc Pattyn17-Jan-07 7:24
sitebuilderLuc Pattyn17-Jan-07 7:24 

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.