雪糕先生 发布于 2011/01/22 19:42
当有多个域名指向同一个主机,又想调用不同广告代码如:用 www.btoss.com 域名访问该网站的话,调用A.js,用tao.btoss.com 域名访问该网站的话,调用B.js,其他域名访问则调用C.js
雪糕先生 发布于 2011/01/11 20:48
下面以动态加入一个Button按钮为例,在窗体加入一个名为Button1的按钮,下面是源代码:
Public Class Form1
'动态加入控件实例 晨彦电脑科技 WWW.BTOSS.COM
Private Sub newbutton_click(ByVal sender As System.Object, ByVal e As System.EventArgs)
MsgBox("动态加入控件实例 晨彦电脑科技 WWW.BTOSS.COM")
End Sub
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim newbutton As New Button
newbutton.Text = "newbutton"
AddHandler newbutton.Click, AddressOf newbutton_click
Me.Controls.Add(newbutton)
End Sub
End Class
引用
Public Class Form1
'动态加入控件实例 晨彦电脑科技 WWW.BTOSS.COM
Private Sub newbutton_click(ByVal sender As System.Object, ByVal e As System.EventArgs)
MsgBox("动态加入控件实例 晨彦电脑科技 WWW.BTOSS.COM")
End Sub
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim newbutton As New Button
newbutton.Text = "newbutton"
AddHandler newbutton.Click, AddressOf newbutton_click
Me.Controls.Add(newbutton)
End Sub
End Class
雪糕先生 发布于 2011/01/02 21:42
VB.NET删除文本框TextBox1.Text 中空行的方法:
'删除文本框中空行的方法 晨彦电脑科技 www.btoss.com
Dim Row1, Row2 As Integer
Dim line() As String
Dim ArList As New ArrayList
If Me.TextBox1.Text <> "" Then'当文本框为空时
Row1 = Me.TextBox1.Lines.Length - 1
For i = 0 To Row1
If Me.TextBox1.Lines(i).ToString <> "" Then'当行不为空时
ArList.Add(Trim(Me.TextBox1.Lines(i).ToString))
End If
Next
Row2 = ArList.Count - 1
ReDim line(Row2)
For i = 0 To Row2
line(i) = ArList.Item(i).ToString
Next
Me.TextBox1.Lines = line
End If
引用
'删除文本框中空行的方法 晨彦电脑科技 www.btoss.com
Dim Row1, Row2 As Integer
Dim line() As String
Dim ArList As New ArrayList
If Me.TextBox1.Text <> "" Then'当文本框为空时
Row1 = Me.TextBox1.Lines.Length - 1
For i = 0 To Row1
If Me.TextBox1.Lines(i).ToString <> "" Then'当行不为空时
ArList.Add(Trim(Me.TextBox1.Lines(i).ToString))
End If
Next
Row2 = ArList.Count - 1
ReDim line(Row2)
For i = 0 To Row2
line(i) = ArList.Item(i).ToString
Next
Me.TextBox1.Lines = line
End If
雪糕先生 发布于 2011/01/01 19:36
下面是VB.NET 修改桌面壁纸的方法:
引用
Public Class Form1
'晨彦电脑科技 www.btoss.com
Private Const SPI_SETDESKWALLPAPER As Integer = &H14
Private Const SPIF_UPDATEINIFILE As Integer = &H1
Private Const SPIF_SENDWININICHANGE As Integer = &H2
Private Declare Auto Function SystemParametersInfo Lib "user32.dll" ( _
ByVal uAction As Integer, ByVal uParam As Integer, _
ByVal lpvParam As String, ByVal fuWinIni As Integer) As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, "图片地址", 1)
End Sub
End Class
'晨彦电脑科技 www.btoss.com
Private Const SPI_SETDESKWALLPAPER As Integer = &H14
Private Const SPIF_UPDATEINIFILE As Integer = &H1
Private Const SPIF_SENDWININICHANGE As Integer = &H2
Private Declare Auto Function SystemParametersInfo Lib "user32.dll" ( _
ByVal uAction As Integer, ByVal uParam As Integer, _
ByVal lpvParam As String, ByVal fuWinIni As Integer) As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, "图片地址", 1)
End Sub
End Class
雪糕先生 发布于 2010/12/28 21:07
雪糕先生 发布于 2010/12/28 15:46
6.0RC版发布已有一段时间,从论坛反馈加上合理调整6.0正式版可以说是一个比较经典的稳定的版本了。SRS依然采用自由天空的3.0,“内存不能为”的问题已解决。但不保证100%的已兼容所有软硬件,鉴于此已在系统工具箱内置专用修复工具,方便大家调用。“安全模式启动word”问题已在RC版上努力解决,最近并无太多这方面的反馈。希望正式版不在会出现此类的问题,如有问题还请大家如实反馈。“酷狗音乐”为系统默认音乐播放软件,已关联大部音频文件。恢复RC版精简的“千千静听”方便大家声音测试(附带测试音乐一首)。另外“酷狗音乐”是属于推广软件,关于“右上方的关闭会最小化到右下方”,请大家手动设为关闭后直接退出。
雪糕先生 发布于 2010/12/27 13:07
下面是列出当前文件夹中所有JPG图片文件名的方法:
Dim str As String
For Each file In My.Computer.FileSystem.GetFiles(Application.StartupPath)
If System.IO.Path.GetExtension(file) = ".jpg" Then
str = System.IO.Path.GetFileNameWithoutExtension(file)
ListBox1.Items.Add(Application.StartupPath & str & ".jpg")
End If
Next
For Each file In My.Computer.FileSystem.GetFiles(Application.StartupPath)
If System.IO.Path.GetExtension(file) = ".jpg" Then
str = System.IO.Path.GetFileNameWithoutExtension(file)
ListBox1.Items.Add(Application.StartupPath & str & ".jpg")
End If
Next
雪糕先生 发布于 2010/12/26 20:35
写程序的时候,有时需要获取一些系统的信息资料,下面列出方法:
获取此本地计算机的名称:
获取操作系统版本:
获取此本地计算机的名称:
MsgBox (Environment.MachineName)
获取操作系统版本:
MsgBox(Val(Environment.OSVersion.Version.ToString))
雪糕先生 发布于 2010/12/16 13:24
下面是创建代码:
If File.Exists("C:\abc.txt") Then
File.Delete("C:\abc.txt")
End If
Dim sr As StreamWriter = File.CreateText("C:\abc.txt")
sr.Write("晨彦电脑科技")
sr.WriteLine("WWW.BTOSS.COM")
sr.Write("这是一个创建文本文件的例子")
sr.Close()
下面是读取代码:
引用
If File.Exists("C:\abc.txt") Then
File.Delete("C:\abc.txt")
End If
Dim sr As StreamWriter = File.CreateText("C:\abc.txt")
sr.Write("晨彦电脑科技")
sr.WriteLine("WWW.BTOSS.COM")
sr.Write("这是一个创建文本文件的例子")
sr.Close()
下面是读取代码:
雪糕先生 发布于 2010/12/06 13:58
下面是单独一个链接不显示下划线的方法:
下面是整个页面不显示下划线的方法:
引用
<a style="text-decoration:none;" href=" http://btoss.com/">这是一个链接</a>
下面是整个页面不显示下划线的方法:
雪糕先生 发布于 2010/12/02 14:17
现在都流行DIY,自己动手,丰衣足食。但大家见过自己做手术的人么?就有这么一个傻逼,自己做包皮手术,命根子差点没了!
雪糕先生 发布于 2010/11/29 22:01
昨天是今天的历史,今天是明天的历史,现实找不到穿越的方法,转眼我也就成为历史的一部分了!
这世界,谁也阻挡不了成为历史的命运!
这世界,谁也阻挡不了成为历史的命运!
分类
热门文章
- [21863]五种方法安装Windows...
- [5891]雪糕乐园小游戏集2.04版!...
- [5750]开机自动检测网络状态运行程序...
- [5424]双路由器上网的连接和设置方法
- [4733]Google提供的免费天气预...
- [4693]QQ临时会话(强制聊天)工具...
- [4623]EvaPhone - 无需注...
- [4608]ESET NOD32最新升级...
- [4487]WINDOWS 7 如何快速...
- [4039][原创]雪糕乐园-图片轮换屏...






