C# Corner

Resources  
  • Using Transforms with GDI+ in C#Mar 15, 2001. Transforms are matrices that allow you to rotate and translate your graphics shapes. In this example we are going to rotate a very powerful element in C# called the GraphicsPath.
  • Rotation SampleApr 24, 2001. After reading Mike Golds article on transforms I thought I would get things moving a bit!
  • ShapedForms in C#Jul 13, 2001. Today Windows always appear with a rectangular shape. What if you could have a window that was shaped like a circle, a square or a triangle or any shape you want.
  • Tic Tac ToeJul 16, 2001. TicTacToe is a demonstration of the AI game playing minimax algorithm. The game plays out every possible combination of moves from each position and consequently is unbeatable. This example uses .NET Beta 2 and was written using a text editor.
  • Eater Game in C#Jul 31, 2001. This is a simple game written in C# in which the user moves a packman like player around the form and gobbles up red dots. The object is to get all the dots in as quick a time as you can.
  • Move Grid PuzzleAug 15, 2001. This is a console based application the user will be prompted for move such as L-Left, R-Right, U-Up, D-Down, E-Exit.
  • Mouse and Key EventsSep 11, 2001. This article explains the usage of key and mouse events. The following code shows you how you can read mouse position on mouse move.
  • CartWheel Man - Animating GraphicPathsNov 27, 2001. This simple application illustrates how GraphicsPaths can be animated to look like something is moving across the screen.
  • Interactive Shaped FormsNov 29, 2001. This Demo show how to create shaped form and customized buttons using Region, GraphicsPath and picture control and using picture control to play animate pictures.
  • An Animation Component using C#Feb 08, 2002. Sometimes its desirable to get those graphics moving a bit and this article show the control to implement it.
  • Saving and Restoring Location, Size, and Window State of a FormMar 01, 2002. This article presents a simple C# class that may be added to a form to automatically do this. When I designed this class I wanted to be able to add it to a form using the least amount of code and also be able to add it to a form from the toolbox.
  • A Shaped Windows Forms Application with Variable OpacityMar 11, 2002. This application demonstrates two simple techniques that beginners might find useful in developing creative new looks for Windows applications.
  • Drawing rubber-band lines and shapesMar 12, 2002. I would like to show how we can draw rubber-band lines and shapes in GDI+ with just a few lines of code.
  • Drawing Transparent Images and Shapes using Alpha BlendingApr 22, 2002. Alpha blending is a process of mixing colors and generating a transparent affect. To test this, you draw some graphics shapes on a surface and draw image on top of those shapes and you should be able to see the shapes.
  • Redhotqlue C# ArrayObjectJun 20, 2002. Unlike Visual Basic the C# language does not provide a standard mechanism for re-dimensioning (resizing) arrays. This component provides that additional functionality for arrays created in C#.
  • Eater Game II - The Stone MazeOct 02, 2002. This program combines the designs of the Eater Game and the Maze Generation Program to create a more challenging game, Eater Game II. In this game, you move a pacman-like character through a maze and eat as many stones as you can before time runs out. You have a minute and a half to try to eat stones before the pac-man simply freezes-up and accepts his quota of stones.
  • Drawing Shapes using ThreadingOct 25, 2002. This is simple multi-threading program that draws circles and rectangles. Each shape is handle by individual thread that created every time you press start button. Using sleep method on each thread we can change the speed of each shape.
  • Implementing Prim's Algorithm using GDI+Dec 31, 2002. Prim's algorithm is an algorithm used in the graphics development to calculate the shortest route in a network when an object is moving from a source node to the destination node.
  • Creating Extensible and Flexible Hosted Applications: Part 1Apr 02, 2003. Moving from procedural programming languages such as ASP and Visual Basic to .NET object-oriented languages enables programmers to build systems that are highly extensible and flexible.
  • BuckyBalls: An Animated DirectX9 DemonstrationJun 02, 2003. BuckyBalls is an animated Managed DirectX demonstration. A buckyball, or fullerene, is a complex carbon molecule whose full name is buckminsterfullerene. The molecule contains 60 carbon atoms which form what is called a truncated icosahedron. It is shaped like a soccer ball or a geodesic dome, and is named after Buckminster Fuller, the inventor of the geodesic dome.
  • Meet Microsoft .NETSep 30, 2003. Before writing applications in C#, understanding the .NET is very important. Usually, beginners who are moving to C# don’t care about understanding .NET? In this article, I will try to explain .NET in general and its components.
  • Enhanced XP Button ControlDec 12, 2003. The enhanced XP style button is very easy to use and it supports rectangle, circle or ellipse shape with image and different colors. This control also inherit most of the properties from the Forms.Button.
  • Image Resizing and FTPDec 24, 2003. I wanted a program to resize image and just FTP them to my site. After talking with friends, I realized they also had the same problems. So I built this simple .Net application.
  • Migrating from ASP to ASP.NETJan 05, 2004. This document covers some of the more powerful features that can simplify Web development while providing a more scalable, stable, and productive environment.
  • Image Resizing : Part IIJan 12, 2004. In my first article Image Resizing and FTP, I showed how I resize my digital camera pictures and FTP them to the web. I received a couple of requests to share the code for the image gallery on my web site that I use to view them so here it is.
  • Introduction to GDI+ Transformations Apr 01, 2004. A transformation is a process that changes graphics objects from one state to another. Rotation, scaling, reflection, translation, and shearing are some examples of transformation. Transformations can be applied not only to graphics shapes, curves, and images, but even to image colors.
  • Grid View Control V - Sizing and Tabbing in the GridViewMay 05, 2004. This article is in response to forums question how do I resize and use tabbing in GridView control.
  • Moving to ASP.NET: Part 1Aug 24, 2004. The attached white paper, Moving to ASP.NET, examines trends in the adoption of ASP.NET, and provides guidelines for selecting the migration approach that best meets specific business needs.
  • Empty ListView in C#Oct 12, 2004. Have you wondered how you could show text in ListView control if it's empty, just like Microsoft does it in Outlook Express and in some other applications? This article shows you how you can show text in ListView control in a simpler way.
  • Moving C Structures into .NET with Custom MarshalingDec 17, 2004. Microsoft provides several attributes for marshaling C to C#. In our example we will take the case where we have hundreds of structures and only a few API calls, so we only need to generate the marshaled code for the structures.
  • Sokoban Pro Game in C#Jan 21, 2005. Sokoban Pro is a modern version of the classic Sokoban puzzle game. The game rules are extremely simple, yet the game is very challenging and addictive. The rule of the game is to move all the boxes in the right places. You can only push a box, not pull.
  • Joystick ControlMay 13, 2005. In this article and the attached source code project written in C# and Windows Forms, the author shows how to build a Joystick control that allows an object to move via the joystick control.
  • Examining Organizational Workflows under the hood of .NETAug 18, 2005. In this article we will firstly we will see what organizational workflows are and how they fit into organizational hierarchy and make information move within this hierarchy.
  • M.S. Visio AutomationAug 19, 2005. This article demonstrates the flexibility of Visio products as a development platform by describing the customized business solutions.
  • ASP.NET Session StateSep 21, 2005. Session state is nothing more than memory in the shape of a dictionary or hash table, e.g. key-value pairs, which can be set and read for the duration of a user's session.
  • Migrating from Java to C# Oct 03, 2005. Microsoft has created a tool called Java Language Conversion Assistant (JLCA), which automatically converts Java code into C# for developers who want to move existing applications to the .NET Framework.
  • Working with Drawing ClassOct 27, 2005. This article gives an overview to work with drawing and printing class. It explains how to use various methods in the drawing and printing class.
  • Deploying ASP.Net 2.0 Web site to Production Server: Part IApr 03, 2006. Deploying ASP.NET 2.0 web site is the first issue facing the developer. This part of the article gives you a step by step to how to move membership tables from MS SQL express Edition to your database that you are used on your web site. The second part we will go in details to configure our asp.net web site.
  • Deploying ASP.NET 2 Web Site to Production Server: Part IIApr 10, 2006. On the first part we discussed in detail how to move our database which contains the membership tables from the default aspnetdb Database to our database. On this part we will show how to change the default settings of asp.net membership and role providers to read from tables which stored on our database.
  • Packing List for the Pocket PC in the .NET Compact FrameworkNov 10, 2006. This article demonstrates a pocket pc packing list application to help you track moving inventory. The application is written in C# for the .NET Compact Framework (1.1) and shows you how to overcome some limitations in the framework such as scrolling a form and searching nodes in XML.
  • Drawing Visio Shapes in the Visio ActiveX Control Using C# and .NETDec 05, 2006. This article will get you started in using the Visio ActiveX control that allows you to use Visio inside of a .NET Windows Form. The article will step you through a simple example of drawing shapes inside a Visio Drawing and connecting the shapes together.
  • WPF Application for Importing ESRI ShapefilesFeb 26, 2007. A standalone application for reading ESRI shapefiles and displaying them on a WPF Canvas.
  • Animating your XAML AppsApr 05, 2007. This article will describe how to do 2D Animation using XAML Scripts. In the article we will describe how to implement transforms on XAML shapes and then how to move them around in your form.
  • Drawing Graphics Shapes in XAML Apr 12, 2007. This article describes the drawing model in XAML and how to draw various objects such as line, rectangle, ellipse, and paths using XAML.
  • .NET and Active DirectoryApr 19, 2007. This article outlines connecting to AD from .Net using ADO and System.DirectoryServices and also forming a unique ID from AD, moving entries from AD to a database and forming AD queries (also date formatting for AD).
  • Introduction to XNA: The Microsoft 2D and 3D Game Development PlatformApr 20, 2007. This article introduces you to the XNA Framework that makes game development easier than it ever was before. This sample features a star trek ship which you can move around the screen and shoot at the enemy Klingon Ship. The demo comes complete with authentic sound.
  • Star Trek -Part II: Adding moving 3D Objects to your XNA GameMay 06, 2007. This article describes how to work with 3D Objects in your XNA game. In the article you will learn how to add a rotating planet to Star Trek to enhance the background. It also talks about how to add text to your game.
  • Ajax AnimationExtender ControlFeb 01, 2008. In this article we are going to discuss about AJAX AnimationExtender control. It provides good animation effect such as moving an ASP Control to a new place, resizing it, modifying its color, or making it fade in or fade out. In this article I m going to use fade in or fade out animation.
  • AJAX DragPanelExtender ControlFeb 26, 2008. AJAX DragPanel allows you to move your panel one place to another place around a Web page. This article and attached code shows how to use DragPanelEtender control in ASP.NET 2.0.
  • Save TreeView Nodes ExpansionJun 24, 2008. We frequently use an ASP.NET TreeView as a navigation menu. This works well on a single page but if you include the control on a Master Page, it looses its expansion state as you move from one content page to another.
  • Animated Banners in XAMLJul 02, 2008. This article shows how to use animation related controls in XAML to create an animated banner with animations such as gradient colors, text rotation, and resize the banner text.
  • Drawing Shapes in WPF Jul 31, 2008. This article is an introduction to graphics programming in XAML and WPF. In this article, I discuss various graphics objects including lines, rectangles, ellipses, and paths and how to draw them using XAML and WPF.
  • Area sensitive helpAug 27, 2008. This article tells you how to create a help window which appears when your mouse moves on a particular web page area.
  • Ajax rounded corners controlSep 15, 2008. There is a very good control in AJAX to make rounded type shape. We can create rounded shape in many design by using Corners property of this control.
  • Creating art using Silverlight and BlendNov 05, 2008. This article shows how you can draw attractive shapes and artistic elements using Silverlight and Blend.
  • Polygon in SilverlightDec 15, 2008. A polygon is a series of connected lines which is a closed shape. A closed shape is a shape that has same start point and end point. This article demonstrates how to create and use a Polygon control in Silverlight using XAML and C#.
  • ViewBox Control in SilverlightMar 16, 2009. A ViewBox control resizes itself based on the size of the contents. This article demonstrates how to use a ViewBox control in Silverlight using XAML and C#.
  • Silverlight FAQ part 2 (Animations and Transformations)Jun 23, 2009. This FAQ is completed dedicated to animations and transformations using Silverlight. The tutorial starts with animation basics like timelines and storyboard. Later the article moves ahead to talk about different animations supported and we finally end the tutorial with a simple rectangle animation.
  • Drawing Shapes in Silverlight 2Jul 14, 2009. In this article, you will learn how to work with the shape controls of Silverlight 2.
  • WPF Animations Part I- Color AnimationSep 07, 2009. WPF is a new framework that has many advanced capabilities. Animations are one of those capabilities, where an object can be animated via rotating, stretching, scaling, moving it across the screen, changing its color, etc. In this article I am going to show color anmiation on a coltrol.
  • Receiving Messages With Multiple Schemas in a Single OrchestrationSep 18, 2009. In this article, I will cover how to receive two messages with different schemas in a single orchestration in order to process them instead of creating separate orchestrations for each message with identical business logic. For the solution, I will use the Listen shape along with two Receive shapes each of them listening for different messages.
  • Clearing the Console Screen using API Sep 27, 2009. Learn how to clear the Console screen using Win32 API calls. Also learn additional techniques like how to clear a specific portion of the screen or to move it.
  • Building Isometric ApplicationsSep 28, 2009. The task is put to develop the three-dimensional graphic interface including visual stereocomponents (Stereo Vision compoNents), three-dimensional forms (Shapes) and isometric applications (Isometric Application). As means of development language C # and DirectX 9.0 has been chosen.
  • Moving a Form without the Title BarOct 12, 2009. In this article, learn how to to allow the user to move the form without its title bar.
  • Shaped Windows in WPFOct 30, 2009. Every user interface in WPF is represented by a Window. In this article, you will learn how to create non-rectangular shaped Windows in WPF using C#.
  • GDI+ ApplicationNov 01, 2009. In this article we move to the more practical aspects of writing graphics applications using GDI+ in the .NET Framework.
  • Drawing Graphics ShapesNov 05, 2009. In this article I will explain about Drawing Graphics Shapes in GDI+.
  • Silverlight Charts: Coordinates on MousemoveNov 24, 2009. In this article we see how we get the coordinates in Silverlight charts on mouse move. It's a bit tricky, but it worked great for me.
  • Generating Good Quality Thumbnail Images in ASP.NETNov 25, 2009. Thumbnails are small images that are used to preview a large image. One of the applications that uses thumbnails is a photo gallery, The code snippet in this article demonstrates how to generate high quality thumbnails in ASP.NET.
  • DataGrid Column Resize in Silverlight 3Dec 01, 2009. In this article, we will see how we can resize the DataGrid Column after row delete operation from the DataGrid.
  • Drawing Pie Shapes in GDI+Dec 01, 2009. In this article I will explain you how to Draw Pie Shapes in GDI+.
  • Move Windows Form Without BorderDec 06, 2009. Some time its necessary that we want to move form without border. So here is the solution to move that type of form.
  • XML Navigation using C#Dec 07, 2009. This article demonstrates how to navigate through XML documents using C#.
  • SQL Query Optimization FAQ Part 1 (With video explanation)Feb 02, 2010. In this article we will first try to understand what is a SQL plan, how is it created and then we will move towards understanding how to read the SQL plan. As we read the SQL plan we will try to understand different operators like table scan, index seek scan, clustered scan, RID lookup etc. We will also look in to the best practices associated with clustered and non-clustered indexes and how they function internally. We will practically see how indexed views increase performance and in what scenarios we should use the same.
  • Line in WPFFeb 03, 2010. The Line object represents a line shape and draws a line between two defined points. This article demonstrates how to create lines in WPF and XAML.
  • Ellipse in WPFFeb 03, 2010. The Ellipse object represents an ellipse shape and draws an ellipse with the given height and width. This article demonstrates how to create and use an ellipse in WPF and XAML.
  • Rectangle in WPFFeb 03, 2010. The Rectangle object represents a rectangle shape and draws a rectangle with the given height and width. This article demonstrates how to create rectangles in WPF and XAML.
  • Polygon in WPFFeb 04, 2010. A polygon is a series of connected lines which is a closed shape. A closed shape is a shape that has same start point and end point. This article demonstrates how to create and use a polygon in WPF using XAML.
  • Drawing Other Graphics Shapes by Applying Cap and Dashed Line Styles in GDI+ Feb 08, 2010. In this article I will explain about Drawing Other Graphics Shapes by Applying Cap and Dashed Line Styles in GDI+.
  • How to Store Spatial Data or Shape Files into RDBMS(PostgreSQL/POSTGIS)Feb 12, 2010. I this article we will see how to store spatial data or shape files into RDBMS.
  • TranslateTransform in WPFFeb 14, 2010. TranslateTransform is used to move an element from one position to other. The X and Y properties are used to move an element towards the x and y axes.
  • WPF Drawing BrushFeb 16, 2010. The Drawing object in WPF represents a 2-D drawing that include shapes, text, video, image and other drawings. A Drawing Brush represented by the DrawingBrush object paints a surface with a drawing.
  • Move Up/Down ListBoxItem in ListBox in WPFApr 03, 2010. In this article we will see how we can move up/down a ListBoxItem in ListBox.
  • Move Up/Down TreeViewItem in TreeView in WPFApr 05, 2010. In this article we will see how we can move up/down a TreeViewItem in TreeView.
  • WPF and UserInteractivity part III: Moving an resizing shapesApr 27, 2010. In this article, we will still dealing with shapes but from a different angle.
  • WPF And User Interactivity Part I: Dealing With Geometries And ShapesApr 27, 2010. This first article will show the manner to handle elements within the scene. Indeed, WPF provides us a very helpful class, namely the VisualTreeHelper class.
  • WPF and user Interactivity Part IV: Attached property for moving and resizing shapesApr 28, 2010. In this article, I will refactor the previous code by representing it as an attached property.
  • Move and Rotate Animation in Silverlight 3May 07, 2010. In this article we will see how we can animate Move and Rotate functionalities of any UIElement.
  • Importing an Excel File into a Silverlight DataGrid in XML FormatMay 12, 2010. This article will illustrate that moving Excel Documents into Silverlight is a snap if your Excel spreadsheet is saved in an XML file.
  • 6 Steps to Implement DUAL Security on WCF Using User Name + SSLMay 20, 2010. In the article we will try to apply DUAL security using transport plus message on WCF services. So we will first try to understand the basic concepts of WCF security i.e. transport and message. Once we understand the concept we will move step by step to how to implement SSL and user name security on WCF services.
  • Cursors in C#Jun 15, 2010. A cursor in Windows is an icon that is displayed when you move a mouse, a pen, or a trackball. This code shows how to apply and manage cursors in your Windows applications.
  • DomainUpDown in C#Jun 21, 2010. A DomainUpDown control allows users to provide a spin (up/down) interface to move through pre-defined strings using up and down arrows. In this tutorial, we will see how to create a DomainUpDown control and use it in a Windows Forms application.
  • NumericUpDown in C#Jun 22, 2010. A NumericUpDown control allows users to provide a spin (up/down) interface to move through pre-defined numbers using up and down arrows. In this tutorial, we will see how to create a NumericUpDown control at design-time as well as at run-time.
  • Resize Image at RuntimeJun 23, 2010. In this article you will leatn how to Resize Image at Runtime.
  • Resizing an Array Using Array.Resize()Jul 06, 2010. In this article we will see how to resize an array using Array.Resize().
  • How to use BoundingBox?Jul 13, 2010. BoundingBox is a structure which defines an axis-aligned box-shaped 3D volume. Here I will show you how to use it.
  • Creating a Silverlight Application that inserts data to a database using WCF serviceAug 02, 2010. In this article, I have created a Silverlight application that asks users to enter choices & moves to specific pages depending on the choices. I have shown here how to use merged resource dictionaries. We can also see how to create controls dynamically. Finally, this application consumes a WCF service to store data in the database using LINQ to SQL.
  • Drawing Shaped Forms and Windows Controls in GDI+Aug 05, 2010. In this article you Drawing Shaped Forms and Windows Controls in GDI+
  • Move one share point site using Import/Export feature in STSADMAug 16, 2010. In this article you will learn how to move one share point site as sub site in another site collection using Import/Export feature in STSADM.
  • SplitContainer in C#Aug 17, 2010. The SplitContainer control provides the functionality of a splitter to divide and resize two controls. In this article, we will discuss how to create and use a SplitContainer control in a Windows Forms application.

About Moving-an-resizing-shapes

NA

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!
Download Free eBooks