Tag Archives: Winform

Using MySQL with C# (I): MySQL Installation

MySQL is a free database and can be easily used in your .Net Applications. This quick-start goes through the typical process that involves installation, up and running your “Hello MySQL” application.

If you are not interested in the MySQL installation, skip this and go directly to the below topics:

Using MySQL with C# (II): Creating a DB for programming
Using MySQL with C# (III): Coding in C#

  • Download MySQL server here or if you already had an oracle account, go directly here.
  • Accept the license, and select the product/platform to download, click “Go”
  • Download the installer

image  image

  • Unzip and run the installer, follow the instructions.
  • Select the options, in my case, I choose “Full”

Read the rest of this entry »

1 Comment

Posted by on July 13, 2015 in Dotnet/C#, Programming


Tags: , , , , , , ,

Embedding web browsers in Winform applications

Winform ships with a built-in WebBrowser control where you can use it to embed a web browser in a Winform Application. It is relatively trivial to implement it:

  • In Visual Studio Toolbox, Search “Web Browser”, and you will find the WebBrowser control


  • Drag it to the winform designer
  • In Form Load event handler, add below code:


  • Now if you run the application, a browser is embedded into your winform application:



There are several problems using this approach:

  • This browser control is based on IE browser, which has many limitations that IE has. 
  • It is not easy to implement the zoom-fit or Zoom-content features to make sure the web page is all visible in this embedded browser

Read the rest of this entry »


Posted by on July 4, 2015 in Dotnet/C#, Programming


Tags: , , , , , , , , , , , , ,

Rhino C# Development (V) : Create and dock Rhino Panels side-by-side

In my previous blog Rhino C# Development (III) : Add Winform UI to Rhino, I demonstrated how to create a dock bar with Winform User controls in Rhino3D.

In this blog I am to demonstrate how to use a similar approach to create Rhino panels, and then dock the panels side-by-side. Rhino panels, are tabbed containers where collection of controls can be hosted, as shown below.


To create such a panel, in Visual Studio, add a user control in the plugin project. If you don’t know how to create such a plugin project, refer to my previous blogs for details.

In this example, a UserControl called GeometryPanel is inserted into the project, and a few simple winform controls are added for illustrative purposes. Add a Guid attribute to the UserControl, as shown below.

public class MyPanelCommand : Command
    public MyPanelCommand()
        Instance = this;

Read the rest of this entry »

1 Comment

Posted by on June 12, 2014 in CAD, Dotnet/C#, General


Tags: , , , , , , , , , ,

Rhino C# Development (III) : Add Winform UI to Rhino

Rhino C# Development (I) : Get Visual Studio Wizard ready
Rhino C# Development (II) : HelloRhino

Now that we are able to talk with Rhino, let’s add our own UI to Rhino. In Rhino 5 with RhinoCommon SDK and Rhino_DotNet, you can easily add .net Winform User Control to Rhino.


Read the rest of this entry »


Posted by on May 9, 2013 in CAD, Dotnet/C#, Programming


Tags: , , , , , , ,

2012 in review

The stats helper monkeys prepared a 2012 annual report for this blog.

Here’s an excerpt:

19,000 people fit into the new Barclays Center to see Jay-Z perform. This blog was viewed about 69,000 times in 2012. If it were a concert at the Barclays Center, it would take about 4 sold-out performances for that many people to see it.

Click here to see the complete report.

Leave a comment

Posted by on January 9, 2013 in General


Tags: , , , , , , , , , , , , , , , , , ,