Get values from AssemblyInfo.vb

  • Thread starter Thread starter Greg Bell
  • Start date Start date
G

Greg Bell

Hi
I am new to DotNet.

Could some one show me how to get values from AssemblyInfo.vb.

I want to use them on several forms.

Also I would like to (programatically) retrieve the name of the Icon on a
form so that I can use it on another form

Thanks

Greg
 
Greg Bell said:
Could some one show me how to get values from AssemblyInfo.vb.

I want to use them on several forms.

Take a look at the properties of the 'Application' class.
Also I would like to (programatically) retrieve the name of the Icon on a
form so that I can use it on another form

Icons don't have names, but you can assign the same icon to multiple forms:
'Me.Icon = FooForm.Icon'.
 
Thanks Herfried,
However the Application class doesn't see to return all of the values (most
but not all). eg Title is not available.

And
Me.Icon = FormMain.Icon
Has an error:
Reference to a non shared member requires an object reference

Greg
 
Greg Bell said:
Me.Icon = FormMain.Icon
Has an error:
Reference to a non shared member requires an object reference

Instead of the type name 'FormMain' specify a variable referncing an
/instance/ of 'FormMain'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top