MLyons10

I have an aboutbox, which has the supplied fields, description, copyright, application name, company, etc. When I run the application though, the fields are blank. Where does it pull this data from Any help and information would be greatly appreciated, as I have scoured the Visual Studio program, and can't figure it out.

Thanks,


Re: Visual C# Express Edition Where does the AboutBox pull the data from?

Vaughn Friesen

It's the assembly information. Click Project->Properties, choose Application, and there's a button that says Assembly Information. Just edit the stuff in that dialog.



Re: Visual C# Express Edition Where does the AboutBox pull the data from?

MLyons10

O.K., I think I have a problem then...lol... I did enter all the information in there, that's why I was confused and thought maybe there was somewhere else it pulled this data from... Um, what can the problem be then Now I'm really confused... Any help or information would be greatly appreciated.

Thanks Again,





Re: Visual C# Express Edition Where does the AboutBox pull the data from?

Vaughn Friesen

Is the about box part of the same project, or a different one (e.g. a class library)



Re: Visual C# Express Edition Where does the AboutBox pull the data from?

MLyons10

Thanks for your response, I'm not sure what a class library is. Here's what I did to add it.

Project > Add Windows Form

Selected "About Box", hit "Add".

Now I had an aboutbox with the fields listed on it, etc. I changed it around, replacing the picture, etc. Is this the wrong way to do it It seemed so straight forward I though "How can I screw this up... " Well, apparently I can...lol

Thanks Again, any help or information would be greatly appreciated.




Re: Visual C# Express Edition Where does the AboutBox pull the data from?

MLyons10

Oh, and I did add it to my project, I didn't start a new project for the aboutbox or anything. I hope that answers your questions, if not just let me know.

Thanks,




Re: Visual C# Express Edition Where does the AboutBox pull the data from?

Vaughn Friesen

Is the picture all you changed That shouldn't mess it up.



Re: Visual C# Express Edition Where does the AboutBox pull the data from?

MLyons10

I changed the picture and I rearranged the text fields so that they were lined up properly in relation to the new picture. This is all that I did. I don't understand what the problem could be...

I hope that helps.




Re: Visual C# Express Edition Where does the AboutBox pull the data from?

MLyons10

I just wanted to make a follow up post to see if anyone knew why
I might be having this problem. Any help and information would be greatly appreciated.

Thanks,




Re: Visual C# Express Edition Where does the AboutBox pull the data from?

jrboddie

Is this the same application where you have AboutBoxes calling other AboutBoxes

Perhaps that has something to do with it





Re: Visual C# Express Edition Where does the AboutBox pull the data from?

MLyons10

Thank you very much, this is the aboutbox that allows the user to open other aboutboxes via buttons. Hm, I wonder why that would screw up the aboutboxes ability to pull the data... Hm,...




Re: Visual C# Express Edition Where does the AboutBox pull the data from?

jrboddie

Perhaps you accidentally changed code in the AboutBox1.cs file

That is where the code resides that picks up the data. You could compare your code with the code that is produced with a new aboutbox in a new project. Or you could post it here and I could take a look at it.





Re: Visual C# Express Edition Where does the AboutBox pull the data from?

Figo Fei - MSFT

Hi,

You can see the code in AboutBox.cs:

        public AboutBox1()

        {

            InitializeComponent();

 

            //   Initialize the AboutBox to display the product information from the assembly information.

            //   Change assembly information settings for your application through either:

            //   - Project->Properties->Application->Assembly Information

            //   - AssemblyInfo.cs

            this.Text = String.Format("About {0}", AssemblyTitle);

            this.labelProductName.Text = AssemblyProduct;

            this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion);

            this.labelCopyright.Text = AssemblyCopyright;

            this.labelCompanyName.Text = AssemblyCompany;

            this.textBoxDescription.Text = AssemblyDescription;

        }

This will make you clear.

Thanks

 






Re: Visual C# Express Edition Where does the AboutBox pull the data from?

MLyons10

Thank you very much, I took a look at the code for the AboutBox, and all the text you specified is there... The only difference is that line 1 and 2 are flipped. I tried putting the lines in the order you had, and still nothing shows up in the AboutBox.

public AboutSoftware()
{
InitializeComponent();

// Initialize the AboutBox to display the product information from the assembly information.
// Change assembly information settings for your application through either:
// - Project->Properties->Application->Assembly Information
// - AssemblyInfo.cs
this.labelProductName.Text = AssemblyProduct;
this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion);
this.labelCopyright.Text = AssemblyCopyright;
this.labelCompanyName.Text = AssemblyCompany;
this.textBoxDescription.Text = AssemblyDescription;

Any help and information would be greatly appreciated.

Thanks Again,




Re: Visual C# Express Edition Where does the AboutBox pull the data from?

Figo Fei - MSFT

Hi,

First, you should check if all the controls name are same as what code types.

Then, make sure your assembly information is not blank. (about how to set assembly information, see http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1307286&SiteID=1)

Thanks