上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 30 下一页
摘要: 应用程序开发中,经常需要多窗体之间进行数据通信,写几个例子,把几种常用的通信方式总结一下:主窗体Form1是一个ListBox,单击选中某列时,弹出窗体Form2,Form2中两个控件,一个是TextBox,显示选中的该列的文本,另一个是按钮,点击时将修改后的值回传,且在Form1中修改相应的列的文本,同时Form2关闭。C#窗体间通讯方法一:传值最先想到的,Form2构造函数中接收一个string类型参数,即Form1中选中行的文本,将Form2的TextBox控件的Text设置为该string,即完成了Form1向Form2的传值。当Form2的AcceptChange按钮按下,需要修改F 阅读全文
posted @ 2011-11-24 09:56 softimagewht 阅读(263) 评论(0) 推荐(0)
摘要: void Update () {//处理横向两个方向旋转if(Input.deviceOrientation == DeviceOrientation.LandscapeLeft){if (Screen.orientation != ScreenOrientation.LandscapeLeft) {Screen.orientation = ScreenOrientation.LandscapeLeft;}}else if(Input.deviceOrientation == DeviceOrientation.LandscapeRight){if (Screen.orientation != 阅读全文
posted @ 2011-11-21 14:58 softimagewht 阅读(293) 评论(0) 推荐(0)
摘要: private void Form1_Load(object sender, System.EventArgs e) { FileSystemWatcher p = new FileSystemWatcher("d:\\"); p.EnableRaisingEvents = true; p.IncludeSubdirectories = true; p.Changed+=new FileSystemEventHandler(p_Changed); p.Created+=new FileSystemEventHandler(p_Created); p.Deleted+=new 阅读全文
posted @ 2011-11-13 16:24 softimagewht 阅读(239) 评论(0) 推荐(0)
摘要: DirectoryInfo TheFolder=new DirectoryInfo("c:\\"); foreach(DirectoryInfo NextFolder in TheFolder.GetDirectories()) this.listBox1.Items.Add(NextFolder.Name); foreach(FileInfo NextFile in TheFolder.GetFiles()) this.listBox2.Items.Add(NextFile.Name); 阅读全文
posted @ 2011-11-12 20:38 softimagewht 阅读(207) 评论(0) 推荐(0)
摘要: http://hi.baidu.com/zhs1021/blog/item/52255d43e5a24d079313c6e0.htmlhttp://www.cnblogs.com/zhaojingjing/archive/2011/01/21/1941586.html 阅读全文
posted @ 2011-11-12 19:23 softimagewht 阅读(226) 评论(0) 推荐(0)
摘要: private void Form1_DragDrop(object sender, DragEventArgs e) { string fullPath = ((System.Array)e.Data.GetData(DataFormats.FileDrop)).GetValue(0).ToString(); string filename = System.IO.Path.GetFileName(fullPath);//文件名 “Default.aspx” string extension = System.IO.Path.GetExtension(fullPath);//扩展名 “.a. 阅读全文
posted @ 2011-11-12 08:51 softimagewht 阅读(165) 评论(0) 推荐(0)
摘要: 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 System.IO;namespace wht{ public partial class Form1 : Form { private static int FormCount = 0; public Form1() { Initia 阅读全文
posted @ 2011-11-07 21:40 softimagewht 阅读(251) 评论(0) 推荐(0)
摘要: 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 System.IO;namespace wht{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void bu 阅读全文
posted @ 2011-11-04 08:00 softimagewht 阅读(217) 评论(0) 推荐(0)
摘要: SIObjectProjectItemSceneItemX3DObjectModelX3DObjectCollectionParameterPolygonMeshGeometry//软件相对地址的写法XSIApplication.InstallationPath//KEY关键帧Translate(null, -8, 5, 0);SaveKeyOnKeyable("cylinder1", 1);Translate(null, 16, 0, 0);SaveKeyOnKeyable("cylinder1", 25);Translate(null, 0, -10 阅读全文
posted @ 2011-10-28 19:31 softimagewht 阅读(232) 评论(0) 推荐(0)
摘要: Character(s)Meaning,Separates items in a list. For example, "mycube.kine.local.posx, mycube.kine.local.posy, mycube.kine.local.posz"{ }Specifies a list of objects. For example, "{cube, sphere}.kine.local.posx" selects the local X position of the cube and sphere objects.B:Denotes 阅读全文
posted @ 2011-10-27 11:16 softimagewht 阅读(295) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 30 下一页