DotNet开发
dotnet学习
摘要: Internet快捷方式的文件格式与INI文件的是相同的
阅读全文
摘要: Dim pBmp As System.Drawing.Bitmap = System.Drawing.Image.FromHbitmap(pCmd.Bitmap)
pBmp.MakeTransparent(pBmp.GetPixel(0, 0))
pBtn.Image = pBmp
阅读全文
摘要: 不知道是我写错误了,还是。。。
你遇到这样的问题了么,欢迎留言
阅读全文
摘要: 动态创建空间
动态使用字符串创建变量
注册表操作
快速结束当前应用程序
ShellExe
阅读全文
摘要: 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
阅读全文
摘要: 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" )
阅读全文
摘要: 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)
阅读全文
摘要: 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
阅读全文
摘要: 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()
阅读全文
摘要: 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
阅读全文
摘要: 从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。
以供自己参考
阅读全文
摘要: 今天修改一下Web.config文件里的globalization 节
requestEncoding="gb2312"
responseEncoding="gb2312"
的内容,都改成原来默认的utf-8了,后来发现所有的界面都出做了,而且有些是脚本,有些是样式
阅读全文
摘要: 摘要:解决办法:
1. 关闭 IIS Admin Service 服务
2. 打开 \Windows\system32\inesrv\metabase.xml
3. 修改 ASPMaxRequestEntityAllowed 的值为自己需要的, 默认为 204800
4. 启动 IIS Admin Service
阅读全文
Full DotNet开发 Archive