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

Visual Basic

 
QuestionAdding Intellisense/AutoComplete/Error Marking to Application? Pin
Saul Johnson7-Jul-08 8:22
Saul Johnson7-Jul-08 8:22 
AnswerRe: Adding Intellisense/AutoComplete/Error Marking to Application? Pin
jzonthemtn7-Jul-08 10:09
jzonthemtn7-Jul-08 10:09 
GeneralRe: Adding Intellisense/AutoComplete/Error Marking to Application? Pin
Saul Johnson7-Jul-08 20:21
Saul Johnson7-Jul-08 20:21 
GeneralRe: Adding Intellisense/AutoComplete/Error Marking to Application? Pin
jzonthemtn8-Jul-08 12:02
jzonthemtn8-Jul-08 12:02 
GeneralRe: Adding Intellisense/AutoComplete/Error Marking to Application? Pin
Saul Johnson8-Jul-08 19:56
Saul Johnson8-Jul-08 19:56 
QuestionMultiple interfaces in a type definition Pin
supercat97-Jul-08 6:32
supercat97-Jul-08 6:32 
AnswerRe: Multiple interfaces in a type definition Pin
Christian Graus7-Jul-08 8:20
protectorChristian Graus7-Jul-08 8:20 
GeneralRe: Multiple interfaces in a type definition Pin
supercat97-Jul-08 17:48
supercat97-Jul-08 17:48 
Christian Graus wrote:
You define a method when you write it. Why would you define something abstract about what it's properties are, when you are about to define them concretely ?


In VB.net, it is very common and useful to be able to have classes which can operate on objects without knowing exactly what they are. For example, the Array class includes a Sort function which can operate on arrays of any type of data, provided only that they implement the iComparable interface. The code for Array.Sort doesn't care what it's sorting--all it cares about is the fact that the things it's sorting know how they compare with each other.

Suppose I want a container control that includes a function to auto-arrange its contents in sorted order (assume all child controls can be compared with each other and sort nicely). The control doesn't care what the child controls are, beyond the fact that (1) they must implement the iComparable interface, and (2) they inherit from System.Windows.Forms.Control, and thus possess the position and size properties necessary to arrange them.

Most existing controls would lack an iComparable interface, but any inheritable control could be made to support it. On the other hand, I don't know how to very well specify that the contents of the container must be controls that implement the iComparable interface.

I suppose it might be possible to define an interface called iComparableControl, which inherits iComparable and includes a method myCtl which returns an object of type Control (the idea would be that a control would return itself) but that would seem rather goofy. It would be much nicer to simply specify that the container held objects which were inherited from type Control and which implemented the iComparable interface.
GeneralRe: Multiple interfaces in a type definition Pin
Daniel Grunwald7-Jul-08 23:57
Daniel Grunwald7-Jul-08 23:57 
GeneralRe: Multiple interfaces in a type definition Pin
supercat98-Jul-08 5:28
supercat98-Jul-08 5:28 
QuestionMP3 file over phone Pin
Jason_martin877-Jul-08 5:56
Jason_martin877-Jul-08 5:56 
QuestionNot able to Debug application. Pin
Binod K7-Jul-08 4:00
Binod K7-Jul-08 4:00 
AnswerRe: Not able to Debug application. Pin
Rupesh Kumar Swami7-Jul-08 4:17
Rupesh Kumar Swami7-Jul-08 4:17 
Question[Message Deleted] Pin
rohitpg7-Jul-08 2:31
rohitpg7-Jul-08 2:31 
AnswerRe: Printing Issue Pin
Rupesh Kumar Swami7-Jul-08 2:47
Rupesh Kumar Swami7-Jul-08 2:47 
GeneralRe: Printing Issue Pin
rohitpg7-Jul-08 2:55
rohitpg7-Jul-08 2:55 
GeneralRe: Printing Issue Pin
Rupesh Kumar Swami7-Jul-08 3:14
Rupesh Kumar Swami7-Jul-08 3:14 
GeneralRe: Printing Issue Pin
rohitpg7-Jul-08 3:30
rohitpg7-Jul-08 3:30 
GeneralRe: Printing Issue Pin
rohitpg7-Jul-08 4:02
rohitpg7-Jul-08 4:02 
GeneralRe: Printing Issue Pin
Duncan Edwards Jones7-Jul-08 4:52
professionalDuncan Edwards Jones7-Jul-08 4:52 
QuestionSelecting a value from downdownlist Pin
Mamphekgo Bahula7-Jul-08 1:18
Mamphekgo Bahula7-Jul-08 1:18 
AnswerRe: Selecting a value from downdownlist Pin
Guffa7-Jul-08 2:04
Guffa7-Jul-08 2:04 
QuestionCrystal report Error: Report has no tables Pin
Sipder6-Jul-08 23:52
Sipder6-Jul-08 23:52 
AnswerRe: Crystal report Error: Report has no tables Pin
Rupesh Kumar Swami7-Jul-08 0:29
Rupesh Kumar Swami7-Jul-08 0:29 
QuestionRestart WIn Service Pin
nitin_ion6-Jul-08 23:33
nitin_ion6-Jul-08 23:33 

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.