|
now i feel daft. yes, that was the problem. Thanks guys, much appreciated.
Mauri
|
|
|
|
|
I URGENTLY NEED A POO, CAN SOMEBODY PLEASE DO IT FOR ME?!?!
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
|
Like I said, very urgent, no time to check the instructions.
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Is this a joke?
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Blue_Boy wrote: Is this a joke?
I guess that's why it's got a Joke icon next to it.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
8!!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
close but no... 6 comes after 5!
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Depends what base your working in! And if you've been hypnotised to miss certain numbers!
|
|
|
|
|
Blue_Boy wrote: Is this a joke?
Is this a joke? you shouldn't joke about jokes, there's nothing funny about that
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Follow the posting examples of everyone else asking questions in this forum. I'm sure you'll pick it up eventually (the technique, not the finished article)
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
Yeah, I will definitely what to avoid picking up the 'finished article' if possible. (fingers crossed for a clean landing then )
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
You definitely made a splash with that reply. The full meaning is trickling through my brain now
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
|
Done. Where do I send the test evidence?
In future though, I must insist on a fully laid out spec - I work best from storyboards and use cases. If you can supply a user for regular inspections and quality audits, then so much the better.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Pete O'Hanlon wrote: Where do I send the test evidence?
Any government agency you wish to
Pete O'Hanlon wrote: In future though, I must insist on a fully laid out spec - I work best from storyboards and use cases
Not sure about storyboards, but I'm sure you can get some video footage on the web somewhere
Pete O'Hanlon wrote: If you can supply a user for regular inspections and quality audits
There will only be a single log, thou it may break down into smaller logs in the pipeline stages
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
musefan wrote:
Any government agency you wish to
Send it to the UK - we can store it in the giant cesspit they call Parliament
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
excellent idea, then it can start to claim expenses like all it's closely related predecessors
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
"VERY URGENT!!!!!!"
Not to me it isn't! I couldn't give a sh............
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Now what does this has to do with C#?
"Rules are rules."
जय हिंद
|
|
|
|
|
fair point
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
musefan wrote: I URGENTLY NEED A POO
I don't give a crap what you need
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
Help humanity, join the CodeProject grid computing team here
|
|
|
|
|
I am encountering a problem while reading config files. The scenario is like this, I have two programs. Program A reads its configuration from a config file and program B is only used to modify the contents of the config file which A reads. The name of the config file is email.config. It is in the same directory in which program A & B resides.
The problem is that I get path of a file for attachment using open file dialog in program B. If the path points to a file in the same directory, program B works perfect while saving the data back to the config file! But if it points to a file outside the directory it throws an exception of type System.NullReferenceException.
I have placed comments in the code where the exception occurs.
Here is the code
static readonly string configFileName = "email.config";
private void saveBtn_Click(object sender, EventArgs e)
{
try
{
string serverAddr = serverAddressTxtBox.Text;
string port = portTxtBox.Text;
bool ssl = sslRadioYes.Checked == true ? true : false;
string senderAddr = senderTxtBox.Text;
string password = passwordTxtBox.Text.Length != 0 ? Encrypt(passwordTxtBox.Text) : "";
string subject = subjectTxtBox.Text;
string attachment = attachTxtBox.Text;
string messageBody = msgBodyTxtBox.Text;
var configMap = new ExeConfigurationFileMap { ExeConfigFilename = configFileName };
Configuration externalConfig = ConfigurationManager.OpenMappedExeConfiguration(configMap, ConfigurationUserLevel.None);
externalConfig.AppSettings.Settings["ServerAddress"].Value = serverAddr;
externalConfig.AppSettings.Settings["Port"].Value = port;
externalConfig.AppSettings.Settings["SSL"].Value = ssl.ToString();
externalConfig.AppSettings.Settings["Sender"].Value = senderAddr;
externalConfig.AppSettings.Settings["SenderPassword"].Value = password;
externalConfig.AppSettings.Settings["Subject"].Value = subject;
externalConfig.AppSettings.Settings["AttachmentPath"].Value = attachment;
externalConfig.AppSettings.Settings["Body"].Value = messageBody;
externalConfig.Save(ConfigurationSaveMode.Full);
Application.Exit();
}
catch (System.Exception ex)
{
MessageBox.Show("Error: " + ex.Message);
Application.Exit();
}
}
|
|
|
|