Linking One project form to another
hello,
i wearn't sure where abouts to post this but here we go:
basically i have made to different programs well still in vb form at the moment.
i decided i wanted to add these together.
so i went into one project and went file add project and added the otherone in. My only problem is that i am using a drop down menu and i want it so when i click on the option is want the form from the other project to appear.
usually if the 2 forms were in the same project it would usually be Whatever.Show i think thats what i would be please correct me if i'm wrong. Just how do i connect a form from one project to a form from another project so that the form from the other project will appear.
on another note if i got this working basically ones a html program and the other is a fully working on-screen keyboard. After getting one to pop-up when told to i would need it so when say i pushed the letter k n the onscreen-keyboard is would appear in the textbox on the other form. i haven't tried it because i can't get the first bit working but i doubt it would be as simple as telling it to put the text in the textbox that i named to it so for instance it might normally if it was on the same form be "Keyboard" but when linking to another project might it be "Project1(or whatever the project is calld)\Keyboard"
All help is appreciated . . . .
Thankyou
Swerve_jnr
Re: Linking One project form to another
Do you mean?
VB Code:
Private Sub Options_Click ()
If Case = "1" Then
Form2.Show
End If
End Sub
As far as the keyboard goes, I cant remember exactly but you have to mess with the keyascii function and trap the keys. When and if you reply back to this I will have an answer for you.
Re: Linking One project form to another
i need this form that is in another project to appear when i click the option in the drop down menu.
secondly this keyboard needs to be so that you push a key on the on-screen keyboard and the letter/number(whatever) will appear into the text box on the other form
btw thx for the help so far
Re: Linking One project form to another
Things would be so much simpler if everything were in just one project. Why are you using two different projects?
Re: Linking One project form to another
i would but i'm 13 and was only taught ertain things and colledge