Hello,
I am using a few forms in different projects and add therm as link in each
project.
I want to make the code so general, that they fit in every project they are
linked to.
For instance I want to set the text property of a StatusStrip
mdiProject1.sstProject1Info.Text = "Testing"
but also in Project 2 the same code must apply, so I try to use variables as
Dim strProject = "Project1""
Dim strTest = "mdi" & strProject." & "sst" & strProject & "Info.Text"
strTest = "Testing"
but this does not seem to work.
Can anyone help me how to write genereal code so that it is applicable in
more than one project?
Many thanks and greetings,
Michel
MikeD - 04 Apr 2009 14:08 GMT
> Hello,
>
[quoted text clipped - 19 lines]
> Can anyone help me how to write genereal code so that it is applicable in
> more than one project?
What do you mean by you add them as a link? Are you using VB6 or earlier?
I think these questions needs answered before anyone can help you. Except
when creating an object, I can't think of any case where you need to include
the project as part of a reference to an object.

Signature
Mike
Larry Serflaten - 04 Apr 2009 19:11 GMT
> Dim strProject = "Project1""
> Dim strTest = "mdi" & strProject." & "sst" & strProject & "Info.Text"
That looks suspiciously like VB.Net code.
If that is the case, then this is the wrong group to be asking your question.
Try microsoft.public.dotnet.languages.vb
LFS