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

C#

 
QuestionStatusStrip don't process mouse clicks if parent window is inactive. Pin
Patric_J19-Mar-08 5:24
Patric_J19-Mar-08 5:24 
GeneralVS 2005: 'Data' menu keeps disappearing! [modified] Pin
packmichael19-Mar-08 5:10
packmichael19-Mar-08 5:10 
GeneralRe: VS 2005: 'Data' menu keeps disappearing! Pin
Not Active19-Mar-08 5:27
mentorNot Active19-Mar-08 5:27 
GeneralRe: VS 2005: 'Data' menu keeps disappearing! Pin
packmichael19-Mar-08 6:32
packmichael19-Mar-08 6:32 
Questionhow to disable arrow key on grid to fire any event. Pin
amit_8319-Mar-08 4:46
amit_8319-Mar-08 4:46 
Question[Message Deleted] Pin
hatemtaleb19-Mar-08 4:23
hatemtaleb19-Mar-08 4:23 
Generalcross post (ignore) Pin
led mike19-Mar-08 4:48
led mike19-Mar-08 4:48 
GeneralConfused by events Pin
Taurian11019-Mar-08 3:48
Taurian11019-Mar-08 3:48 
I have a windows app and on form_load i am calling a funciton that is building a list but this function gets called on other ocassions also (when there is change in data (i.e. add, update or delete)). I want to raise an event when I have the item.Name available so I can populate the drop down box with the item names.

So essentially I want an OnItemLoad event to be fired and when its fired I want the drop down box to populate the items.

for (int i = 0; i < Category.Length; i++)
{
    #region This section needs to be replaced by the event
    if (populateCategoryDropDownList)
    {
        ddlCategory.Items.Add(Category[i].CategoryName);
    }
    #endregion
    ...
    txtControl.AutoCompleteCustomSource.Add(temp);
    ...
}


I have tried working with examples available on msdn etc but it gets soo confusing! this seem like a very simple task but I just can't seem to figure it out. Please help !
GeneralRe: Confused by events Pin
Not Active19-Mar-08 3:55
mentorNot Active19-Mar-08 3:55 
GeneralRe: Confused by events Pin
Taurian11019-Mar-08 5:00
Taurian11019-Mar-08 5:00 
GeneralRe: Confused by events Pin
Not Active19-Mar-08 5:26
mentorNot Active19-Mar-08 5:26 
GeneralConstructor of Structs. Pin
SPanicker*19-Mar-08 3:45
SPanicker*19-Mar-08 3:45 
GeneralRe: Constructor of Structs. Pin
Ennis Ray Lynch, Jr.19-Mar-08 3:49
Ennis Ray Lynch, Jr.19-Mar-08 3:49 
GeneralRe: Constructor of Structs. Pin
SPanicker*19-Mar-08 3:56
SPanicker*19-Mar-08 3:56 
GeneralRe: Constructor of Structs. Pin
Ennis Ray Lynch, Jr.19-Mar-08 4:01
Ennis Ray Lynch, Jr.19-Mar-08 4:01 
GeneralRe: Constructor of Structs. Pin
SPanicker*19-Mar-08 4:17
SPanicker*19-Mar-08 4:17 
GeneralRe: Constructor of Structs. Pin
PIEBALDconsult19-Mar-08 16:11
mvePIEBALDconsult19-Mar-08 16:11 
GeneralRe: Constructor of Structs. Pin
SPanicker*19-Mar-08 20:07
SPanicker*19-Mar-08 20:07 
GeneralRe: Constructor of Structs. Pin
mmikey719-Mar-08 4:53
mmikey719-Mar-08 4:53 
GeneralRe: Constructor of Structs. Pin
SPanicker*19-Mar-08 5:17
SPanicker*19-Mar-08 5:17 
GeneralRe: Constructor of Structs. Pin
SPanicker*19-Mar-08 5:30
SPanicker*19-Mar-08 5:30 
GeneralRe: Constructor of Structs. Pin
mmikey719-Mar-08 5:50
mmikey719-Mar-08 5:50 
GeneralRe: Constructor of Structs. Pin
SPanicker*19-Mar-08 20:04
SPanicker*19-Mar-08 20:04 
GeneralRe: Constructor of Structs. Pin
mmikey719-Mar-08 21:48
mmikey719-Mar-08 21:48 
GeneralRe: Constructor of Structs. Pin
SPanicker*20-Mar-08 21:51
SPanicker*20-Mar-08 21: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.