Click here to Skip to main content
15,900,461 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerResolved: Drastical performance loss Pin
Sonhospa29-Aug-09 22:01
Sonhospa29-Aug-09 22:01 
QuestionHow to use activelock on http://www.activelocksoftware.com Pin
timnboys29-Aug-09 8:19
timnboys29-Aug-09 8:19 
AnswerRe: How to use activelock on http://www.activelocksoftware.com Pin
Henry Minute29-Aug-09 8:30
Henry Minute29-Aug-09 8:30 
GeneralRe: How to use activelock on http://www.activelocksoftware.com Pin
Luc Pattyn29-Aug-09 8:36
sitebuilderLuc Pattyn29-Aug-09 8:36 
GeneralRe: How to use activelock on http://www.activelocksoftware.com Pin
Henry Minute29-Aug-09 9:31
Henry Minute29-Aug-09 9:31 
GeneralRe: How to use activelock on http://www.activelocksoftware.com Pin
Dave Kreskowiak29-Aug-09 11:48
mveDave Kreskowiak29-Aug-09 11:48 
GeneralRe: How to use activelock on http://www.activelocksoftware.com Pin
Henry Minute29-Aug-09 12:18
Henry Minute29-Aug-09 12:18 
QuestionHow to generate MustOverride Property using CodeDOM? Pin
gutek629-Aug-09 4:34
gutek629-Aug-09 4:34 
Hi,
I've got a problem with generating MustOverride Property.
My code looks like this:
Dim p1t1 As New CodeMemberProperty
     p1t1.Name = "myProperty"
     p1t1.Type = New CodeTypeReference(GetType(Integer))
     p1t1.Attributes = MemberAttributes.Abstract Or _
                       MemberAttributes.Public


What I've got after GenerateCodeFromCompileUnit() is:
Public MustOverride Property myProperty() As Integer
     End Property


It's not ok because in VB it should looks like this:
Public MustOverride Property myProperty() As Integer


When I'm doing the same with a method everything is ok.
My code:
Dim m1t1 As New CodeMemberMethod
     m1t1.Name = "myMethod"
     m1t1.ReturnType = New CodeTypeReference(GetType(System.Void))
     m1t1.Attributes = MemberAttributes.Abstract Or _
                       MemberAttributes.Public

And generated code:
Public MustOverride Sub myMethod()


Of course I'm placing these members in a class declaration, that is
CodeTypeDeclaration object and of course this class declaration has attribute TypeAttributes.Abstract:

Dim t1 As New CodeTypeDeclaration
     t1.Name = "Class1"
     t1.IsClass = True
     t1.TypeAttributes = Reflection.TypeAttributes.Abstract Or _
                         Reflection.TypeAttributes.Class Or _
                         Reflection.TypeAttributes.Public


Please help me.

Thanks in advance
QuestionHow to connect to XP machine using vb.net Pin
Paramhans Dubey29-Aug-09 1:22
professionalParamhans Dubey29-Aug-09 1:22 
AnswerRe: How to connect to XP machine using vb.net Pin
Dave Kreskowiak29-Aug-09 4:45
mveDave Kreskowiak29-Aug-09 4:45 
GeneralRe: How to connect to XP machine using vb.net Pin
Paramhans Dubey30-Aug-09 19:34
professionalParamhans Dubey30-Aug-09 19:34 
GeneralRe: How to connect to XP machine using vb.net Pin
Dave Kreskowiak31-Aug-09 0:58
mveDave Kreskowiak31-Aug-09 0:58 
GeneralRe: How to connect to XP machine using vb.net Pin
LloydA11131-Aug-09 15:34
LloydA11131-Aug-09 15:34 
QuestionHow we Drawing a Chart in Form Pin
faravani29-Aug-09 1:16
faravani29-Aug-09 1:16 
AnswerRe: How we Drawing a Chart in Form Pin
Luc Pattyn29-Aug-09 1:21
sitebuilderLuc Pattyn29-Aug-09 1:21 
QuestionMissingMethodException mobile aplication Pin
Anubhava Dimri29-Aug-09 1:10
Anubhava Dimri29-Aug-09 1:10 
QuestionHow to get XPath to XML node from treeview node? Pin
korell28-Aug-09 8:19
korell28-Aug-09 8:19 
AnswerRe: How to get XPath to XML node from treeview node? Pin
DidiKunz31-Aug-09 3:01
DidiKunz31-Aug-09 3:01 
AnswerRe: How to get XPath to XML node from treeview node? Pin
korell31-Aug-09 4:46
korell31-Aug-09 4:46 
QuestionCrystal Reports Dynamic Image from DB Pin
eddieangel28-Aug-09 6:42
eddieangel28-Aug-09 6:42 
QuestionUpdate button is greyed out Pin
Buggedforever27-Aug-09 23:19
Buggedforever27-Aug-09 23:19 
AnswerRe: Update button is greyed out Pin
DoctorMick28-Aug-09 0:36
DoctorMick28-Aug-09 0:36 
AnswerRe: Update button is greyed out Pin
Jay Royall28-Aug-09 0:38
Jay Royall28-Aug-09 0:38 
AnswerRe: Update button is greyed out Pin
Dave Kreskowiak28-Aug-09 3:20
mveDave Kreskowiak28-Aug-09 3:20 
GeneralRe: Update button is greyed out Pin
Steven J Jowett28-Aug-09 4:47
Steven J Jowett28-Aug-09 4:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.