Codes from Developers

C# cshtml

asp.net,mvc,localization,using,database

ASP.NET MVC Localization using a Database ASP.NET MVC already offers support for localization through ressource files. However, if you need to read texts from a database things get more complicated. Especially if you still want to use DataAnnotations in your model for display text and validation messages.


C#

c#,event,interface

This Code Shows How to IIlustrate Handling an Event Declared in an Interface


C++

Copying,one,or,more,than,one,file,into,one,file,c++

Copying one or more than one file into one file c++


JavaScript

Create,Access,Objects,Constructor,Notation,javascript,js

Create & Access Objects Constructor Notation with Javascript


Java

Drawing,Shapes,in,Java,2D

Drawing Shapes in Java 2D


Delphi

goRangeSelect,,DrawGrid,delphi

The following code selects the rectangle containing rows from 1 through 4, and columns 2 and 3. goRangeSelect in the DrawGrid Options parameter must be True in order to be able to select a range of cells. This example requires a button, a DrawGrid, and a populated ImageList.


PHP

Upload,image,file,MySQL,BLOB

Upload image file to MySQL as BLOB


Delphi

FindText,delphi,TRichEdit,TButton,TFindDialog

This example requires a TRichEdit, a TButton, and a TFindDialog. Clicking the button Click displays a Find Dialog to the right of the edit control. Filling in the "Find what" text and clicking the Find Next button selects the first matching string in the Rich Edit control that follows the previous selection.


C#

c#,binary,reader,binaryreader

This Code Implements BinaryReader


C#

c#,matrix,multiplication

This Code Shows How to Perform Matrix Multiplication


Java

Get,Current,Time,java

Get The Current Time in java


C#

c#,xml,nodes,attribute

This Code Shows How to Select XML Nodes by Attribute Value


C#

c#,sum,binary,numbers

This Code Shows How to Find the Sum of two Binary Numbers


PHP

Function,to,generate,calendars,on,the,fly

Function to generate calendars on the fly


Java

Paints,and,strokes,in,java

Paints and strokes in java


C++

Merge,Sort,c++

Merge Sort c++


Delphi

FMXAttachTAnimation,delphi

This example demonstrates how the AnimationType and Interpolation properties affect the rate at which the value of a property changes under their control. This is illustrated by controlling the X and Y of a TRectangle with TFloatAnimation instances. The Interpolation properties on the TFloatAnimation objects are set to Linear, making the change of X and Y constant over time. The Interpolation and AnimationType properties of the TFloatAnimation instance can be set in the Object Inspector to any TInterpolationType and any TAnimationType. Drawing of the path is done using the DrawLine method of the form's Canvas. Points are collected and drawn using a TPointF array in the animation's OnProcess event handler and then redrawn in the form's OnPaint event handler. The TFloatAnimation instances have to be created as children of the TRectangle. Many of the TFloatAnimation properties can be set at design time. To replicate this example, create a Multi-Device Application - Delphi and add the following components to the form: A TRectangle--the animated object Two TButton objects Two TComboBox objects Two TFloatAnimation objects Rename the buttons to MoveRect and ReturnRect. Using the Object Inspector, add event handlers for the Form1.OnCreate, MoveRect.OnClick, ReturnRect.OnClick, FloatAnimation1.OnProcess, and Form1.OnPaint events. Fill in with the sample code below. The form should look like the following image.


C#

Flyweight,Pattern

Flyweight Pattern


PHP

Simple,script,send,emails,html,form,different,users

Simple script to send emails via a html-form to different users


PHP

Implode,php

Implode in PHP