Re: Smart Client (WinForm) does not render in Browser (IE)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Norman,

Thanks for the response. Perhaps I am confused as to what I can and can't
do in a browser as a "smart client". In the example, the writer claims to be
able to place a DateTimePicker control on a webpage, which is what I am
attempting to do.

http://www.codeguru.com/columns/VB/article.php/c7463/

What are examples/differences between a win form and a win form control and
what allows one to be placed into a web page over the other?

Chris

"Norman Yuan" wrote:

> 1. I think what you are taiking is not Smart Client.
> 2. You can embed Win Form CONTROL (or derived/customized CONTROL) in web
> page (suppose the client computer has .NET framework installed), but NOT a
> Win Form (or derived Form).
>
> "Chris Fink" <ChrisFink@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:4BF0DD82-CFB1-4049-A7D5-33C5C409CF20@xxxxxxxxxxxxxxxx
> > The following code is intended to display a winform (DateTimePicker
> Control)
> > in a browser. But, when the aspx page that contains the reference to the
> > winform in the object tag is run, all that is displayed is a blank
> > placeholder and not the control. Any ideas or help is appreciated!
> >
> > DateTimePicker.cs WinForm control code - output type class library
> > ===========================================
> > using System;
> > using System.Drawing;
> > using System.Collections;
> > using System.ComponentModel;
> > using System.Windows.Forms;
> >
> > namespace Windows.Control.Library
> > {
> > /// <summary>
> > /// Summary description for DateTimePicker.
> > /// </summary>
> > public class DateTimePicker : System.Windows.Forms.Form
> > {
> > private System.Windows.Forms.DateTimePicker dateTimePicker1;
> > /// <summary>
> > /// Required designer variable.
> > /// </summary>
> > private System.ComponentModel.Container components = null;
> >
> > public DateTimePicker()
> > {
> > //
> > // Required for Windows Form Designer support
> > //
> > InitializeComponent();
> >
> > //
> > // TODO: Add any constructor code after InitializeComponent call
> > //
> > }
> >
> > /// <summary>
> > /// Clean up any resources being used.
> > /// </summary>
> > protected override void Dispose( bool disposing )
> > {
> > if( disposing )
> > {
> > if(components != null)
> > {
> > components.Dispose();
> > }
> > }
> > base.Dispose( disposing );
> > }
> >
> > #region Windows Form Designer generated code
> > /// <summary>
> > /// Required method for Designer support - do not modify
> > /// the contents of this method with the code editor.
> > /// </summary>
> > private void InitializeComponent()
> > {
> > this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
> > this.SuspendLayout();
> > //
> > // dateTimePicker1
> > //
> > this.dateTimePicker1.Location = new System.Drawing.Point(40, 40);
> > this.dateTimePicker1.Name = "dateTimePicker1";
> > this.dateTimePicker1.TabIndex = 0;
> > //
> > // DateTimePicker
> > //
> > this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
> > this.ClientSize = new System.Drawing.Size(292, 266);
> > this.Controls.Add(this.dateTimePicker1);
> > this.Name = "DateTimePicker";
> > this.Text = "DateTimePicker";
> > this.ResumeLayout(false);
> >
> > }
> > #endregion
> >
> > /// <summary>
> > /// The main entry point for the application.
> > /// </summary>
> > [STAThread]
> > static void Main()
> > {
> > Application.Run(new DateTimePicker());
> > }
> >
> > }
> > }
> >
> >
> >
> > ASPX PAGE CODE
> > ======================
> > <%@ Page language="c#" Codebehind="UseWinControl.aspx.cs"
> > AutoEventWireup="false" Inherits="web.playground.UseWinControl" %>
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
> >
> > <html>
> > <head>
> > <title>UseWinControl</title>
> > <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
> > <meta name="CODE_LANGUAGE" Content="C#">
> > <meta name=vs_defaultClientScript content="JavaScript">
> > <meta name=vs_targetSchema
> > content="http://schemas.microsoft.com/intellisense/ie5";>
> > </head>
> > <body MS_POSITIONING="GridLayout">
> >
> > <form id="Form1" method="post" runat="server">
> >
> > <OBJECT id=WinControl2
> >
> classid=http:Windows.Control.Library.dll#Windows.Control.Library.DateTimePic
> ker
> > height=500 width=200
> > VIEWASTEXT></OBJECT>
> >
> > </form>
> >
> > </body>
> > </html>
> >
>
>
>
.



Relevant Pages

  • Re: Access 2010 Web Form - tab order
    ... and the fact that we have control layouts to move controls together as a group are actually two distinct issues. ... I think for existing applications and most things I have, I do prefer simple design mode, but some of these new features can really help and terms of productivity. ... They could've perhaps built something that took an existing access form and then had some some type of special ActiveX or client program you install on your browser that renders that form. ... Keep in mind if the form you specify in the browse two command does not have to be part of the current navigation control set. ...
    (comp.databases.ms-access)
  • Re: Access 2010 Web Form - tab order
    ... You can use the goto control command in the after update event to modify what control will be next for those cases where you want to change this. ... That system means if you resize a column, then the Headings, the footings, and detail sections all automatically resize and move for you all at the same time. ... you never get to use + view them in a browser. ... The problem here is if you execute an open form command inside of a browser, it would launch a whole new browser session and separate form. ...
    (comp.databases.ms-access)
  • Re: The MSComm Error 8021 with desc.: "Application-defined or object-defined error"
    ... Since you appear not to be positive that the comm control is causing the ... The browser was unable to retrieve a list of servers from the ... simultaneously to two or more subnets using multiple network cards). ... After you have determined the failed protocol endpoint, ...
    (microsoft.public.vb.enterprise)
  • Re: The MSComm Error 8021 with desc.: "Application-defined or object-defined error"
    ... Since you appear not to be positive that the comm control is causing the ... The browser was unable to retrieve a list of servers from the ... simultaneously to two or more subnets using multiple network cards). ... After you have determined the failed protocol endpoint, ...
    (microsoft.public.vb.general.discussion)
  • Re: The MSComm Error 8021 with desc.: "Application-defined or object-defined error"
    ... Since you appear not to be positive that the comm control is causing the ... The browser was unable to retrieve a list of servers from the ... simultaneously to two or more subnets using multiple network cards). ... After you have determined the failed protocol endpoint, ...
    (microsoft.public.vb.winapi)