Click here to Skip to main content
15,890,282 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionvb.net 2010 desktop app value displayed in combo box Pin
classy_dog8-Jun-15 11:48
classy_dog8-Jun-15 11:48 
AnswerRe: vb.net 2010 desktop app value displayed in combo box Pin
Sascha Lefèvre8-Jun-15 18:27
professionalSascha Lefèvre8-Jun-15 18:27 
GeneralRe: vb.net 2010 desktop app value displayed in combo box Pin
Ralf Meier9-Jun-15 3:00
mveRalf Meier9-Jun-15 3:00 
QuestionDefine a property on 2 partial classes ? Pin
satc8-Jun-15 0:33
satc8-Jun-15 0:33 
AnswerRe: Define a property on 2 partial classes ? Pin
Sascha Lefèvre8-Jun-15 2:24
professionalSascha Lefèvre8-Jun-15 2:24 
GeneralRe: Define a property on 2 partial classes ? Pin
satc8-Jun-15 10:00
satc8-Jun-15 10:00 
GeneralRe: Define a property on 2 partial classes ? Pin
Sascha Lefèvre8-Jun-15 18:32
professionalSascha Lefèvre8-Jun-15 18:32 
GeneralRe: Define a property on 2 partial classes ? Pin
satc8-Jun-15 19:59
satc8-Jun-15 19:59 
I found this article :
http://forums.asp.net/t/1885808.aspx?Update+edmx+file+without+effecting+currently+generated+model[^]

Look at the last post.
I've done exactly the same thing , but doesn't work for me.
I Don't know why ?

This is my code :

Original classes ( auto generated )
VB
Partial Public Class Myobj1
    Public Property id As Integer
    Public Property prc As Decimal
    Public Property categ As Integer
End Class

My partial classes using the article suggestion :
Imports System.Collections.Generic
Imports System.ComponentModel
Imports MyProg.MyObj1

   <MetadataType(GetType(MyObj1MetaData))> Partial Public Class Myobj1
Friend NotInheritable Class Myobj1MetaData
  Implements INotifyPropertyChanged
Private privatprc As Decimal
    Public Property prc() As Decimal
    Get
        Return privatprc
    End Get
    Set(ByVal value As Decimal)
        privatprc = value
        OnPropertyChanged("prc")
    End Set
End Property

Private privatcateg As Integer
    Public Property categ() As Integer
       Get
           Return privatcateg
        End Get
        Set(ByVal value As Integer)
            privatcateg = value
            OnPropertyChanged("categ")
        End Set
    End Property

 Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
    Private Sub OnPropertyChanged(ByVal propertyc As String)
        RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyc))
    End Sub
End Class
 End Class

This code shows no error , but the InotifypropertChanged that I want to implement , it's not working at all.
GeneralRe: Define a property on 2 partial classes ? Pin
Sascha Lefèvre8-Jun-15 20:15
professionalSascha Lefèvre8-Jun-15 20:15 
QuestionVisual Basic problem Pin
Member 113991345-Jun-15 23:09
Member 113991345-Jun-15 23:09 
AnswerRe: Visual Basic problem Pin
Dave Kreskowiak6-Jun-15 4:12
mveDave Kreskowiak6-Jun-15 4:12 
AnswerRe: Visual Basic problem Pin
Mycroft Holmes7-Jun-15 14:37
professionalMycroft Holmes7-Jun-15 14:37 
QuestionI have problems when implementing INotifyPropertyChanged on Entity framework Pin
satc5-Jun-15 17:18
satc5-Jun-15 17:18 
AnswerRe: I have problems when implementing INotifyPropertyChanged on Entity framework Pin
Dave Kreskowiak6-Jun-15 4:09
mveDave Kreskowiak6-Jun-15 4:09 
Questionvb.net visibility o form objects Pin
classy_dog5-Jun-15 11:04
classy_dog5-Jun-15 11:04 
AnswerRe: vb.net visibility o form objects Pin
Richard MacCutchan5-Jun-15 21:25
mveRichard MacCutchan5-Jun-15 21:25 
GeneralRe: vb.net visibility o form objects Pin
classy_dog8-Jun-15 5:06
classy_dog8-Jun-15 5:06 
GeneralRe: vb.net visibility o form objects Pin
Richard MacCutchan8-Jun-15 5:34
mveRichard MacCutchan8-Jun-15 5:34 
Questionhow to get internet time using http request Pin
Member 107622705-Jun-15 1:34
Member 107622705-Jun-15 1:34 
AnswerRe: how to get internet time using http request Pin
Richard MacCutchan5-Jun-15 2:32
mveRichard MacCutchan5-Jun-15 2:32 
AnswerRe: how to get internet time using http request Pin
Richard Deeming5-Jun-15 2:34
mveRichard Deeming5-Jun-15 2:34 
QuestionCopying data between to SQL Servers Pin
Member 117439064-Jun-15 23:26
Member 117439064-Jun-15 23:26 
AnswerRe: Copying data between to SQL Servers Pin
Eddy Vluggen5-Jun-15 0:35
professionalEddy Vluggen5-Jun-15 0:35 
QuestionExcel 2013 VBA - Secure Website Login Pin
Member 110154484-Jun-15 8:07
Member 110154484-Jun-15 8:07 
AnswerRe: Excel 2013 VBA - Secure Website Login Pin
Member 110154488-Jun-15 7:52
Member 110154488-Jun-15 7:52 

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.