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

Managed C++/CLI

 
GeneralRe: update listbox?? Pin
Thilek9-Feb-09 18:44
Thilek9-Feb-09 18:44 
GeneralRe: update listbox?? Pin
Mark Salsbery9-Feb-09 20:41
Mark Salsbery9-Feb-09 20:41 
GeneralRe: update listbox?? Pin
Thilek9-Feb-09 21:59
Thilek9-Feb-09 21:59 
GeneralRe: update listbox?? Pin
Mark Salsbery10-Feb-09 5:53
Mark Salsbery10-Feb-09 5:53 
GeneralRe: update listbox?? Pin
Thilek10-Feb-09 5:57
Thilek10-Feb-09 5:57 
GeneralRe: update listbox?? Pin
Thilek10-Feb-09 6:17
Thilek10-Feb-09 6:17 
AnswerRe: update listbox?? Pin
N a v a n e e t h9-Feb-09 15:04
N a v a n e e t h9-Feb-09 15:04 
QuestionPass data between forms Pin
liverpoolfan8-Feb-09 8:11
liverpoolfan8-Feb-09 8:11 
Hi,

I have 7 forms in my project. Form 6 has a text box, I wish for the text entered in Form 6 to be passed to a label in Form 7. I am new to C++ and would really appreciate any advice. I have posted the code I am trying to work with but i keep getting error C2248. Please Help!! Thanks.

public ref class Form6 : public System::Windows::Forms::Form
{
public:String^str1;

public:

Form6(void)


{

InitializeComponent();
//
//TODO: Add the constructor code here
//
}
#pragma endregion
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {

Application::Exit();
}
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {

Application::Exit();
}
private: System::Void label2_Click(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e) {

this->textBox2->Text = this->textBox1->Text;
this->textBox1->Text = "";
this->textBox1->Text = "Saved";
}
private: System::Void textBox1_TextChanged(System::Object^ sender, System::EventArgs^ e) {
}
public: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) {
str1 = this->textBox2->text;
Form6::Hide();
Form7 myForm;
if(myForm.ShowDialog() == System::Windows::Forms::DialogResult::OK)

{
//Do stuff
}
}
private: System::Void Form6_Load(System::Object^ sender, System::EventArgs^ e) {
str1 = "str1default";
}
private: System::Void textBox2_TextChanged(System::Object^ sender, System::EventArgs^ e) {
str1=textBox2->Text;
}
};
}
AnswerRe: Pass data between forms Pin
N a v a n e e t h8-Feb-09 15:23
N a v a n e e t h8-Feb-09 15:23 
QuestionProblem showing an existing form called from another existing form Pin
regnwald6-Feb-09 15:42
regnwald6-Feb-09 15:42 
AnswerRe: Problem showing an existing form called from another existing form Pin
N a v a n e e t h6-Feb-09 15:55
N a v a n e e t h6-Feb-09 15:55 
GeneralRe: Problem showing an existing form called from another existing form Pin
regnwald6-Feb-09 17:08
regnwald6-Feb-09 17:08 
GeneralRe: Problem showing an existing form called from another existing form Pin
N a v a n e e t h7-Feb-09 2:30
N a v a n e e t h7-Feb-09 2:30 
GeneralRe: Problem showing an existing form called from another existing form Pin
regnwald7-Feb-09 13:17
regnwald7-Feb-09 13:17 
Questiononline tic tac toe Pin
staticv6-Feb-09 4:30
staticv6-Feb-09 4:30 
AnswerRe: online tic tac toe Pin
«_Superman_»6-Feb-09 16:45
professional«_Superman_»6-Feb-09 16:45 
Questionconnecting to mysql in a remote location.. Pin
Thilek5-Feb-09 5:33
Thilek5-Feb-09 5:33 
AnswerRe: connecting to mysql in a remote location.. Pin
led mike5-Feb-09 6:37
led mike5-Feb-09 6:37 
AnswerRe: connecting to mysql in a remote location.. Pin
N a v a n e e t h5-Feb-09 15:26
N a v a n e e t h5-Feb-09 15:26 
GeneralRe: connecting to mysql in a remote location.. Pin
Thilek5-Feb-09 23:16
Thilek5-Feb-09 23:16 
GeneralRe: connecting to mysql in a remote location.. Pin
N a v a n e e t h6-Feb-09 14:37
N a v a n e e t h6-Feb-09 14:37 
GeneralRe: connecting to mysql in a remote location.. Pin
Thilek6-Feb-09 18:53
Thilek6-Feb-09 18:53 
GeneralRe: connecting to mysql in a remote location.. Pin
N a v a n e e t h7-Feb-09 2:42
N a v a n e e t h7-Feb-09 2:42 
GeneralRe: connecting to mysql in a remote location.. Pin
Thilek9-Feb-09 5:11
Thilek9-Feb-09 5:11 
Questionvector<wstring> to System::String ??</wstring> Pin
Thilek4-Feb-09 19:52
Thilek4-Feb-09 19:52 

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.