Click here to Skip to main content
15,881,172 members
Home / Discussions / C#
   

C#

 
GeneralRe: Shut down explorer programmatically Pin
Dave Kreskowiak13-Apr-05 8:49
mveDave Kreskowiak13-Apr-05 8:49 
GeneralWeird Shelling Issue inside and out of IDE Pin
CyberTech13-Apr-05 7:34
CyberTech13-Apr-05 7:34 
GeneralRe: Weird Shelling Issue inside and out of IDE Pin
Dave Kreskowiak13-Apr-05 7:52
mveDave Kreskowiak13-Apr-05 7:52 
GeneralRe: Weird Shelling Issue inside and out of IDE Pin
CyberTech13-Apr-05 8:00
CyberTech13-Apr-05 8:00 
GeneralRe: Weird Shelling Issue inside and out of IDE Pin
Dave Kreskowiak13-Apr-05 8:40
mveDave Kreskowiak13-Apr-05 8:40 
GeneralRe: Weird Shelling Issue inside and out of IDE Pin
CyberTech13-Apr-05 8:46
CyberTech13-Apr-05 8:46 
GeneralRe: Weird Shelling Issue inside and out of IDE Pin
Dave Kreskowiak13-Apr-05 9:13
mveDave Kreskowiak13-Apr-05 9:13 
GeneralC# WinForm - HTML Browser Pin
AnneThorne13-Apr-05 6:49
AnneThorne13-Apr-05 6:49 
Hi,

I am using Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl() to open a specific url in an html browser. The documentation gives me an example that does work; however, I want to modify it so that the url is automatically displayed when the winform is rendered.

Here is what works (NOTE: The ... indicates code that I have not shown here, for brevity's sake):


<br />
...<br />
#region Windows Form Designer generated code<br />
...<br />
private void InitializeComponent()<br />
{<br />
...<br />
    this.textBox1.Text = "http://www.google.com";<br />
...<br />
}<br />
...<br />
<br />
[STAThread]<br />
static void Main() <br />
{<br />
	Application.Run(new Form1());<br />
}<br />
<br />
private void textBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)<br />
{<br />
if( ( ( int )e.KeyChar ) == 13 )<br />
	{<br />
		LoadDocument( textBox1.Text );<br />
	}<br />
}<br />
<br />
private void LoadDocument( string path )<br />
{<br />
	if( path == null )<br />
		throw new ArgumentNullException( "path" );<br />
<br />
	if( path.Length == 0 )<br />
		throw new ArgumentException( "path - string can not be empty" );<br />
<br />
	try<br />
	{<br />
		Uri uri = new Uri( path );<br />
		htmluiControl1.LoadHTML( uri );<br />
	}<br />
	catch( Exception )<br />
	{<br />
		ShowError();<br />
	}<br />
}<br />
...<br />


Again, what I want, is to have the url automatically loaded when the winform is rendered and eliminate the textbox and the need for the user to press the enter key.

Thank you in advance for any help you can give me.
Anne
GeneralRe: C# WinForm - HTML Browser Pin
Dave Kreskowiak13-Apr-05 7:48
mveDave Kreskowiak13-Apr-05 7:48 
GeneralRe: C# WinForm - HTML Browser Pin
AnneThorne13-Apr-05 7:50
AnneThorne13-Apr-05 7:50 
GeneralC# DataRelation Pin
elapid13-Apr-05 6:45
elapid13-Apr-05 6:45 
GeneralRe: C# DataRelation Pin
turbochimp13-Apr-05 6:54
turbochimp13-Apr-05 6:54 
GeneralC# &amp; Crystal Reports Pin
JRGuerrero13-Apr-05 5:50
JRGuerrero13-Apr-05 5:50 
GeneralOutput Type of Class library can not be started directly Pin
LiamD13-Apr-05 5:49
LiamD13-Apr-05 5:49 
GeneralRe: Output Type of Class library can not be started directly Pin
turbochimp13-Apr-05 6:49
turbochimp13-Apr-05 6:49 
GeneralRe: Output Type of Class library can not be started directly Pin
LiamD13-Apr-05 23:58
LiamD13-Apr-05 23:58 
GeneralRe: Output Type of Class library can not be started directly Pin
turbochimp14-Apr-05 2:34
turbochimp14-Apr-05 2:34 
GeneralPopmenu Pin
cishi_us13-Apr-05 5:39
cishi_us13-Apr-05 5:39 
GeneralRe: Popmenu Pin
Ashok Dhamija13-Apr-05 21:38
Ashok Dhamija13-Apr-05 21:38 
GeneralMultifile Assembly Hellllllp Pin
abohassan13-Apr-05 5:33
abohassan13-Apr-05 5:33 
GeneralRe: Multifile Assembly Hellllllp Pin
turbochimp13-Apr-05 5:45
turbochimp13-Apr-05 5:45 
GeneralProcess tree CPU Usage (WMI) Pin
Strangely13-Apr-05 4:40
Strangely13-Apr-05 4:40 
GeneralRe: Process tree CPU Usage (WMI) Pin
Strangely13-Apr-05 10:38
Strangely13-Apr-05 10:38 
GeneralRe: Process tree CPU Usage (WMI) Pin
leppie13-Apr-05 19:08
leppie13-Apr-05 19:08 
GeneralSimple DB2 question Pin
trk_wakil13-Apr-05 4:16
trk_wakil13-Apr-05 4:16 

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.