ajm113

Ok, my projecthas a bug in it. Its becuase of a reference, so how do I reinstall them or perhaps fix thim fast I did a test on a diffrent project to make sure and I came to find out this is the problem. Sad

For some reason it seems when ever I run the openDialog code it seems to disable the area where it writes the information in the file.

This is what I have listed in the script:

using System.IO;
using System;
using System.Windows.Forms;
using System.Data;
using System.Drawing;

I posted the source code on here. I tested the code on a diffrent project and it works, but does not work on the project I am really working on...

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=2117146&SiteID=1



Re: Visual C# General How can I repair References?

Anonymousaaaaaaaaaaaaaaaahhhh

hi,

goto solution exploorer > refrences > right click refrences > add refrence

then look in .net as it has those refrences that youv stated! but if its external then you need to know exactly where its from e.g. website. if its a web app then usually ull find them in the com tab

gl





Re: Visual C# General How can I repair References?

Anonymousaaaaaaaaaaaaaaaahhhh

try this as a refrence

using DialogBoxs;





Re: Visual C# General How can I repair References?

Anonymousaaaaaaaaaaaaaaaahhhh

o yeah that wont work until you add this refrence

Boxs.dll

then it will!

good luck Smile





Re: Visual C# General How can I repair References?

Anonymousaaaaaaaaaaaaaaaahhhh

you sure youv set it right

//make a new instance of the dialog

OpenFileDialog OpenFileDialog1 = new OpenFileDialog();

//what format do you want to open

OpenFileDialog1.Filter = "CSV File|*.CSV|TEXT File|*.txt";

//dialog name goes here

OpenFileDialog1.Title = "Open Saved File";

//call the OpenDialog

OpenFileDialog1.ShowDialog();

hope this helps! what is happning to you shouldnt happen!




Re: Visual C# General How can I repair References?

ajm113

Fixed it I actuly hade to set the propertie to "True" if I am right.

openFile1.RestoreDirectory = true;

Gal, I hate these problems! Everytime you think it would be complexe it is really such a no brainer!