Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Code suitable for different projects

1 view
Skip to first unread message

Michel

unread,
Apr 4, 2009, 8:28:08 AM4/4/09
to
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

unread,
Apr 4, 2009, 9:08:51 AM4/4/09
to

"Michel" <Mic...@discussions.microsoft.com> wrote in message
news:5FB378F5-BFAB-4F95...@microsoft.com...


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.

--
Mike

Larry Serflaten

unread,
Apr 4, 2009, 2:11:32 PM4/4/09
to

"Michel" <Mic...@discussions.microsoft.com> wrote

> 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


0 new messages