Click here to Skip to main content
16,018,394 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: c++/cli asynchronous socket communication Pin
Member 45422722-Mar-08 18:08
Member 45422722-Mar-08 18:08 
GeneralRe: c++/cli asynchronous socket communication Pin
teejayem4-Mar-08 6:56
teejayem4-Mar-08 6:56 
QuestionRe: c++/cli asynchronous socket communication (solved but prompt out strange error) [modified] Pin
Member 45422727-Mar-08 20:07
Member 45422727-Mar-08 20:07 
GeneralRe: c++/cli asynchronous socket communication (solved but prompt out strange error) Pin
Mark Salsbery10-Mar-08 9:02
Mark Salsbery10-Mar-08 9:02 
GeneralRe: c++/cli asynchronous socket communication (solved but prompt out strange error) [solved] Pin
Member 454227211-Mar-08 17:17
Member 454227211-Mar-08 17:17 
Questionhow to create a file inside a directory Pin
rose19627-Feb-08 19:50
rose19627-Feb-08 19:50 
AnswerRe: how to create a file inside a directory Pin
Christian Graus27-Feb-08 20:27
protectorChristian Graus27-Feb-08 20:27 
Generaldialogbox Pin
rose19627-Feb-08 16:00
rose19627-Feb-08 16:00 
Hi,

I am creating a modeldialogbox,I wrote the code as follows.


void Mform::newToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e)
{

Form ^dlgl= gcnew Form();
this->btn = gcnew Button();
this->btn->Text = L"OK";
this->btn->Location = System::Drawing::Point(100,160);
this->btn->Click += gcnew System::EventHandler(this,&Mform::bt1_Click);

this->label = gcnew Label();
this->label->Text = L"Enter the filename : ";
this->label->Location = System::Drawing::Point(45,20);
this->label->Size = System::Drawing::Size(113,13);

this->textbox = gcnew TextBox();
this->textbox->Location = System::Drawing::Point(178,20);
this->textbox->Text = "";
this->textbox->Multiline = true;
this->textbox->AcceptsReturn = true;
this->textbox->AcceptsTab = false;
this->textbox->WordWrap = true;

dlgl->AcceptButton=btn;
dlgl->CancelButton = btn1;
dlgl->MaximizeBox = false;
dlgl->MinimizeBox = false;
dlgl->Controls->Add(this->btn);
dlgl->Controls->Add(this->btn1);
dlgl->Controls->Add(this->label);
dlgl->Controls->Add(this->textbox);
dlgl->ShowDialog();

}
void Mform::bt1_Click(System::Object^ sender, System::EventArgs^ e)
{

this->rtext = gcnew RichTextBox();
String ^path1;
path1=textbox->Text::get();
if(path1 == "")
{
MessageBox::Show("Enter the filename","Error",MessageBoxButtons::OK);
}
else{
FileInfo ^fi = gcnew FileInfo(path1);
if(fi->Exists)
{
MessageBox::Show(" filename exists","Error",MessageBoxButtons::OK);
}
else
{
FileStream ^fs = fi->Create();
this->f = gcnew Form();
this->f->MdiParent = this;
this->f->Show();

this->rtext->Dock = DockStyle::Fill;
this->f->Controls->Add(this->rtext);
}
}
}


In this code when i press ok button, it perform needed the operation but the dialog box is not closed.

help me. where i done a mistake.
GeneralRe: dialogbox Pin
Christian Graus27-Feb-08 20:24
protectorChristian Graus27-Feb-08 20:24 
Questionhow to create a model dialog box Pin
rose19627-Feb-08 5:03
rose19627-Feb-08 5:03 
GeneralRepost ignore Pin
led mike27-Feb-08 5:04
led mike27-Feb-08 5:04 
QuestionNode in a treeview Pin
readwrite27-Feb-08 1:48
readwrite27-Feb-08 1:48 
GeneralRe: Node in a treeview Pin
led mike27-Feb-08 5:16
led mike27-Feb-08 5:16 
Generalmodel dialog box Pin
rose19626-Feb-08 22:40
rose19626-Feb-08 22:40 
GeneralRe: model dialog box Pin
led mike27-Feb-08 5:03
led mike27-Feb-08 5:03 
GeneralRe: model dialog box Pin
rose19627-Feb-08 5:25
rose19627-Feb-08 5:25 
GeneralSearching Files.. Pin
ptr2void26-Feb-08 18:00
ptr2void26-Feb-08 18:00 
GeneralRe: Searching Files.. Pin
led mike27-Feb-08 5:00
led mike27-Feb-08 5:00 
GeneralRe: Searching Files.. Pin
ptr2void27-Feb-08 17:48
ptr2void27-Feb-08 17:48 
GeneralRe: Searching Files.. Pin
led mike28-Feb-08 5:40
led mike28-Feb-08 5:40 
Generalusing office Word 2003/2007 Pin
javad_200526-Feb-08 6:22
javad_200526-Feb-08 6:22 
GeneralRe: using office Word 2003/2007 Pin
Paul Conrad29-Feb-08 8:04
professionalPaul Conrad29-Feb-08 8:04 
QuestionFirst contact with C++/CLI Pin
Luca Leonardo Scorcia25-Feb-08 23:35
professionalLuca Leonardo Scorcia25-Feb-08 23:35 
GeneralRe: First contact with C++/CLI Pin
Mark Salsbery26-Feb-08 8:44
Mark Salsbery26-Feb-08 8:44 
GeneralListbox Problem.. Pin
ptr2void25-Feb-08 22:28
ptr2void25-Feb-08 22:28 

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.