摘要:
一.用SqlConnection连接SQL Server 1..加入命名空间 using System.Data.SqlClient; 2.连接数据库 SqlConnection myConnection = new SqlConnection(); myConnection.ConnectionString = "user id=sa;password=sinofindb;initial catalog=test;data source=127.0.0.1;Connect Timeout=30";myConnection.Open(); 改进(更通用)的方法: strin 阅读全文
posted @ 2012-08-29 17:17
程序流程图
阅读(124)
评论(0)
推荐(0)
摘要:
转载自:http://www.cnblogs.com/wljcan/archive/2011/08/12/2136611.htmlUIAlertView类似于C#中的模态对话框 或 Messagebox ,但是,ios中使用起来要麻烦得多。下面这段代码是一段典型的应用: UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:@"Message" message:@"Would you like to ... 阅读全文
posted @ 2012-08-29 17:03
程序流程图
阅读(162)
评论(0)
推荐(0)
摘要:
转载自:http://www.2cto.com/kf/201204/129090.html在Windows应用程序中,经常使用模态(Model)对话框来和用户进行简单的交互,比如登录框。在IOS应用程序中,有时我们也希望做同样的事情。但IOS的UI库中,没有模态对话框,最接近那个样子的应该算是AlertView。但仅用AlertView,我们只能做文字提示,而不能和用户做交互。本文将介绍如何基于AlertView做定制,实现模态对话框的功能。以密码修改框为例:1. 首先,我们要继承AlertView类,在类的头文件PwdModifyView.h中,加入控件的声明 这里我们把控件都声明为pro. 阅读全文
posted @ 2012-08-29 11:55
程序流程图
阅读(204)
评论(0)
推荐(0)
摘要:
转载自:http://blog.csdn.net/mengfei86/article/details/6821553import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Transparency;
import java.awt.geom.AffineTransform;
import java.awt.image.AffineTransformOp;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import j 阅读全文
posted @ 2012-08-29 09:43
程序流程图
阅读(321)
评论(0)
推荐(0)

浙公网安备 33010602011771号