原创 dynamic create layout

LinearLayout containerLayout = (LinearLayout)findViewById(R.id.scrollviewlayout); containerScrollView = new Scroll

原创 splash screen

public class Splashscreen extends Activity{ private Thread splashThread; @Override public void onCreate(Bundle sav

原创 spinner (drop down list)

  // set spinner      spinner = (Spinner) findViewById(R.id.spinner_meterPointType);      ArrayAdapter<CharSequenc

原创 calculate all controls size and position in the form when the form resize

// class with calculate size and position of control.class UIElement { // those properties get the Control current

原创 Custom data binding, window form

// custom Object Public Class Customer { // class to get set a string to format of (key=value;key=value;...;...;) pri

原创 make phone call, browse web, send email

// make phone call try { Intent callIntent = new Intent(Intent.ACTION_CALL); callIntent.setData

原创 SVN Merge

Create branchright click the project -> svn -> branch tag.   Fill in the URL. you can specify a new folder on the url,

原创 check smpt server mail queue

C:\inetpub\mailroot\Queue each file is a mail, if the mail is sent, the file for that mail is gone. 點贊 收藏 分

原创 android error

When you debug or run (android 4.0.0 or upper) by AVD(emulator), the error (device not found) may show, this is not err

原创 radgrid column filter, filtered by a “From” and “To” date, inclusive

<telerik:GridDateTimeColumn UniqueName="ActionDate" DataField="ActionDate" HeaderText="Date" AllowFiltering="True" Sort

原创 nettier deepload

CustomerService service = new CustomerService(); var customer = service.GetByCustomerId(customerId);

原创 android permission

when install the android app, a list of permission will display:  DEVELOPMENT TOOLS ENABLE APP DEBUGGING Allows the app

原创 update a table by selected value from other table.

UPDATE Table SET Table.col1 = other_table.col1, Table.col2 = other_table.col2 FROM Table INNER JOIN

原创 generate radom word

public abstract class RandomWordHelper { public static string GetRandomWord(int length, WordType wordType)

原创 grid view template field bound

<data:EntityGridView runat="server" ID="gvw_tickets" SkinID="Admin" DataSourceID="TicketDS" DefaultSortColu