- 博客(57)
- 资源 (2)
- 问答 (1)
- 收藏
- 关注
原创 $.messager.alert
使用$.messager.alert要引入jquery.easyui,,,否则失效,他是jquery.easyui的控件
2015-10-15 10:12:37
1270
原创 js获得表格多行数据(多选框)
// 取得table行数据 function get_table_data(tid) { var t_data = "["; var flg = true; var td_data_temp = ""; //tr $("#" + tid).find("tr").each(function(i) { if (
2015-09-30 15:48:37
4091
原创 价格输入框的校验(数字,两个小数)
function checkNum(obj){ obj.value = obj.value.replace(/[^\d.]/g,""); obj.value = obj.value.replace(/^\./g,""); obj.value = obj.value.replace(/\.{2,}/g
2015-09-28 18:24:03
1284
原创 Sql表自连接,数据库中查询没问题,Hibernate中查询有问题?
原先的SQL: SELECT md.repertory, md.mid, md.status, m.pic, m.name, m.selling_price, m.vendor, mp.property_value, mp2.property_valu
2015-09-24 10:30:34
527
原创 文件读写
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy
2013-05-14 20:01:03
673
原创 Fileatream表示文件流,它能够打开和关闭文件,并对文件进行单字节的读写操作。 StreamReader和StreamWriter以文本方式对流进行读写操作。建立一个文本文件,分别使用上面两种方
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy
2013-05-14 20:00:13
1624
原创 .编写一个Windows应用程序,由给定数据25,15,10,30,20饼图
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name
2013-05-14 19:58:59
631
原创 绘制文字,。说明:该文字由图片充填,图片自己找
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name
2013-05-14 19:58:14
689
原创 使用PathGradientBrush类
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Drawing.Drawing2D;using System.Linq;using System.Text;usin
2013-05-14 19:57:11
3207
原创 使用LinearGradientBrush类
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Drawing.Drawing2D;using System.Linq;using System.Text;usin
2013-05-14 19:56:20
3148
原创 创建一个如下的窗体,并在窗体上放置两个按钮(button1、button2)、一个标签(label1,用于显示所选图片路径和文件名)、一个图片框(pictureBox1,用于显示所选图片)、一个打开对
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy
2013-05-08 21:22:56
9114
原创 :创建一个窗体;在窗体上添加一个按钮(text设置为 选择线颜色);向窗体添加一个颜色对话框(colorDialog1)单击按钮,能够打开一个颜色对话框,选择颜色,且更改画笔颜色
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespac
2013-05-08 21:19:03
3663
原创 创建一个登录窗体(frmLogin)、一个主窗体(frmMain)、两个子窗体(frm子窗体1、frm子窗体2)。
111111111111111111111111111111111111111using System;using System.Collections.Generic;using System.Linq;using System.Windows.Forms;namespace WindowsFormsApplication11{ static class Pro
2013-05-08 20:46:45
11609
原创 窗体中有一个图片框,显示一副图片。要求:1)在窗体打开时,动态加载图片;2)设置图片显示模式为根据图片框大小缩放图片;3)图片自己找;4)当鼠标停留在图片框时,显示“**风光”提
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name
2013-04-28 20:32:29
2978
原创 在窗体上增加一个按钮,并设置按钮显示文字为“结束程序”。单击该按钮显示如下消息框,若选择是,则结束程序,否则只是关闭消息框。
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name
2013-04-28 20:31:33
3878
原创 在窗体上放置saveFileDialog、openFileDialog两个控件。实现功能:1)程序运行时,在文本框(注意文本框多行、带垂直滚动条)中输入汉字、字符等,单击保存按钮,即可将文本框中内容保
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy
2013-04-28 20:30:33
3196
原创 创建一个如下的窗体,并在窗体上放置colorDialog控件。实现功能:1)程序运行时,单击打开颜色对话框按钮,可选择颜色,并以所选颜色作为窗体背景色
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name
2013-04-28 20:29:40
4631
原创 在窗体上放置一个标签、一个按钮、一个fontDialog控件。标签内容改为“烟台大学”。实现功能:1)程序运行时,单击打开字体对话框按钮,可选择字体,并以所选字体作为标签字体。
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name
2013-04-28 20:28:46
2882
原创 在窗体上放置一个标签、一个treeviw控件。窗体打开时,动态为treeviw控件添加节点,选择某个节点后,标签上显示所选内容。
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name
2013-04-28 20:28:02
1556
原创 在窗体上放置一个菜单、一个工具栏控件,工具栏上有两个按钮,分别对应“打开文本文件”、“保存文本文件”
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy
2013-04-28 20:26:40
2104
原创 :1)复选框中文字在左边;2)最下部为水平滚动条。水平滚动条最小值为4、最大值为72;且在窗体Load事件中通过代码设置;3)单击任何复选框,标签上文字样式都发生变化;4)单击任意单选按钮,标签上文字
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name
2013-04-26 22:18:48
1899
原创 设计一个窗体。窗体上有2个按钮,一个显示文本,一个显示图片。单击上面按钮,或按下alt+B可以弹出右边所示的消息框。单击下面按钮也可以弹出右边所示的消息框
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name
2013-04-26 22:17:43
4304
原创 设计一个窗体。窗体上有一个文本框,该文本框中只能输入0至9十种数字。
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name
2013-04-26 22:16:46
2562
原创 窗体上有两个文本框:一个文本框中最多输入字符6个;一个文本框中输入任何内容都显示*号。再添加一个按钮、2个单选按钮。实现单击按钮后,根据单选按钮,将对应文本框中内容显示在标签
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name
2013-04-26 22:15:55
10286
原创 。窗体上有一个文本框(多行、且带有垂直滚动条)、一个标签(字体颜色红色、字号16)、一个按钮(该按钮被单击时,实现将文本框中选择文本复制至标签。
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name
2013-04-26 22:14:05
4953
原创 设计一个如下图所示窗体:该窗体自动位于屏幕中央;大小不可调;最小化、最大化按钮不可用;窗体标题为“烟台大学”。在该窗体上,放置一个按钮、一个标签。单击按钮时,在标签上显示当前系统时间。
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name
2013-04-26 22:10:40
5579
原创 利用Timer和图片框控件,编写一个图片不断向左移动的小动画
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespac
2013-04-24 19:55:03
2059
原创 滚动条
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespac
2013-04-24 19:54:04
582
原创 利用Random类产生10个[10,99]之间的随机数,并将这10个随机数在列表框中显示出来,每个数占一项。用户选择某项后,在右边标签中显示所选内容。
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespac
2013-04-24 19:52:34
8554
原创 利用Timer控件【Timer(6.4.9)】编写C# Windows应用程序,设计一个如下效果电子时钟。
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespac
2013-04-24 19:51:41
1728
原创 设计一个windows应用程序,实现不同运算。
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespac
2013-04-24 19:50:26
839
原创 1)复选框中文字在左边;2)水平滚动条最小值为4、最大值为72;且在窗体Load事件中通过代码设置;3)单击任何复选框,标签上文字样式都发生变化;4)单击任意单选按钮,标签上文字字体都发生改变;5)拖
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespac
2013-04-24 19:49:25
1915
原创 窗体标题为“我文本框实验”;窗体上一个标签,内容如图;窗体上有一个文本框,文本框只能输入0至9这十种数字,且最多输入8个数字;单击结束按钮程序即可结束。
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespac
2013-04-24 19:48:12
1902
原创 窗体链接
窗体上有两个标签,其中一个为链接标签,单击该链接可以打开烟大主页;窗体上的两个标签字体宋体,字号16号;单击结束按钮程序即可结束using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using Syste
2013-04-23 20:19:48
667
原创 java版词法分析程序
package com;import java.io.BufferedReader;import java.io.FileReader;import java.io.IOException;public class Wordanalsys { static int index=0; static int j=0; static char allstr[]=
2013-04-16 21:38:26
1590
原创 实验Sort、Reverse 、Copy、IndexOf、BinarySearch、Clear 、GetLength()、GetLowerBound()、GetUpperBound ()方法;实验Ra
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication9{ class Program { //BinarySearch、Clear s
2013-04-06 15:19:45
765
原创 实验string类下述方法
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication7{ class Program { static void Main(string[] args) {
2013-04-06 15:18:40
571
原创 设计一个类,该类中有一个方法,该方法使用Random类随机产生10个三位数字(如636)的随机数,并把产生的10个随机数存入数组中。然后在另一个类中输出这10个数
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication6{//设计一个类,该类中有一个方法,该方法使用Random类 //随机产生10个三位数字(如636)的随机数, //并把产生的10个随机数
2013-04-06 15:17:45
8218
1
原创 、输入某人出生日期(以字符串方式输入,如1987-4-1)使用DateTime和TimeSpan类,(1)计算其人的年龄;(2)计算从现在到其60周岁期间,总共多少天。
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication5{ class Program { static void Main(string[] args) {
2013-04-06 15:16:34
3354
原创 复制文件
package com;import java.io.FileInputStream;import java.io.FileOutputStream;public class demo01{ public static void main(String[] args) throws Exception { FileInputStream fi=new FileInpu
2013-03-27 18:19:23
490
Dispatcher initialization failed
2015-11-11
TA创建的收藏夹 TA关注的收藏夹
TA关注的人