Click here to Skip to main content
15,897,704 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Dialog Extension [modified] Pin
Anybloodyid8-Mar-07 8:26
Anybloodyid8-Mar-07 8:26 
GeneralRe: Dialog Extension Pin
TwoFaced8-Mar-07 9:56
TwoFaced8-Mar-07 9:56 
GeneralRe: Dialog Extension Pin
Anybloodyid8-Mar-07 10:03
Anybloodyid8-Mar-07 10:03 
GeneralRe: Dialog Extension Pin
TwoFaced8-Mar-07 10:24
TwoFaced8-Mar-07 10:24 
GeneralRe: Dialog Extension Pin
Anybloodyid8-Mar-07 10:40
Anybloodyid8-Mar-07 10:40 
QuestionPolygon GDI+ Pin
dslamb7-Mar-07 10:20
dslamb7-Mar-07 10:20 
AnswerRe: Polygon GDI+ Pin
Dave Kreskowiak15-Mar-07 2:40
mveDave Kreskowiak15-Mar-07 2:40 
QuestionOne more time Pin
cstrader2327-Mar-07 8:31
cstrader2327-Mar-07 8:31 
There is an issue that I am still struggling with.

What is the correct technique for calling back to classes in the main .exe from an assembly that is discovered only through reflection, dynamically, at runtime?

I created a sub in the assembly .dll:

Public shared me.host as object
sub initializeassembly(byval host as object)
me.host = host
end sub

and called that sub from the main.

the I called the (public) class in the main from the .dll:

host.subinmain()

However, I find that the class in the main is sometimes disposed of before it is called.

Is it proper to use this technique? What is the alternative? It was suggested to me that I could use an interface, but but I don't see how that really helps, because the name of the class in the main still has to be passed somehow to the .dll

Thanks as always for your time..




QuestionImage for a button [modified] Pin
harveyhanson7-Mar-07 6:02
harveyhanson7-Mar-07 6:02 
AnswerRe: Image for a button Pin
CPallini7-Mar-07 8:34
mveCPallini7-Mar-07 8:34 
QuestionDataBound Controls Pin
Cmania7-Mar-07 5:59
Cmania7-Mar-07 5:59 
AnswerRe: DataBound Controls Pin
Dave Kreskowiak7-Mar-07 8:00
mveDave Kreskowiak7-Mar-07 8:00 
QuestionRe: DataBound Controls Pin
Cmania11-Mar-07 23:36
Cmania11-Mar-07 23:36 
AnswerRe: DataBound Controls Pin
Dave Kreskowiak12-Mar-07 3:07
mveDave Kreskowiak12-Mar-07 3:07 
QuestionRe: DataBound Controls Pin
Cmania14-Mar-07 22:21
Cmania14-Mar-07 22:21 
AnswerRe: DataBound Controls Pin
Dave Kreskowiak15-Mar-07 2:39
mveDave Kreskowiak15-Mar-07 2:39 
QuestionAutorun in Pendrive Pin
Kumaran21cen7-Mar-07 3:35
Kumaran21cen7-Mar-07 3:35 
AnswerRe: Autorun in Pendrive Pin
Dave Kreskowiak7-Mar-07 5:51
mveDave Kreskowiak7-Mar-07 5:51 
GeneralRe: Autorun in Pendrive Pin
Kumaran21cen7-Mar-07 17:12
Kumaran21cen7-Mar-07 17:12 
GeneralRe: Autorun in Pendrive Pin
Dave Kreskowiak8-Mar-07 2:47
mveDave Kreskowiak8-Mar-07 2:47 
AnswerRe: Autorun in Pendrive Pin
Rameshkumar Miriyala10-Sep-09 22:35
professionalRameshkumar Miriyala10-Sep-09 22:35 
Question[Message Deleted] Pin
shreya1237-Mar-07 1:45
shreya1237-Mar-07 1:45 
AnswerRe: backup using vb.net Pin
Parwej Ahamad7-Mar-07 5:47
professionalParwej Ahamad7-Mar-07 5:47 
GeneralRe: backup using vb.net Pin
Parwej Ahamad9-Mar-07 6:08
professionalParwej Ahamad9-Mar-07 6:08 
GeneralRe: backup using vb.net [modified] Pin
Parwej Ahamad10-Mar-07 7:21
professionalParwej Ahamad10-Mar-07 7:21 

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.