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

Managed C++/CLI

 
AnswerRe: Where is this managed object stored? Pin
George L. Jackson19-Jan-12 1:16
George L. Jackson19-Jan-12 1:16 
GeneralRe: Where is this managed object stored? Pin
Frank__Q19-Jan-12 10:34
Frank__Q19-Jan-12 10:34 
AnswerRe: Where is this managed object stored? Pin
Luc Pattyn19-Jan-12 10:54
sitebuilderLuc Pattyn19-Jan-12 10:54 
GeneralRe: Where is this managed object stored? Pin
slawomir_orlowski28-Jan-12 22:51
slawomir_orlowski28-Jan-12 22:51 
QuestionActiveX issue: ATL 8.0 text in IE Pin
birajendu5-Jan-12 19:32
birajendu5-Jan-12 19:32 
AnswerRe: ActiveX issue: ATL 8.0 text in IE Pin
John Schroedl6-Jan-12 4:48
professionalJohn Schroedl6-Jan-12 4:48 
GeneralRe: ActiveX issue: ATL 8.0 text in IE Pin
birajendu8-Jan-12 20:15
birajendu8-Jan-12 20:15 
QuestionUsing a webBrowser control to format process feedback. Pin
PapaGeek4-Jan-12 7:04
PapaGeek4-Jan-12 7:04 
Form1 creates the webBrowser with this code:

C++
// 
// webBrowser1
// 
this->webBrowser1->AllowNavigation = false;
this->webBrowser1->Location = System::Drawing::Point(57, 102);
this->webBrowser1->MinimumSize = System::Drawing::Size(20, 20);
this->webBrowser1->Name = L"webBrowser1";
this->webBrowser1->Size = System::Drawing::Size(250, 140);
this->webBrowser1->TabIndex = 3;
this->webBrowser1->Url = (gcnew System::Uri(L"about:blank", System::UriKind::Absolute));


I have a series of “Do This” buttons on the main form.

I want to be able to clear the web browser window as each button is clicked so the browser control only displays the result of the last button that was pressed.

As a test, I am calling this Html Line method 5 times. Each call should clear the box and display only the last html line. I’ve tried multiple ways to clear the box, nothing works. At the end of the process all 5 lines are displayed.

What is the proper way to define a web browser box so I can clear it and refill it at will?

C++
System::Void Feedback::HtmlLine ( String ^ showLine )
{
	if ( webBox == nullptr)
		return;
	webBox->DocumentText = "";          // Does nothing!
	webBox->Navigate("about::empty");   // Does nothing!
	webBox->Document->Write(showLine);
         webBox->Refresh();
	String ^ fullDisplay = webBox->DocumentText;  // Content just keeps growing

	int count = 1;
	return;
}

AnswerRe: Using a webBrowser control to format process feedback. Pin
Luc Pattyn4-Jan-12 7:33
sitebuilderLuc Pattyn4-Jan-12 7:33 
AnswerRe: Using a webBrowser control to format process feedback. Pin
John Schroedl6-Jan-12 4:40
professionalJohn Schroedl6-Jan-12 4:40 
AnswerRe: Using a webBrowser control to format process feedback. Pin
Sam Hobbs13-Feb-12 19:22
Sam Hobbs13-Feb-12 19:22 
QuestionHow to marshal following native C++ objects to C++/CLI? Pin
Alok Jadhav3-Jan-12 19:55
Alok Jadhav3-Jan-12 19:55 
QuestionHow to define the Image in Headerfile like this? VC++2010 Pin
Paramu197330-Dec-11 23:28
Paramu197330-Dec-11 23:28 
AnswerRe: How to define the Image in Headerfile like this? VC++2010 Pin
Richard MacCutchan31-Dec-11 1:26
mveRichard MacCutchan31-Dec-11 1:26 
GeneralRe: How to define the Image in Headerfile like this? VC++2010 Pin
Paramu197331-Dec-11 1:57
Paramu197331-Dec-11 1:57 
QuestionHow do I create a text box with formatted text? Pin
PapaGeek30-Dec-11 7:58
PapaGeek30-Dec-11 7:58 
AnswerRe: How do I create a text box with formatted text? Pin
Luc Pattyn30-Dec-11 9:36
sitebuilderLuc Pattyn30-Dec-11 9:36 
GeneralRe: How do I create a text box with formatted text? Pin
PapaGeek30-Dec-11 9:58
PapaGeek30-Dec-11 9:58 
AnswerRe: How do I create a text box with formatted text? Pin
Luc Pattyn30-Dec-11 10:38
sitebuilderLuc Pattyn30-Dec-11 10:38 
AnswerRe: How do I create a text box with formatted text? Pin
Sam Hobbs13-Feb-12 19:32
Sam Hobbs13-Feb-12 19:32 
QuestionHow to have the Modules like VB.Net to use Public variables & Functions in VC++2010? Pin
Paramu197328-Dec-11 21:06
Paramu197328-Dec-11 21:06 
AnswerRe: How to have the Modules like VB.Net to use Public variables & Functions in VC++2010? Pin
Richard MacCutchan28-Dec-11 21:42
mveRichard MacCutchan28-Dec-11 21:42 
GeneralRe: How to have the Modules like VB.Net to use Public variables & Functions in VC++2010? Pin
Paramu197328-Dec-11 22:40
Paramu197328-Dec-11 22:40 
QuestionHow to have a Excel Cell Value vc++2010? Pin
Paramu197325-Dec-11 4:55
Paramu197325-Dec-11 4:55 
AnswerRe: How to have a Excel Cell Value vc++2010? Pin
Paramu197325-Dec-11 20:32
Paramu197325-Dec-11 20:32 

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.