DotNet开发

dotnet学习
快捷方式结构
     摘要: Internet快捷方式的文件格式与INI文件的是相同的  阅读全文

posted @ 2006-11-06 13:13 简单就是美 阅读(118) | 评论 (0)  编辑

.net transparent bitmap
     摘要: Dim pBmp As System.Drawing.Bitmap = System.Drawing.Image.FromHbitmap(pCmd.Bitmap)
pBmp.MakeTransparent(pBmp.GetPixel(0, 0))
pBtn.Image = pBmp
  阅读全文

posted @ 2006-07-26 18:33 简单就是美 阅读(85) | 评论 (0)  编辑

[转]C#操作excel,如何调用模板

posted @ 2006-07-03 17:55 简单就是美 阅读(4859) | 评论 (2)  编辑

[转]C#操作excel

posted @ 2006-07-03 17:53 简单就是美 阅读(1382) | 评论 (0)  编辑

DotNet+ArcGIS Engine 90
     摘要: 不知道是我写错误了,还是。。。
你遇到这样的问题了么,欢迎留言  阅读全文

posted @ 2006-06-26 12:07 简单就是美 阅读(281) | 评论 (0)  编辑

.Net学习笔记
     摘要: 动态创建空间
动态使用字符串创建变量
注册表操作
快速结束当前应用程序
ShellExe  阅读全文

posted @ 2006-06-23 14:23 简单就是美 阅读(48) | 评论 (0)  编辑

动态使用字符串创建变量
     摘要: Dim pCmd As ICommand
Dim ctlType As Type = Type.GetType(pCls)
If Not ctlType Is Nothing Then
pCmd = CType(System.Activator.CreateInstance(ctlType), ICommand)
end if  阅读全文

posted @ 2006-06-23 13:49 简单就是美 阅读(44) | 评论 (0)  编辑

.Net注册表操作
     摘要: Microsoft.Win32
Registry.CurrentUser 对应于HKEY_CURRENT_USER子目录树
Registry.LocalMachine 对应于 HKEY_LOCAL_MACHINE子目录树
Dim software11 As RegistryKey = Registry.LocalMachine.OpenSubKey ( "SYSTEM" ,true ) '打开"SYSTEM"子健
Dim software As RegistryKey = software11.OpenSubKey ( "A000" , true ) '打开"A000"子健
Dim ddd As RegistryKey = software.CreateSubKey ( "ddd" )
  阅读全文

posted @ 2006-06-23 13:46 简单就是美 阅读(62) | 评论 (0)  编辑

快速退出当前应用
     摘要: Private Declare Sub ExitProcess Lib "kernel32" (ByVal uExitCode As Long)
Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As Long, lpExitCode As Long) As Long
Private Declare Function GetCurrentProcess Lib "kernel32" () As Long
ExitProcess GetExitCodeProcess(GetCurrentProcess, 0)  阅读全文

posted @ 2006-06-23 13:33 简单就是美 阅读(40) | 评论 (0)  编辑

动态创建空间
     摘要: Dim pTool As ToolStrip = New ToolStrip()
pTool.SendToBack()
Controls.Add(pTool)

Dim pBtn As ToolStripButton = New ToolStripButton
pBtn.TextAlign = ContentAlignment.MiddleRight
pBtn.ImageAlign = ContentAlignment.MiddleLeft
pBtn.Text = pCmd.Caption
If pCmd.Bitmap <> 0 Then
pBtn.Image = System.Drawing.Image.FromHbitmap(pCmd.Bitmap)
End If
BtnStrip.Items.Add(pBtn)
AddHandler pBtn.C  阅读全文

posted @ 2006-06-23 12:36 简单就是美 阅读(48) | 评论 (0)  编辑

动态增加控件
     摘要: Dim pBtn As ToolStripButton = New ToolStripButton
pBtn.Tag = iCmd

pBtn.Text = "aa"
BtnStrip.Items.Add(pBtn)
AddHandler pBtn.Click, AddressOf Me.CommandClick

卸载空间
ToolStrip1.Items.Clear()
  阅读全文

posted @ 2006-06-19 13:46 简单就是美 阅读(34) | 评论 (0)  编辑

net中图片文件编译到资源文件及使用
     摘要: m_bitmap = New System.Drawing.Bitmap(GetType(PanTool), "ZoomIn.bmp")
m_zoominMoveCur = New System.Windows.Forms.Cursor(GetType(PanTool), "ZoomIn_Move.cur")
m_zoominCur = New System.Windows.Forms.Cursor(GetType(PanTool), "ZoomIn.cur")
m_cursor = m_zoominCur

m_category = SunGIS.My.Resources.PanZoom_Category
m_caption = SunGIS.My.Resources.ZoomIn_Caption
m_message = SunGIS.My.Resources.ZoomIn_Messag  阅读全文

posted @ 2006-06-16 08:17 简单就是美 阅读(225) | 评论 (0)  编辑

[转]C#中创建和使用资源动态链接库
     摘要: 从VS.net第二张安装光盘上(SDK\v1.1Samples\Tutorials\resourcesandlocalization\reseditor )或者在安装目录(\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Samples\Tutorials\resourcesandlocalization\reseditor )找到ResEditor的项目,打开工程编译,生成ResEditor.exe。
以供自己参考  阅读全文

posted @ 2006-06-15 08:17 简单就是美 阅读(76) | 评论 (0)  编辑

解决了一个ASP.NET无法接受中文参数值的情况
     摘要: 今天修改一下Web.config文件里的globalization 节
requestEncoding="gb2312"
responseEncoding="gb2312"
的内容,都改成原来默认的utf-8了,后来发现所有的界面都出做了,而且有些是脚本,有些是样式
  阅读全文

posted @ 2006-06-14 17:57 简单就是美 阅读(54) | 评论 (0)  编辑

修改IIS6的默认设置,扩充上传文件的大小
     摘要: 摘要:解决办法:
  1. 关闭 IIS Admin Service 服务
  2. 打开 \Windows\system32\inesrv\metabase.xml
  3. 修改 ASPMaxRequestEntityAllowed 的值为自己需要的, 默认为 204800
  4. 启动 IIS Admin Service  阅读全文

posted @ 2006-06-14 17:50 简单就是美 阅读(85) | 评论 (0)  编辑

Full DotNet开发 Archive

导航

统计

常用链接

随笔分类(95)

随笔档案(91)

新闻分类(6)

新闻档案(15)

积分与排名

最新评论

阅读排行榜