so i have downloaded a project of the web.

it a context menu. it allows another "menu" to be added when a file has been right clicked.

my goal is to "upload" the file to my personal webspace. (i have the ftp classes, and the ftp works awosome!).

so in the project i downloaded, there is a module, and a class.
when i compile it, it creates a dll. the dll creates a clsid. the project also comes with a reg file. i take the clsid from the new dll, and enter it in the reg file, and register it. and voila the new menu is up and functional.

NOW, i wanna tie the ftp classes and the context menu.
i had no problem doing that . all i did was "add file" and added the nessecary files.

so now in cMenu class there is a sub called 'i_got_clicked'.
what i did was create a new instance of the ftp class, and uploaded the file. works buetifully.

now i added a form. i wanted to show the progress bar on the form. so in i_got_clicked sub, i do

VB Code:
  1. load form1
  2. form1.show vbModal

Now the form is giving me some trouble. I dont know HOW to transfer the variable which holds the file PATH (needed to upload) and use that value in the form.

my best method was this:
create a text box in the form.
in the class (cMenu)
I added
VB Code:
  1. Load Form1
  2. Form1.Textbox1.text = Selection(1) 'selection is the variable that holds the path. its an array. (for multiple files.)

but that wont work cuz in my Form_load event I was doing all the progress bar updateing, and uploading the file.
now since i called Load Form1 First, it calls that event, but at this point the text box is empty and generates an error.

anyways, my MAIN QUESTION

Now i was wondering, if i could take teh ORIGNAL project without adding the ftp classes, or any forms. and generate the DLL.

then i make another project, and implement that DLL.. is that possible? like creating a new instance of that dll, and using the i_got_clicked sub to retrieve infomation.

but that would bring up the question on how to register the dll and update the reg file with the new clsid.