Click here to Skip to main content
15,906,574 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionControlling Window State ? Pin
Fritzables11-Dec-06 17:27
Fritzables11-Dec-06 17:27 
AnswerRe: Controlling Window State ? Pin
Nish Nishant12-Dec-06 1:02
sitebuilderNish Nishant12-Dec-06 1:02 
GeneralRe: Controlling Window State ? Pin
Fritzables12-Dec-06 14:37
Fritzables12-Dec-06 14:37 
QuestionSet/GetItemData Pin
Epi11-Dec-06 5:31
Epi11-Dec-06 5:31 
AnswerRe: Set/GetItemData Pin
George L. Jackson11-Dec-06 15:15
George L. Jackson11-Dec-06 15:15 
AnswerRe: Set/GetItemData Pin
User 58385211-Dec-06 16:26
User 58385211-Dec-06 16:26 
GeneralRe: Set/GetItemData Pin
Epi12-Dec-06 0:18
Epi12-Dec-06 0:18 
GeneralRe: Set/GetItemData Pin
Epi12-Dec-06 1:51
Epi12-Dec-06 1:51 
Ok I did it,

I create the class

ref class MyDatas: public System::Object<br />
{<br />
  String^ Name;<br />
  double Value1, Value2;<br />
<br />
public:<br />
  MyDatas(String^ NameC,double Value1C,double Value2C)<br />
  {<br />
    Name = NameC;<br />
    Value1 = Value1C;<br />
    Value2 = Value2C;<br />
  }<br />
public:<br />
virtual String^ ToString () override<br />
  {<br />
    return Name;<br />
  }<br />
<br />
};<br />


and I add the items to the comboBox like,

<br />
this->cBMyDatas->Items->AddRange(gcnew cli::array< System::Object^ >(4)<br />
      {<br />
        gcnew MyDatas("Data1",1,1),<br />
        gcnew MyDatas("Data2",2,2),<br />
        gcnew MyDatas("Data3",3,3)<br />
      });<br />


And to get the item selected I just have to make a cast



DataSel = (MyDatas^) cBMyDatas->SelectedItem::get();

Thanks
QuestionUsing VB dll's in C++ Pin
jgrogan11-Dec-06 0:52
jgrogan11-Dec-06 0:52 
AnswerRe: Using VB dll's in C++ Pin
Sam Hobbs11-Dec-06 0:58
Sam Hobbs11-Dec-06 0:58 
QuestionSome Compiler Error (from VS .Net 2k3 to VS .Net 2k5) Pin
Programm3r10-Dec-06 20:32
Programm3r10-Dec-06 20:32 
QuestionMaking a callback an instance member function... Pin
Shy Agam10-Dec-06 19:16
Shy Agam10-Dec-06 19:16 
AnswerRe: Making a callback an instance member function... Pin
Sam Hobbs11-Dec-06 0:55
Sam Hobbs11-Dec-06 0:55 
GeneralRe: Making a callback an instance member function... Pin
Shy Agam11-Dec-06 1:02
Shy Agam11-Dec-06 1:02 
GeneralRe: Making a callback an instance member function... Pin
Sam Hobbs11-Dec-06 1:14
Sam Hobbs11-Dec-06 1:14 
GeneralRe: Making a callback an instance member function... Pin
Shy Agam11-Dec-06 1:16
Shy Agam11-Dec-06 1:16 
GeneralRe: Making a callback an instance member function... Pin
Sam Hobbs11-Dec-06 1:18
Sam Hobbs11-Dec-06 1:18 
GeneralRe: Making a callback an instance member function... Pin
Shy Agam11-Dec-06 1:24
Shy Agam11-Dec-06 1:24 
GeneralRe: Making a callback an instance member function... Pin
Mark Salsbery11-Dec-06 6:56
Mark Salsbery11-Dec-06 6:56 
GeneralRe: Making a callback an instance member function... Pin
Shy Agam11-Dec-06 7:52
Shy Agam11-Dec-06 7:52 
GeneralRe: Making a callback an instance member function... Pin
Mark Salsbery11-Dec-06 8:04
Mark Salsbery11-Dec-06 8:04 
GeneralRe: Making a callback an instance member function... Pin
Shy Agam11-Dec-06 8:13
Shy Agam11-Dec-06 8:13 
GeneralRe: Making a callback an instance member function... Pin
Mark Salsbery11-Dec-06 8:18
Mark Salsbery11-Dec-06 8:18 
GeneralRe: Making a callback an instance member function... Pin
Shy Agam11-Dec-06 8:20
Shy Agam11-Dec-06 8:20 
QuestionRunning an external EXE ? Pin
Fritzables10-Dec-06 15:01
Fritzables10-Dec-06 15:01 

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.