Click here to Skip to main content
15,789,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Advice on designing a simple task scheduler in embedded C, that can handle asynchronuous tasks? Pin
leon de boer10-Jun-18 18:27
leon de boer10-Jun-18 18:27 
GeneralRe: Advice on designing a simple task scheduler in embedded C, that can handle asynchronuous tasks? Pin
arnold_w10-Jun-18 21:16
arnold_w10-Jun-18 21:16 
GeneralRe: Advice on designing a simple task scheduler in embedded C, that can handle asynchronuous tasks? Pin
leon de boer11-Jun-18 3:52
leon de boer11-Jun-18 3:52 
GeneralRe: Advice on designing a simple task scheduler in embedded C, that can handle asynchronuous tasks? Pin
arnold_w11-Jun-18 4:13
arnold_w11-Jun-18 4:13 
GeneralRe: Advice on designing a simple task scheduler in embedded C, that can handle asynchronuous tasks? Pin
leon de boer11-Jun-18 5:04
leon de boer11-Jun-18 5:04 
GeneralRe: Advice on designing a simple task scheduler in embedded C, that can handle asynchronuous tasks? Pin
arnold_w11-Jun-18 10:38
arnold_w11-Jun-18 10:38 
AnswerRe: Advice on designing a simple task scheduler in embedded C, that can handle asynchronuous tasks? Pin
supercat920-Jun-18 13:22
supercat920-Jun-18 13:22 
QuestionC# combo box text color change Pin
czaar9998-Jun-18 8:18
czaar9998-Jun-18 8:18 
C#
String Area = AreaCBox.Text;
          DAL.CaseBarCode csbrt = new DAL.CaseBarCode();
          System.Data.DataSet csbrs = csbrt.GetPO(Area);
          foreach (DataRow dr in csbrs.Tables[0].Rows)
          {

              POCBox.Items.Add(dr["ProductionOrder"]);

          }

Hello,

In the above the code I am calling a stored procedure(csbrt.GetPO(Area)) which retrieves two values "ProductionOrder" and "colorflag" columns. I am inserting ProductionOrder into 'POCBox' combobox.

Now my requirement is to color the text for ProductionOrder in the combobox to green if the colorflag value is 0 and color it red if the colorflag value is 1. Please help with the code. Thanks in advance.
AnswerRe: C# combo box text color change Pin
Richard Andrew x648-Jun-18 11:54
professionalRichard Andrew x648-Jun-18 11:54 
Questionusing dynamic_cast with template classes. Pin
Tarun Jha5-Jun-18 2:48
Tarun Jha5-Jun-18 2:48 
AnswerRe: using dynamic_cast with template classes. Pin
Richard MacCutchan5-Jun-18 4:20
mveRichard MacCutchan5-Jun-18 4:20 
GeneralRe: using dynamic_cast with template classes. Pin
Tarun Jha5-Jun-18 9:31
Tarun Jha5-Jun-18 9:31 
GeneralRe: using dynamic_cast with template classes. Pin
Richard MacCutchan5-Jun-18 22:00
mveRichard MacCutchan5-Jun-18 22:00 
AnswerRe: using dynamic_cast with template classes. Pin
CPallini5-Jun-18 12:03
mveCPallini5-Jun-18 12:03 
GeneralRe: using dynamic_cast with template classes. Pin
Tarun Jha5-Jun-18 19:45
Tarun Jha5-Jun-18 19:45 
GeneralRe: using dynamic_cast with template classes. Pin
CPallini5-Jun-18 22:22
mveCPallini5-Jun-18 22:22 
GeneralRe: using dynamic_cast with template classes. Pin
Tarun Jha6-Jun-18 4:11
Tarun Jha6-Jun-18 4:11 
GeneralRe: using dynamic_cast with template classes. Pin
CPallini6-Jun-18 23:26
mveCPallini6-Jun-18 23:26 
QuestionDevice manager in windows. Pin
Member 138414544-Jun-18 10:14
Member 138414544-Jun-18 10:14 
SuggestionRe: Device manager in windows. Pin
David Crow4-Jun-18 11:09
David Crow4-Jun-18 11:09 
GeneralTiniest portable executable Pin
DaviFN4-Jun-18 7:25
DaviFN4-Jun-18 7:25 
GeneralRe: Tiniest portable executable Pin
leon de boer4-Jun-18 21:17
leon de boer4-Jun-18 21:17 
Questioni would like to be a programmer Pin
Member 1384988629-May-18 8:58
Member 1384988629-May-18 8:58 
SuggestionRe: i would like to be a programmer Pin
David Crow29-May-18 9:31
David Crow29-May-18 9:31 
AnswerRe: i would like to be a programmer Pin
Victor Nijegorodov29-May-18 10:27
Victor Nijegorodov29-May-18 10:27 

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.