Quantcast
Channel: Dotnet/C# – Xinyustudio
Browsing latest articles
Browse All 204 View Live

Image may be NSFW.
Clik here to view.

Rhino C# Development (IV) :Using new RhinoCommon API to develop Rhino3D .net...

Rhino3D has changed its .net plugin development implementation. Although you can still use the Rhino.NET SDK to create Rhino plug-ins with the same capabilities as Rhino C++ SDK developers, however,...

View Article


Image may be NSFW.
Clik here to view.

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...

View Article


Image may be NSFW.
Clik here to view.

Google Book Search in C#: A step by step walk-through tutorial

Several years earlier, I wrote a python script to perform ISBN book search: given the isbn number, the python script simply dumps the books title, publisher and author information, which are then used...

View Article

Image may be NSFW.
Clik here to view.

Google Search in C#: A step by step walk-through tutorial

In previous post, the implementation of Google book search in C# is discussed. In this post, the similar approach is used to implement Google Custom Search in C#. Download the source project at Github...

View Article

Image may be NSFW.
Clik here to view.

Using Hoops in C# (I) : HelloHoops

Hoops is a good 3D Visualization toolkit with OOP model enabled. In this tutorial, Hoops will be used in combination of .net. C# language will be used to demostrate the typical usage. Createa a new...

View Article


Image may be NSFW.
Clik here to view.

Sequence Diagram of Visual Studio 2010

Just found a new useful feature of VisualStudio 2010, to generate the sequence diagram for a particular function. Right click a function, select “Generate Sequence Diagram” in the popup menu: VS will...

View Article

UGNX .net API: How to get the parameter range of a curve?

static public void GetCurveParamRange(Tag CurveTag, out double MinPara, out double MaxPara) { UFSession gUfSession = UFSession.GetUFSession(); IntPtr evaluator; double[] pararm_range = new double[2];...

View Article

Image may be NSFW.
Clik here to view.

Message: Unable to load DLL ‘libpart’: The specified procedure could not be...

In a recent project, I was required to develop a .Net assembly DLL and use it together with COMSOL with Matlab, where Matlab serves as the hub, and the .Net Assembly provides some services, Matlab...

View Article


Microsoft LightSwitch standalone download Link (ISO)

http://go.microsoft.com/fwlink/?LinkId=201345

View Article


WCF Learning Note (I)

How to: Define a Windows Communication Foundation Service Contract using System; // Step 5: Add the using statement for the System.ServiceModel namespace using System.ServiceModel; namespace...

View Article

Image may be NSFW.
Clik here to view.

Intel AppUp .Net SDK

The Intel AppUpSM developer program: Provides developers with everything they need to create and then sell their applications to users of millions of Intel Atom-based devices. Gives developers, OEMs,...

View Article

WebMatrix: A cool tool for lightweight asp.net web design

Your First Website Using WebMatrix Create an ASP.NET Website from Scratch Create a website from a WebMatrix site template Add and edit ASP.NET web pages Create an open-source wiki website from the Web...

View Article

Image may be NSFW.
Clik here to view.

Serialize & Deserialize derived class insances in generic List: Problems &...

There have been numerous discussions on serialize & deserialize derived class insances to and from generic List<T> and XML files. The problem is when you declare the collection as...

View Article


Image may be NSFW.
Clik here to view.

WinForm:Using Numerical Recipe in C#

In my previous post, I have presented how to use the code of Numerical Recipes in MFC/C++. In this post, the use of it in C# is discussed. The most straightforward way is to use some wrapper class,...

View Article

Image may be NSFW.
Clik here to view.

Using /clr and incompatibility troubleshooting in MFC applications

In some circumstances, to use C# Winform or other .Net objects in MFC applications, the “/clr” directive should be used in the MFC project settings. However, it is found not always possible to use...

View Article


Image may be NSFW.
Clik here to view.

unresolved external symbol _clReleaseContext@4

When tesging an OpenCL program in 64bit windows, Visual Studio 2010, building the program generates below error: error LNK2019: unresolved external symbol _clReleaseContext@4 referenced in function...

View Article

Image may be NSFW.
Clik here to view.

WPF: Difference of Visibility.Collapsed and Visibility.Hidden

In a recent trial to rename a TreeViewItem in WPF, I added a TextBlock as well as a Hidden TextBox in the Header, so that when in a “rename”, I will toggle of the TextBlock and TextBox’s visibility and...

View Article


Image may be NSFW.
Clik here to view.

Expression Blend 4: cannot see/switch to design view

If you are using Visual Studio 2012 to create a WPF application, and open it in Micosoft Blend 4, it is likely that you can only see the XAML file, but cannot switch to design view. To solve this, in...

View Article

Image may be NSFW.
Clik here to view.

C#: How to get installed Matlab paths and versions

In a recent project, I need get the installed Matlab’s executable path and their versions, and I know that users might not install Matlab in default “C:\Program files\MathWorks\…”. The first solution...

View Article

Image may be NSFW.
Clik here to view.

How to use WPF AvalonWizard control (I)

The AvalonWizard control is a handy WPF wizard control. To use it in your project, follow below procedures: 1. In your project, add a reference to the AvalonWizard assembly. You can right click the...

View Article

Image may be NSFW.
Clik here to view.

How to use WPF AvalonWizard control (II): Adding event handlers

In my previous post, we have discussed on how to get started with AvalonWizard. Yes, we need do sth else to make it work for our project. In this post, I will demonstrate how to add some logic to...

View Article


Multi-cursor of Sublime Text Editor, Box Selection, Multi-Line Editing with...

The sublime text editor has a feature called multi-cursor, and it is good to know VS 2010 also has a “Box selection” feature. Hope this is useful to programmers~

View Article


Image may be NSFW.
Clik here to view.

Remove unused languages/cultures from WPF/silverlight applications

If you ever used Microsoft Blend to open your WPF applications, you will find that in the output folder there are some satellite dlls in the form of fr, de, zh etc. To remove these unused languages...

View Article

Image may be NSFW.
Clik here to view.

Visual Studio 2010, 2012 Very slow and the solution

I have installed VisualStudio 2010 for quite some time but suddenly it becomes very, very slow, and opening a project with dozens of files will take over 3-4 minutes, but it used to work very fast, on...

View Article

Image may be NSFW.
Clik here to view.

WPF Tooltip control: Tips & Tricks

1. How to add multi-line tooltip?For button control, you can wrap the tooltip string in a TextBlock element, and then use either <LineBreak/> or &#x0a in the tooltip string.     If you set...

View Article


Image may be NSFW.
Clik here to view.

Create Solidworks addin in Visual Studio 2012

Up to now, Solidworks had released its 2013 sp2.0 version, and its API is updated to v21.2.0.50, but once you installed the API, you will not see the addin wizard appear in Visual Studio 2012. One...

View Article

Image may be NSFW.
Clik here to view.

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

1. Go to http://www.rhino3d.com/new/dev to download the SDK. Unzip the file, and you will see 4 files: 2. Unzip the file “Rhino4DotNetWizards.zip”, and you will see two files Double click on the...

View Article

Image may be NSFW.
Clik here to view.

Rhino C# Development (II) : HelloRhino

If you have not got Rhino Visual Studio working, see this post to get it done. 1. In Visual Studio, create a new project, in the opened dialog, type “rhino” in the upper right filter field: 2. Click Ok...

View Article

Image may be NSFW.
Clik here to view.

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...

View Article



Image may be NSFW.
Clik here to view.

Visual Studio 2012 update: offline / standalone download

1. Go to this Link, to get the latest update. 2. Download the latest update, following the link above. Note: do not install, simply download it. 3. Once the package is downloaded, an iso file will be...

View Article

Image may be NSFW.
Clik here to view.

C#: programmatically get and set non-unicode languages for windows OS

We know that we can use English version of Windows and at the same time to display non-unicode texts such as Chinese and Japanese etc. The procedures are as follows: Control Panel > Region >...

View Article

Image may be NSFW.
Clik here to view.

C# Command Line Parser Library Example

Command Line Parser Library allows CLR applications to define a syntax for parsing command line arguments. It is very easy to incorporate this library into your C# project. To install Command Line...

View Article

Image may be NSFW.
Clik here to view.

Get the boundary of a mesh: the algorithm and C# implementation

Given a mesh, we might occasionally want to filter those internal vertices and keeps only the outline or silhouettes. But how to do that? The problem came to my mind several years ago, when the...

View Article


Text morphing: Rectangle to text

View Article

Image may be NSFW.
Clik here to view.

Visual Studio 2013 Ultimate ISO download and offline installation:...

Visual Studio 2013 was released, with quite a few exciting features. If you wish to get the offline iso installer, click below links (official iso from Microsoft) to download. However, even if you...

View Article

Image may be NSFW.
Clik here to view.

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...

View Article


Image may be NSFW.
Clik here to view.

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....

View Article


Image may be NSFW.
Clik here to view.

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

You might be interested in how to install MySQL in windows, check up this link for details. Run MySQL workbench after clicking Finish   In the MySQL workbench, copy below scripts to create a new...

View Article

Image may be NSFW.
Clik here to view.

Using MySQL with C# (III): Coding in C#

Install the nuget package: in the nuget management console, type below line and run Install-Package MySql.Data Let’s create a class SqlUtils, and in the static constructor, type below code:...

View Article

Image may be NSFW.
Clik here to view.

Using Redis with C# (I): Installation of Redis

Download Redis binaries from http://ruilopes.com/redis-setup/  Run the installer, follow the instructions   You might wish to get the latest windows installer for Redis here as well. Run redis-service...

View Article

Image may be NSFW.
Clik here to view.

Using Redis with C# (II): Coding

Now that you have installed Redis on your system, let’s jump to the actual coding using C#. If you wish to get the detailed procedures to install Redis, click here. Create a winform project in Visual...

View Article


Visual Studio 2015 RTM ISO/offline download links: official links

Visual Studio Enterprise 2015 (x86 and x64) – DVD (English)SHA1:07C949078F895CE0D9C03A1B8D55571A8C90AC94 Visual Studio Professional 2015 (x86 and x64) – DVD...

View Article

Image may be NSFW.
Clik here to view.

C# Websocket programming: the simplest example

Create a winform Application: Download the Websocket-Sharp from Nuget: PM> Install-Package WebSocketSharp -Pre Add below code:         private WebSocket client;        const string host =...

View Article


Image may be NSFW.
Clik here to view.

Using RabbitMQ in C# (I) Installation of RabbitMQ

Go to https://www.rabbitmq.com/ and click the download link:     Select the server software on the desired platform and download the setup package. In this example, I will use windows installer. Run...

View Article

Image may be NSFW.
Clik here to view.

Using RabbitMQ in C# (II) Sending message to RabbitMQ

Create a Winform application, add below UI to the form: Add RabbitMQ .net client library in Visual Studio by using Nuget: to install RabbitMQ.Client, run the following command in the Package Manager...

View Article


Using RabbitMQ in C# (III) Consuming messages from RabbitMQ

It can be found that In earlier posts, setup RabbitMQ and sending messages are a piece of cake using RabbitMQ C# client. Let’s take a further step and see how to consume messages from RabbitMQ. Create...

View Article

Image may be NSFW.
Clik here to view.

Using SmartFox with C# (I) : Installations and 1st handshaking

Despite that SmartFox has offered a Unity3D package for easy access SmartFox functionalities for game developers, however it is not very straightforward to directly get to know how to consume SmartFox...

View Article

Image may be NSFW.
Clik here to view.

Using SmartFox with C# (II) : Login and join room

The next step after connection with SmartFox server might be login to SmartFox.  If you wish to know how to connect to SmartFox server, refer to this post. Try below code to login to SmartFox: using...

View Article

Using SmartFox with C# (III) : Frequently used functions

If you haven’t read below posts, you might wish to have a quick go through: Using SmartFox with C# (I) : Installations and 1st handshakingUsing SmartFox with C# (II) : Login and join room If you are...

View Article


Image may be NSFW.
Clik here to view.

Bing Search in C#: A step by step walk-through tutorial

This blog is the 3rd article of the series Search in C# example demonstration. If you are interested in my earlier blogs in this series, please refer to below blogs: Google Search in C#: A step by step...

View Article

Browsing latest articles
Browse All 204 View Live