Click here to Skip to main content
15,899,754 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: is there any function in vb where you can retrieve if a specific removable drive or disk is write protected = true or false?? Pin
jzonthemtn25-Jul-08 7:51
jzonthemtn25-Jul-08 7:51 
QuestionWord cannot fire events Pin
Member 400654623-Jul-08 20:01
Member 400654623-Jul-08 20:01 
AnswerRe: Word cannot fire events Pin
~Khatri Mitesh~23-Jul-08 20:22
~Khatri Mitesh~23-Jul-08 20:22 
QuestionWhat exactly is an Interface? (yeah, i know i sound stupid) Pin
jacobjordan23-Jul-08 14:35
jacobjordan23-Jul-08 14:35 
AnswerRe: What exactly is an Interface? (yeah, i know i sound stupid) Pin
_Damian S_23-Jul-08 14:45
professional_Damian S_23-Jul-08 14:45 
AnswerRe: What exactly is an Interface? (yeah, i know i sound stupid) Pin
Gideon Engelberth23-Jul-08 15:30
Gideon Engelberth23-Jul-08 15:30 
GeneralRe: What exactly is an Interface? (yeah, i know i sound stupid) Pin
jacobjordan23-Jul-08 18:12
jacobjordan23-Jul-08 18:12 
GeneralRe: What exactly is an Interface? (yeah, i know i sound stupid) Pin
Jon_Boy24-Jul-08 1:40
Jon_Boy24-Jul-08 1:40 
Gideon's answer is correct.

Let's say you want to use a specific interface and that interface has 2 subs and a function:

Public Interface ISomeInterfacehere
Sub AddUser(byval vUser as string)
Sub UpdateUsers
function GetBirthDay(byval vUser as string) as datetime
End Interface

The interface is not providing any code, its just providing method signatures that you need to implement. When you "implement the interface" in your class, you write the code for what you want each sub/function to do.

Public Class TestClass
Implements ISomeInterfacehere

Public sub AddUser(byval vUser as string) As String Implements ISomeInterfacehere.AddUser
'You would add code here to add a user
End Function

Public sub UpdateUsers Implements ISomeInterfacehere.UpdateUsers
'You would add code here to update users
End Function

Public function GetBirthDay(byval vUser as string) as datetime Implements ISomeInterfacehere.GetBirthDay
'You would add code here to return the need birth date.
End Function
End Class

I free handed the example above, but it shows how to create and use the interface.
AnswerRe: What exactly is an Interface? (yeah, i know i sound stupid) Pin
supercat924-Jul-08 6:00
supercat924-Jul-08 6:00 
Questionwriting program code in excel visual basic Pin
Matthew Leggett23-Jul-08 14:28
Matthew Leggett23-Jul-08 14:28 
AnswerRe: writing program code in excel visual basic Pin
_Damian S_23-Jul-08 14:39
professional_Damian S_23-Jul-08 14:39 
GeneralRe: writing program code in excel visual basic Pin
Matthew Leggett24-Jul-08 14:47
Matthew Leggett24-Jul-08 14:47 
GeneralRe: writing program code in excel visual basic Pin
ChandraRam25-Jul-08 1:58
ChandraRam25-Jul-08 1:58 
GeneralRe: writing program code in excel visual basic Pin
Matthew Leggett25-Jul-08 2:43
Matthew Leggett25-Jul-08 2:43 
GeneralRe: writing program code in excel visual basic Pin
ChandraRam25-Jul-08 2:50
ChandraRam25-Jul-08 2:50 
GeneralRe: writing program code in excel visual basic Pin
Matthew Leggett25-Jul-08 3:10
Matthew Leggett25-Jul-08 3:10 
GeneralRe: writing program code in excel visual basic Pin
ChandraRam25-Jul-08 3:23
ChandraRam25-Jul-08 3:23 
GeneralRe: writing program code in excel visual basic Pin
Matthew Leggett25-Jul-08 3:33
Matthew Leggett25-Jul-08 3:33 
QuestionConnection String Typed Dataset 2005 Pin
dotnetme223-Jul-08 11:07
dotnetme223-Jul-08 11:07 
AnswerRe: Connection String Typed Dataset 2005 Pin
_Damian S_23-Jul-08 14:42
professional_Damian S_23-Jul-08 14:42 
GeneralRe: Connection String Typed Dataset 2005 Pin
Jon_Boy24-Jul-08 1:52
Jon_Boy24-Jul-08 1:52 
QuestionDistribute com-wrapped dll Pin
nlarson1123-Jul-08 8:29
nlarson1123-Jul-08 8:29 
AnswerRe: Distribute com-wrapped dll Pin
jzonthemtn23-Jul-08 9:02
jzonthemtn23-Jul-08 9:02 
GeneralRe: Distribute com-wrapped dll Pin
nlarson1123-Jul-08 9:07
nlarson1123-Jul-08 9:07 
GeneralRe: Distribute com-wrapped dll Pin
nlarson1123-Jul-08 9:13
nlarson1123-Jul-08 9:13 

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.