Click here to Skip to main content
15,915,172 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionNot Supported Exception Pin
rbrad1234526-Sep-05 17:56
rbrad1234526-Sep-05 17:56 
AnswerRe: Not Supported Exception Pin
rbrad1234530-Sep-05 9:13
rbrad1234530-Sep-05 9:13 
QuestionRun time error message Pin
Larry J Williams26-Sep-05 15:39
Larry J Williams26-Sep-05 15:39 
AnswerRe: Run time error message Pin
Steve Pullan26-Sep-05 15:41
Steve Pullan26-Sep-05 15:41 
QuestionCrystal Reports Pin
Anonymous26-Sep-05 14:23
Anonymous26-Sep-05 14:23 
QuestionAre Operators (=) defined in Classes? Pin
watagal26-Sep-05 13:59
watagal26-Sep-05 13:59 
AnswerRe: Are Operators (=) defined in Classes? Pin
jo0ls26-Sep-05 15:23
jo0ls26-Sep-05 15:23 
AnswerRe: Are Operators (=) defined in Classes? Pin
rwestgraham26-Sep-05 19:43
rwestgraham26-Sep-05 19:43 
There is a critical distinction you need to make:

1) Do you want to know if the two objects are really the same? In other words, are you passing in a second reference to a single instance of the object?

2) Do you want to know if the state of two different object instances are identical. In other words, you have two separate object instances, but their property values, i.e their state, is identical.

In the first case there is a comparison operator - "Is". Example

boolTest = m_Object1 Is m_Object2

If this returns true, you have a single object instance that is being referenced by two pointers - m_Object1 and m_Object2.

In the second case, the simplest approach is to write your own validator function in the class that performs a memberwise comparison of two objects, such as

Private Function IsObjectStateIdentical(ByRef MyPoint1 As POINT, ByRef MyPoint2 As POINT) As Boolean

Dim fIsIdentical As Boolean

With MyPoint1
fIsIdentical = (.X = MyOvbject2.X)
fIsIdentical = fIsIdentical And (.Y = MyObject2.Y)
End With
Return fIsIdentical

End Function
Questionbackground music with user control Pin
Member 225908026-Sep-05 12:19
Member 225908026-Sep-05 12:19 
AnswerRe: background music with user control Pin
Dave Kreskowiak26-Sep-05 12:37
mveDave Kreskowiak26-Sep-05 12:37 
QuestionSize? Boolean vs Byte Pin
watagal26-Sep-05 12:06
watagal26-Sep-05 12:06 
AnswerRe: Size? Boolean vs Byte Pin
Dave Kreskowiak26-Sep-05 12:28
mveDave Kreskowiak26-Sep-05 12:28 
AnswerRe: Size? Boolean vs Byte Pin
jo0ls26-Sep-05 16:06
jo0ls26-Sep-05 16:06 
GeneralRe: Size? Boolean vs Byte Pin
watagal27-Sep-05 3:07
watagal27-Sep-05 3:07 
GeneralRe: Size? Boolean vs Byte Pin
Dave Kreskowiak27-Sep-05 11:55
mveDave Kreskowiak27-Sep-05 11:55 
QuestionOverriding Methods Question Pin
watagal26-Sep-05 8:14
watagal26-Sep-05 8:14 
AnswerRe: Overriding Methods Question Pin
Dave Kreskowiak26-Sep-05 9:09
mveDave Kreskowiak26-Sep-05 9:09 
GeneralRe: Overriding Methods Question Pin
watagal26-Sep-05 11:20
watagal26-Sep-05 11:20 
GeneralRe: Overriding Methods Question Pin
watagal26-Sep-05 11:51
watagal26-Sep-05 11:51 
GeneralRe: Overriding Methods Question Pin
Dave Kreskowiak26-Sep-05 12:00
mveDave Kreskowiak26-Sep-05 12:00 
QuestionRe: Overriding Methods Question Pin
shoaibnawaz26-Sep-05 12:01
shoaibnawaz26-Sep-05 12:01 
AnswerRe: Overriding Methods Question Pin
Dave Kreskowiak26-Sep-05 12:33
mveDave Kreskowiak26-Sep-05 12:33 
Questionhow to access datagrid values in textbox using properties Pin
ashima1426-Sep-05 8:13
ashima1426-Sep-05 8:13 
QuestionTransfering data from excel to access Pin
LAYEEQ AHMED KHAN26-Sep-05 7:59
LAYEEQ AHMED KHAN26-Sep-05 7:59 
QuestionFind RichTextBox BackColor in VB.NET Pin
lupus canus26-Sep-05 7:14
lupus canus26-Sep-05 7:14 

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.