摘要: 转载:http://dev.mjxy.cn/a-Silverlight-Prism-Hand-On-Lab.aspx使用Prism开发Silverlight1.新建Silverlight项目HelloWorld.Silverlight2.更改MasterPage.xaml为Shell。注意类型3.在Shell中引用xmlns:Regions="clr-namespace:Microsoft.Practices.Composite.Presentation.Regions;assembly=Microsoft.Practices.Composite.Presentation" 阅读全文
posted @ 2011-07-12 01:09 敏捷学院 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 转自:http://dev.mjxy.cn/a-Installation-ckeditor.aspx1. 下载ckeditorhttp://ckeditor.com/2. 解压后将ckeditor和ckfinder目录复制到项目中3. 修改配置文件ckeditor/config.js config.language = 'zh-cn'; //中文 config.uiColor = '#BFEE62'; //编辑器颜色 config.font_names = '宋体;楷体_GB2312;新宋体;黑体;隶书;幼圆;微软雅黑;Arial;Comic Sans 阅读全文
posted @ 2011-07-12 00:52 敏捷学院 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 转自:http://dev.mjxy.cn/a-FCKeditorNET-custom-upload-directory-and-file-names-automatically-generated.aspx使用用FCKeditor的上传功能,我们会发现上传后的文件名和本地的是一样的,不会自动更改文件名,这样有时候本地是中文文件名的时候就不是太好了。下面是我对FCKeditor.NET源文件的修改,使上传文件自动生成随机文件名,而且上传目录根据当前时间归类,这样方便管理! 下面使用的是FCKeditor.NET 2.6.3 版。1、根据当前时间设置上传目录打开FileBrowser\\Conf 阅读全文
posted @ 2011-07-12 00:51 敏捷学院 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 转自:http://dev.mjxy.cn/a-296.aspxc#如何取消窗体标题栏关闭using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;using System.Windows.Forms;public class Disable{ [DllImport("user32.dll", SetLastError = true)] public static extern IntPtr GetSystemMenu(IntPtr 阅读全文
posted @ 2011-07-12 00:47 敏捷学院 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 转自:http://dev.mjxy.cn/a-Security-Update-Windows-controls-from-another-thread.aspx// Safe update of windows control from other threadsdelegate void UpdateReportCallback(string text);private void UpdateReport(string message){ // InvokeRequired required compares the thread ID of the // calling thread t 阅读全文
posted @ 2011-07-12 00:46 敏捷学院 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 转自:http://dev.mjxy.cn/a-269.aspxusing System;using System.ComponentModel;using System.Windows.Forms;namespace WindowsApplication4...{ /**//// <summary> /// gui 类 /// </summary> public partial class Form1 : Form ...{ public Form1() ...{ InitializeComponent(); } private void button1_Click( 阅读全文
posted @ 2011-07-12 00:46 敏捷学院 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 标准的win32窗口程序相信熟悉windows编程的朋友,对于使用win32 api开发窗口应用程序一定不陌生。 下面的程序是从资源文件中加载一个图片并显示在窗口中。#include <windows.h>#include "resource.h"TCHAR szClassName[] = TEXT("WIN32TEST");HBITMAP hBmp;LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam){PAINTSTRUCT ps;HD 阅读全文
posted @ 2011-07-12 00:45 敏捷学院 阅读(643) 评论(1) 推荐(0) 编辑