一、以对话框的方式显示另一窗口。
在form1内对过按钮点击或其它事件添加以下代码。
form2fm2=newform2();
fm2.showdialog();
特点:当fm2打开后form1无法执行其它操作。只有当fm2关闭后才能继续。
关闭窗口为this.close();二、在form1内打开form2,form2作为form1的一部份进行..
1.简单形式:var q = from p in db.Products group p by p.CategoryID into g select g;语句描述:使用Group By按CategoryID划分产品。说明:from p in db.Products 表示从表中将产品...
分类:
其他好文 时间:
2015-05-09 20:25:29
阅读次数:
99
Qt 提供了很多关于获取窗体位置及显示区域大小的函数代码: 1 from PyQt4.QtGui import * 2 from PyQt4.QtCore import * 3 import sys 4 5 class Geometry(QDialog): 6 7 def __init_...
分类:
其他好文 时间:
2015-05-09 20:17:34
阅读次数:
117
这是一个用python3 和mutagen库编写用来管理自己音乐文件夹的脚本。学习python挺久了,终于能写个有点用的东西了。源代码入下:不过感觉写得太长了,像这样一个脚本好像几十行就能解决,求各路大神指点!!! 1 import os 2 from mutagen.mp3 import MP.....
分类:
编程语言 时间:
2015-05-09 18:57:11
阅读次数:
146
GridView: A view that shows items in two-dimensional scrolling grid. The items in the grid come from theListAdapterassociated with this view. 简单说,Gr...
分类:
移动开发 时间:
2015-05-09 18:52:18
阅读次数:
132
java.lang.IllegalArgumentException: the bind value at index 1 is null本质上还是由于调用的时候userID给了空值 String query = "select regdate,shousuo,shuzhang,maibo from...
分类:
其他好文 时间:
2015-05-09 18:49:34
阅读次数:
87
/*通用分页存储过程*/USE HotelManagementSystemGOIF EXISTS(SELECT * FROM sys.objects WHERE NAME='cndoup_GetPageOfRecords') DROP PROCEDURE cndoup_GetPageOfRecor....
分类:
其他好文 时间:
2015-05-09 18:48:49
阅读次数:
87
from wsgiref.simple_server import *def aaa(environ,start_response): # try: # request_body_size = int(environ.get('CONTENT_LENGTH', 0)) # ...
分类:
编程语言 时间:
2015-05-09 17:22:57
阅读次数:
765
首先创建SQL脚本if exists (select * from sysobjects where id = OBJECT_ID('[Menu]') and OBJECTPROPERTY(id, 'IsUserTable') = 1) DROP TABLE [Menu]CREATE TABLE [...
分类:
Web程序 时间:
2015-05-09 16:27:07
阅读次数:
109
问题:mysql语句中使用like后面的%(百分号) 是不是越多运行效率越慢!总用时:0.0489秒 0.0691 0.0485 0.0467SELECT `goods_name`, `goods_img`, `sku_id`, `import` FROM `goods` WHERE `goods_...
分类:
数据库 时间:
2015-05-09 16:24:10
阅读次数:
201