Shared info of IoT & Cloud, Banking, Angular Wicket, Spring Microservices, BigData, flutter, E-comm, Java Telecomm and More

Showing posts with label .NET. Show all posts
Showing posts with label .NET. Show all posts

Tuesday, February 8, 2011

GDI+ Application

This article discusses vital concepts, including the life cycle of a graphics application. After reading this article, you should understand the basics of the GDI+ coordinate system, basic graphics structures used by GDI+, drawing surfaces, and how to write a graphics application using GDI+.

To write a graphics application, a good understanding of drawing surfaces and coordinates system is necessary. We will begin by discussing these concepts and how they are represented in GDI+. Then you'll learn step-by-step how to write a graphics application in the .NET Framework using GDI+. We will cover the following topics:
  • How to add a reference to the GDI+ library
  • How to get a drawing surface in the program
  • How to create pens and brushes
  • How to use pens and brushes to draw graphics objects

Using Transformations in c#

All of the discussion and examples so far have been drawn in C#’s native drawing units: pixels. By default, all of the Graphics object’s filling and drawing methods work in pixels.

However, pixels may not always be the most convenient unit for you. For example, suppose you want to draw a simple bar chart showing sales figures between $1M and $30M for the years 1990 through 2000. Since you can’t use pixel coordinates as large as (1995,1,000,000), you’ll need to perform some mathematical calculations to map these big values into something that will fit on your screen.
While you can perform those calculations yourself if you like, the Graphics object provides transformation methods that can do this for you. The main transformation methods are TranslateTransformScaleTransform, and RotateTransform, which translate, scale, and rotate subsequent graphics, respectively.

Saturday, January 22, 2011

The TreeView Control in C# .NET

Build your own C# Custom Web Browser
To end this section on Events, we'll show you how to build your own custom browser in C# .NET. We'll only use three control: a SplitContainer, A TreeView and, of course, a WebBrowser control. It's surprisingly easy!
Start a new project for this. Select your form and make it nice and big. Expand the Toolbox and locate the SplitContainer. A SplitContainer allows you to have one control in one half and another control in the other half. We'll put the TreeView control on the left, and the browser on the right. But the SplitContainer looks like this:

Double click to add a SplitContainer to your form. By default, it will fill the whole form, and anchor itself to the top left corner. To change this, locate the Anchor property of the SplitContainer. Click the down arrow to see the following:

Thursday, November 4, 2010

Components và Controls trong c#

A control is a reusable class that derives from the System.Windows.Forms.Control base implementation (either directly or indirectly) and whose main purpose in life is to interact with users on behalf of a container, which can be either a form or a container control.1 [1] A control's user interaction takes two forms: acceptance of user input via mice and keyboards, and presentation of processing results and state as UI output. 
Components, it is possible to create specialized classes, known as components, which can be hosted on a form's nonvisual design surface.

Wednesday, November 3, 2010

NET Reflector 7 Beta 1

http://reflector.red-gate.com/download.aspx?TreatAsUpdate=1
http://reflectoraddins.codeplex.com/

decompiler to convert .exe file to c# source code.

Popular Posts

Blog Archive