Click here to Skip to main content
15,922,015 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionautomatic shutdown of computer Pin
Member 38161214-Mar-07 2:10
Member 38161214-Mar-07 2:10 
AnswerRe: automatic shutdown of computer Pin
JUNEYT4-Mar-07 2:32
JUNEYT4-Mar-07 2:32 
AnswerRe: automatic shutdown of computer Pin
Vasudevan Deepak Kumar4-Mar-07 17:12
Vasudevan Deepak Kumar4-Mar-07 17:12 
QuestionCodeDom IdentityInequality Problem Pin
simonh234-Mar-07 0:20
simonh234-Mar-07 0:20 
AnswerRe: CodeDom IdentityInequality Problem Pin
Dave Kreskowiak4-Mar-07 3:33
mveDave Kreskowiak4-Mar-07 3:33 
QuestionRe: CodeDom IdentityInequality Problem [modified] Pin
simonh234-Mar-07 12:47
simonh234-Mar-07 12:47 
AnswerRe: CodeDom IdentityInequality Problem Pin
Dave Kreskowiak5-Mar-07 3:23
mveDave Kreskowiak5-Mar-07 3:23 
GeneralRe: CodeDom IdentityInequality Problem Pin
simonh235-Mar-07 22:40
simonh235-Mar-07 22:40 
QuestionRe: CodeDom IdentityInequality Problem Pin
simonh234-Mar-07 23:56
simonh234-Mar-07 23:56 
QuestionUsercontrol on MDI Form Pin
jazzyjboombox3-Mar-07 22:18
jazzyjboombox3-Mar-07 22:18 
AnswerRe: Usercontrol on MDI Form Pin
Dave Kreskowiak4-Mar-07 3:18
mveDave Kreskowiak4-Mar-07 3:18 
GeneralRe: Usercontrol on MDI Form Pin
jazzyjboombox4-Mar-07 21:10
jazzyjboombox4-Mar-07 21:10 
GeneralRe: Usercontrol on MDI Form Pin
Dave Kreskowiak5-Mar-07 3:21
mveDave Kreskowiak5-Mar-07 3:21 
GeneralRe: Usercontrol on MDI Form Pin
jazzyjboombox5-Mar-07 10:27
jazzyjboombox5-Mar-07 10:27 
Questiondata transfer into excel Pin
amaneet3-Mar-07 19:04
amaneet3-Mar-07 19:04 
AnswerRe: data transfer into excel Pin
Vasudevan Deepak Kumar4-Mar-07 17:12
Vasudevan Deepak Kumar4-Mar-07 17:12 
AnswerRe: data transfer into excel Pin
prakash J9-Mar-07 2:32
prakash J9-Mar-07 2:32 
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

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.