03 2013 档案

delphi中子窗体通用打开函数
摘要:没有用MDI类型,是用setparent来设置子窗体的,在主窗体上放置一个panel2做为子窗体的父容器。Main为主窗体。子窗体中最好在关闭和ondestory中写上代码,在Onclose中写action:=cafree ,在ondestory中写上childfrm=nil;如下代码:procedure CreateChildFrm(AForm:TCustomForm;const AFormClass:TFormClass);function isExist():boolean;var i:integer;begin result:=False; for i :=0 to Screen... 阅读全文

posted @ 2013-03-19 11:56 天上星 阅读(1615) 评论(0) 推荐(0) 编辑

C#中数据库连接的配置文件
摘要:在C#2010中,如何保存和访问数据库的连接字符串呢?在Winform下要新增App.config文件,在Asp.net下要新增web.config文件。1.打开配置文件添加相关代码后如下即可:<?xml version="1.0" encoding="utf-8" ?><configuration> <connectionStrings> <add name="myconn" connectionString="Data Source=.;Initial Catalog=North 阅读全文

posted @ 2013-03-13 11:17 天上星 阅读(19572) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示