100 likes | 193 Views
Chalermvong Vijitpiyakul Microsoft MVP - Client App. Dev. GF VT10 Mixed Client and WEB Application. GF VT10 @ 28 Sep 2008. Agenda. 1. Client App. with Web Capabilities 2. Web App. with Client Capabilities. 1.Client App. with Web Capabilities. Skills ? HTML, DHTML, HTML DOM, Java Script
E N D
ChalermvongVijitpiyakulMicrosoft MVP - Client App. Dev. GF VT10Mixed Client and WEB Application GF VT10 @ 28 Sep 2008
Agenda • 1. Client App. with Web Capabilities • 2. Web App. with Client Capabilities
1.Client App. with Web Capabilities • Skills ? • HTML, DHTML, HTML DOM, Java Script • VB or C#, (.netfx 2.0) • Control • Web Browser Control
On Client App. • 1 using System.Runtime.InteropServices; • 2 [ComVisible(true)] • public partial class Form1 : Form • 3 webBrowser1.ObjectForScripting = this; • 4public void Method(string val) • { • MessageBox.Show(val); • }
On HTML • Id (required) • Event (important) • java script (need)<imgid="img1" border="0" onClick="window.external.ClickFromWeb('hello')” src="img.jpg" />
2. Web App. with Client Capabilities • Skills ? • User Control (Windows) • VB, C# • HTML <object> • Web Services (Optional)
On Web Page • Just Create Web Page. • Insert HTML tag <object>
Windows Control • Create Windows Form Control Library Project • Design UI, Controls • Do Coding. • Add Web Reference (Opt.)
Web Services (Opt.) • Just Create Web Services • Create Web Method
Summary • Client App. with Web Capabilities • Web App. with Client Capabilities