By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,265 Members | 1,305 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,265 IT Pros & Developers. It's quick & easy.

Create control at runtime with process

P: n/a

I want to know if it's possible to create a control at runtime in a different process than the main form

There is a fonction I try but I have a message that tell me I can create control on the parent process

Public sub cmdOpenFile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOpenFile.Clic
Dim thInitForm As New Thread(AddressOf InitForm
If Not ofdDocWord.FileName = "" The
wdDoc = New Word.DocumentClas
wdApp = New Word.ApplicationClas
wdDoc = wdApp.Documents.Open(ofdDocWord.FileName
fct.FormMe = M
tbcGeneral.Enabled = Tru
End I
wdDoc = Nothin
End Tr
End su

Public Sub InitForm(
'function to init all the information to create contro
fct.Var = fct.InitVarTab(Application.StartupPath & "\Variable", wdApp
'pass the parent control to the other clas
'create the control on the parent control (here is a TabControl
End Su

someone have an idea

Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.