frm

Window Form 父子窗体相互更新

匿名 (未验证) 提交于 2019-12-03 00:33:02
主窗体 public partial class Form1 : Form { public Form1() { //LoginForm dlg = new LoginForm(); //dlg.StartPosition = FormStartPosition.CenterParent; //dlg.ShowDialog(); InitializeComponent(); //this.StartPosition = FormStartPosition.CenterScreen; } //父窗体定义委托和事件 public delegate void changetxt(string text); public event changetxt changeStxt_event; private void button1_Click(object sender, EventArgs e) { Form2 frm = new Form2(this);//传递窗体1指针 //子窗体订阅事件 frm.changeFtext_event += new Form2.changetext(frm_changetext_event); frm.StartPosition = FormStartPosition.CenterScreen; frm.Show(this);//窗体不会置于父窗体的外边

delphi 使用 InputBox、InputQuery 的启发

匿名 (未验证) 提交于 2019-12-02 23:57:01
使用 InputBox、InputQuery 的启发 看了 InputBox、InputQuery 函数实现的源码, 有些收获与心得... -------------------------------------------------------------------------------- 通过 InputBox 可获取用户输入的字符串: -------------------------------------------------------------------------------- procedure TForm1.Button1Click(Sender: TObject); var str: string; begin str := InputBox('输入窗口标题', '输入提示', '默认输入内容'); ShowMessage(str); //显示输入的内容 end; -------------------------------------------------------------------------------- InputBox 是调用了 InputQuery, InputQuery 是通过一个 var 参数获取新字串: ---------------------------------------------------------

.frm文件怎么导入到数据库

匿名 (未验证) 提交于 2019-12-02 23:41:02
本文适用于有软件开发经验一年以上的人,有Linux和数据库相关知识基础,小白误入坑! 1、解压文件LYSercer.rar到D:/ linux系统没有,就创建一个D根目录,并赋予777权限。把相关解压的文件上传到服务器D盘。 2、安装erl.exe, 安装完毕配置环境变量。 3、安装nodejs,安装完成后运行 4、导入数据库到云服务器。不会的请参考: .frm文件怎么导入到数据库 5、修改IP (1)修改服务端IP为你的IP   找到D:\LYServer\wwwroot\down_5000\version\config_BloodDragon.xml   替换原IP为你的IP,一共3处。   找到D:\LYServer\gameserver2001\config\server.config   替换原IP为你的IP,也是3个。 (2)修改数据库IP为你的IP   使用数据库连接软件(我用的Navicat for MySQL)找到dragonlogindata里的server表   修改IP为你的IP (3)修改客户端apk文件   反编译apk(我用的AndroidKiller)   反编译完成后找到ApkIDE下的Work文件夹中的com.duoyuan.xytl_jz_GM\assets\localVersion.xml文件   修改IP为你的IP   找到com

c# winfrom 子窗体分屏显示

吃可爱长大的小学妹 提交于 2019-12-01 04:48:58
参考博客:https://blog.csdn.net/kailan818/article/details/8517126 实现代码: private void button1_Click(object sender, EventArgs e) { var frmChild = Application.OpenForms["frmChild"]; if (frmChild != null) { frmChild.Activate(); } else { frmChild frm = new frmChild(); frm.Owner = this;//申明当前窗体是子窗体 ShowOnMonitor(frm); frm.Show(); } } private void ShowOnMonitor(frmChild frm) { Screen[] sc = Screen.AllScreens; if (sc.Length > 1) { //获取当前屏幕 Screen CurrentScreen = Screen.FromControl(this); //获取当前鼠标所在的屏幕 //Screen CurrentScreen = Screen.FromPoint(new Point(Cursor.Position.X, Cursor.Position.Y)); var child = sc

自定义vb.net 窗口位置

删除回忆录丶 提交于 2019-11-30 03:26:10
Dim frm As New Form frm.StartPosition = FormStartPosition.Manual '这个很重要,必须设置为Manual,Location才能有用 Dim StartPoint As New System.Drawing.Point StartPoint.X = System.Windows.Forms.SystemInformation.PrimaryMonitorSize.Width - frm.Width StartPoint.Y = System.Windows.Forms.SystemInformation.PrimaryMonitorSize.Height - frm.Height frm.Location = StartPoint frm.Show() 来源: https://www.cnblogs.com/Juli/p/11551489.html

delphi 使用 InputBox、InputQuery 的启发

拜拜、爱过 提交于 2019-11-29 05:40:09
使用 InputBox、InputQuery 的启发 看了 InputBox、InputQuery 函数实现的源码, 有些收获与心得... -------------------------------------------------------------------------------- 通过 InputBox 可获取用户输入的字符串: -------------------------------------------------------------------------------- procedure TForm1.Button1Click(Sender: TObject); var str: string; begin str := InputBox('输入窗口标题', '输入提示', '默认输入内容'); ShowMessage(str); //显示输入的内容 end; -------------------------------------------------------------------------------- InputBox 是调用了 InputQuery, InputQuery 是通过一个 var 参数获取新字串: ---------------------------------------------------------

How do you deal with visual basic 6 frm and frx files in source control?

隐身守侯 提交于 2019-11-29 03:05:25
This is always a pain no matter what source control system I have used (source safe, cvs, clearcase...) the binary .frx files always cause a problem when merging visual basic forms. I know...I know...why are you using Visual Basic...because there are lots of legacy apps still written using it and although I hate to admit it I actually like using it ( ducks tomatoes ) You need to just bite the bullet and include them in version control system. Unfortunately, they do contain information that isn't available anywhere else in the source. (The bitmaps added to ImageList controls, for example.) If

莫凡python Tkinter 学习笔记

﹥>﹥吖頭↗ 提交于 2019-11-28 22:58:24
按照视频顺序来的,照着打的代码 #Label & Button import tkinter as tk window=tk.Tk() #创建窗口 window.title('1200') window.geometry('400x300') var=tk.StringVar() #一个变量 l=tk.Label(window, textvariable=var,bg='green',fg='red',font=('Arial',12),width=30,height=2) #创建一个label l.pack() #把label加进窗口 on_hit=False def hit_me(): #功能函数 global on_hit if on_hit==False: on_hit=True var.set('you hit me') else: on_hit=False var.set('') b=tk.Button(window,text='hit me',width=15,height=2,command=hit_me) b.pack() window.mainloop() #Entry & Text window=tk.Tk() window.title('1200') window.geometry('400x300') e=tk.Entry(window,show=None

mysql之frm,MYD,MYI.idb,par文件说明

谁说我不能喝 提交于 2019-11-27 19:15:09
如数据库a,表b。 1、如果表b采用 MyISAM ,data\a中会产生3个文件: b.frm :描述表结构文件,字段长度等 b.MYD(MYData):数据信息文件,存储数据信息(如果采用独立表存储模式) b.MYI(MYIndex):索引信息文件。 2、如果表b采用 InnoDB ,data\a中会产生1个或者2个文件: b.frm :描述表结构文件,字段长度等 如果采用独立表存储模式,data\a中还会产生b.ibd文件(存储数据信息和索引信息) 如果采用共存储模式的,数据信息和索引信息都存储在ibdata1中 如果采用分区存储,data\a中还会有一个b.par文件(用来存储分区信息) 来源: https://www.cnblogs.com/jdbeyond/p/11373802.html

How do you deal with visual basic 6 frm and frx files in source control?

那年仲夏 提交于 2019-11-27 17:22:04
问题 This is always a pain no matter what source control system I have used (source safe, cvs, clearcase...) the binary .frx files always cause a problem when merging visual basic forms. I know...I know...why are you using Visual Basic...because there are lots of legacy apps still written using it and although I hate to admit it I actually like using it ( ducks tomatoes ) 回答1: You need to just bite the bullet and include them in version control system. Unfortunately, they do contain information