Click here to Skip to main content
15,885,366 members
Articles / Programming Languages / XML

Deploy .NET thick client application assemblies to a remote server

Rate me:
Please Sign up or sign in to vote.
3.20/5 (7 votes)
21 Mar 2008CPOL10 min read 56K   396   34  
This demo shows a new way of deploying .NET thick client application assemblies to a remote server.
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;

namespace WinDemoControls
{
    public class BackGround : UserControl
    {
        public BackGround()
        {
            // Nothing to do here
        }

        protected override void OnPaintBackground(PaintEventArgs e)
        {
            base.OnPaintBackground(e);

            LinearGradientBrush brush = new LinearGradientBrush(
                e.ClipRectangle, Color.DarkSlateGray, Color.DarkGray, 60);
            e.Graphics.FillRectangle(brush, e.ClipRectangle);

            e.ClipRectangle.Inflate(50, 50);
            brush = new LinearGradientBrush(
                e.ClipRectangle, Color.WhiteSmoke, Color.LightGray, 60);
            e.Graphics.DrawString(
                base.ParentForm.Text + " is working...",
                base.Font, brush, e.ClipRectangle);
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions