ScriptSpot home

Forum topic · General Scripting

display html doc

By Jos Balcaen · 2012-06-17

Description

Hello, i'm trying to display some text as html.
I was wondering if somebody knows this.
I started looking in
dotnetobject "System.Windows.Forms.HtmlWindow"
dotnetobject "System.Windows.Forms.WebBrowser"
and so.. but dont know if this will work.
Any thoughts?
code so far..


--MaxMail
rollout roll_maxmail "Jos MaxMail"
(
	edittext edtTo "To"
	edittext edtSubject "Subject"
	dotNetControl TextMailControl "System.Windows.Forms.TextBox" height:100
	on roll_maxmail open do
	(
	TextMailControl.AcceptsReturn = true;
	TextMailControl.AcceptsTab = true;
	TextMailControl.WordWrap = false;
	TextMailControl.Multiline = true;
	TextMailControl.ScrollBars = TextMailControl.ScrollBars.both;
	)

	on TextMailControl keydown pressedKey do 
	(
		if (pressedKey.keyvalue == 13) do TextMailControl.paste("\r\n");
		
	)
)
createDialog roll_maxmail 300 165 style:#(#style_toolwindow,#style_sysmenu)

I want the let the user make text bold, colors and so on..

Comments (3)
Reply to Branko Živković
Jos Balcaen

super, that should help me alot! thank you very much. It's for writing a mail. I'll look into it!

Jos Balcaen

found it, sorry for bothering!
works perfect with

dotnetobject "System.Windows.Forms.WebBrowser"