Click here to Skip to main content
15,896,552 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionreferential classes Pin
amaneet3-Mar-07 19:00
amaneet3-Mar-07 19:00 
AnswerRe: referential classes Pin
Guffa4-Mar-07 2:04
Guffa4-Mar-07 2:04 
AnswerRe: referential classes Pin
Christian Graus4-Mar-07 2:13
protectorChristian Graus4-Mar-07 2:13 
GeneralRe: referential classes Pin
amaneet4-Mar-07 2:33
amaneet4-Mar-07 2:33 
GeneralRe: referential classes Pin
Dave Kreskowiak4-Mar-07 3:09
mveDave Kreskowiak4-Mar-07 3:09 
GeneralRe: referential classes Pin
amaneet4-Mar-07 3:25
amaneet4-Mar-07 3:25 
GeneralRe: referential classes Pin
Dave Kreskowiak4-Mar-07 11:03
mveDave Kreskowiak4-Mar-07 11:03 
Questioninterface problem Pin
amaneet3-Mar-07 18:58
amaneet3-Mar-07 18:58 
Sir/madam,
I am facing a problem in the interfaces.
I have a class named class1 which has the following implementation
class class1
implements inter
public sub abc()implements inter.a
messagebox.show("abc method")
end Sub
End class


Now i am creatin a interface
Public interface inter
sub a
end interface

Now i want the interface to implement in the window form named form1

public class form1
implements inter

private sub a()implements inter.a
end sub
now my question is ,
can i get the implementation of the function abc which is declared in class class1
without writing it here in the function a of class form1 again
If i have to redefine the implementation of the function abd of class class1
in the function a of form1 after implementing the interface in form1 class
then what's the use of the interface.
instead of the interface , i could not use the object of the class or making the function shared.
I mean what is the nead to to redine the same implementation again.
Interfaces compensates the multiple inheritance.
But the class where i am implementing the interface , i will write the code again there..

Finally what i want is , there is a funtion defined in the class .
i want to call that function in another class
without the use of object of the class or keyword shared.
i mean i don't want to write the same code again
can i make it possible using interfaces
end class

Thanks and regards
Pankaj Garg
AnswerRe: interface problem Pin
TwoFaced3-Mar-07 20:52
TwoFaced3-Mar-07 20:52 
GeneralRe: interface problem Pin
amaneet4-Mar-07 2:44
amaneet4-Mar-07 2:44 
GeneralRe: interface problem Pin
Dave Kreskowiak4-Mar-07 3:04
mveDave Kreskowiak4-Mar-07 3:04 
Generalplease check it... [modified] Pin
manni_n3-Mar-07 8:35
manni_n3-Mar-07 8:35 
GeneralRe: please check it... Pin
Dave Kreskowiak3-Mar-07 10:34
mveDave Kreskowiak3-Mar-07 10:34 
AnswerRe: please check it... Pin
Ray Cassick3-Mar-07 8:24
Ray Cassick3-Mar-07 8:24 
QuestionWord or Excel , get opened file name Pin
Muhammad Nauman Yousuf3-Mar-07 8:00
Muhammad Nauman Yousuf3-Mar-07 8:00 
AnswerRe: Word or Excel , get opened file name Pin
MartinMachac6-Mar-07 4:43
MartinMachac6-Mar-07 4:43 
QuestionDesign question, typed datasets and designer Pin
steve_rm3-Mar-07 6:05
steve_rm3-Mar-07 6:05 
AnswerRe: Design question, typed datasets and designer Pin
Dave Kreskowiak3-Mar-07 6:57
mveDave Kreskowiak3-Mar-07 6:57 
QuestionLink progress bar to a timer Pin
harveyhanson3-Mar-07 5:52
harveyhanson3-Mar-07 5:52 
AnswerRe: Link progress bar to a timer Pin
Dave Kreskowiak3-Mar-07 6:44
mveDave Kreskowiak3-Mar-07 6:44 
GeneralRe: Link progress bar to a timer Pin
harveyhanson3-Mar-07 7:12
harveyhanson3-Mar-07 7:12 
QuestionCall Keypress Pin
Anybloodyid3-Mar-07 5:14
Anybloodyid3-Mar-07 5:14 
AnswerRe: Call Keypress Pin
JUNEYT3-Mar-07 5:32
JUNEYT3-Mar-07 5:32 
AnswerRe: Call Keypress Pin
Dave Kreskowiak3-Mar-07 6:37
mveDave Kreskowiak3-Mar-07 6:37 
GeneralRe: Call Keypress Pin
Anybloodyid3-Mar-07 10:55
Anybloodyid3-Mar-07 10:55 

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.