易截截图软件、单文件、免安装、纯绿色、仅160KB

c#代码转换成vb代码

public class Msg : BaseMsg
    {
        public Msg(string senderName, string message)
            : base(senderName, message)
        {
        }
        public Msg(int id1, string senderName, string message, DateTime sendtime1, bool ifread1)
            : base(id1, senderName, message, sendtime1)
        {
            ifread = ifread1;//此条消息是否已经读过
        }
}
转换成Vb代码怎么写?
VB6不支持类继承

路过

VB.NET code:

Public Class Msg
Inherits BaseMsg
Public Sub New(ByVal senderName As String, ByVal message As String)
MyBase.New(senderName, message)
End Sub
Public Sub New(ByVal id1 As Integer, ByVal senderName As String, ByVal message As String, ByVal sendtime1 As DateTime, ByVal ifread1 As Boolean)
MyBase.New(id1, senderName, message, sendtime1)
'此条消息是否已经读过
ifread = ifread1
End Sub
End Class


VB.net 可以这样做,VB的话估计不行...

学习了

学习了

引用
VB6不支持类继承


相关问答:

为什么C写DLL文件C、PB能调用VB不能调用

为什么C写的DLL文件C、PB能调用VB不能调用?
VB里为什么有的DLL直接通过引用可以使用?有的需要通过declare申明外部函数?这些DLL有什么差别?

1、为什么PB能通过DECLARE声明而VB不行?
2、如果这个dll中的 ......

C# 连接SQL数据库常用的连接字符串该如何写?

(1)string ConnString = "server=localhost;integrated security=sspi;database=pubs;";   
(2)string strConnection="user uid=sa;pwd=123456;Database=test;Server=test;Connect ......

从VB转行VB.NET~~~开始的时候如何学基础入门啊~

VB偶学得不错,现在大一,高三的时候就学VB了,现在学校里都是学C#和VB.NET的兄弟多。。。
偶要转行VB.NET了~当年学VB学了2年,对VB里面的常用函数都十分了解。
Select、If结构、For Next循环、等都了解。。。 ......

VB修改注册表

用VB怎么只针对windows自带的文件的右键添加菜单 如(.txt .doc)
这个是只针对以这两个为扩展名的文件操作
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\txtfile\shell\[随便起名]\command]
@= ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号