|
how do i send an e-mail using outlook 2000
|
|
|
|
|
just configure ur outlook for sendning and receiving mails in ur system. this has nothing to do with the coding part. after u finish configuring outlook in ur system whenever u click a link to mail it will open the outlook compose mail window.
Vipin
|
|
|
|
|
Sorry, I want to send mail via my c# application using outlook 2000.
|
|
|
|
|
hello, am writting a code for windows application, i want to validate the email i enter in a textbox using code not validators,
what is the suitable code to ensure the format of the email i enter
Thanks alot
Hamody
|
|
|
|
|
probably this code might help u.
private void textboxEmail_TextChanged(object sender, System.EventArgs e)
{
if (this.textboxEmail.Text.IndexOf("@") != -1 && this.textboxEmail.Text.IndexOf(".") != -1)
{
/* you entered a correct e-mail address */
this.textboxEmail.BackColor=Color.Yellow;
this.textboxEmail.ForeColor=Color.Blue;
this.textboxEmail.Font=new Font("Arial", 10, FontStyle.Underline);
}
else
{
// back to old/previous status of the TextBox
this.textboxEmail.BackColor=Color.White;
this.textboxEmail.ForeColor=Color.Black;
this.textboxEmail.Font=new Font("Arial", 10, FontStyle.Regular);
}
}
This is the method
private void textboxEmail_Validating(object sender, System.ComponentModel.CancelEventArgs e)
{
Regex emailregex = new Regex("(?[^@]+)@(?.+)");
Match mmatch = emailregex.Match(this.textboxEmail.Text);
if ( mmatch.Success )
{
MessageBox.Show("UserName: " + mmatch.Groups["user"].Value+"\n"+"HostName: " + mmatch.Groups["host"].Value,"E-Mail Information");
this.statusBar1.Text=""; //clear StatusBar
}
else
{
MessageBox.Show("invalid e-mail address...","E-Mail Information");
e.Cancel=true; // don't go away from the TextBox, try again
}
}
Vipin
|
|
|
|
|
|
In a windows-based application, how can we access the memebers(controls) of form1.cs class in another class within the same namespace.i need to update the controls with the data received in the other .cs class
Thanx in advance.
|
|
|
|
|
Hello,
If you have the instance of form1 in your other class.
You have to set the Members to public.
public otherclass()
{
this.myform1instance.member1.myproperty.value = ???;
}
If not, let us know more about your application.
All the best,
Martin
|
|
|
|
|
How can I do in C#, lets say inside a click event, a cmd that restarts the application, but updates it through the ClickOnce of the VS?
|
|
|
|
|
Hello. Is there any way to create suspended process in .NET as it can be done by passing to WinAPI function CreateProcess() CREATE_SUSPENDED flag?
I cann't belive i'd use DLL import to implement this functionallity...
|
|
|
|
|
Hello
As you see i want to show "Yes No YesToAll Cancel" buttons on MessageBox dialog window.
How can i do this in C# ?
|
|
|
|
|
i think you have to design your own form with these buttons on it and then you can use this form as message box.
rahul
|
|
|
|
|
See this:
http://www.codeproject.com/cs/miscctrl/MessageBoxManager.asp
|
|
|
|
|
in C# Windows,
i have a button and a textbox
when i enter a name in my textbox and click on my button
it saves the name in a Database
i would like my button to work when i press the Return key(Enter)
so dont have to click it.
is there a property for this if not how do can i code this.
hope you understand
thanks
regards paula
|
|
|
|
|
Make the button the default, or 'accept' button in the form.
Regards
Angel
*********************************************
The sooner you fall behind, the longer you have to catch up.
|
|
|
|
|
Or...
use the event "KeyDown" from textbox.
and then just use this:
private void textbox_KeyDown(object sender, KeyEventArgs e)
{
if(e.KeyCode == Keys.Enter)
{
button.PerformClick();
}
}
|
|
|
|
|
if (e.KeyChar == 13)<br />
{<br />
Button1_Click(sender,e);<br />
}
|
|
|
|
|
Hi,
Is there any possibilities to create DataSet/DataTable from ListView Control with out doing looping and reading individual cells. If so please give me an example.
Thanks....
|
|
|
|
|
Not that I know of.
Are you doing this for a one-off or lots of times. If for a one-off just do the looping. If not then if you must use a dataset have a rethink of your architecture.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
I need to read all the items. So using loop is not good idea thats why i'm looking to convert entire ListView into DataSet. Can any one help out.
|
|
|
|
|
I understand you need to read all items but do you need to do this everytime the application is run or can you do it just once "by hand". E.g. does the data change everytime you run the program so that you need to update the dataset everytime you run the program. If this is the case then the only way I can think of is if you do it in a loop, iterating through all the ListViewItems.
The Welsh will always support two teams: The Welsh, and anyone playing England
|
|
|
|
|
Hello!
I have programmed an MS Office add-in that lets the user push a button, enter some information in a custom dialog and then print the e-mail. My problem is that I want to give the user the possibility to select whether he/she prints the e-mail with or without attachments.
Any idea how to do this so that the user doesn't have to change the setting manually in the print dialog beforehand? It should work in Outlook 2000 and Outlook 2003 at least.
TIA, Mario
-- modified at 3:57 Thursday 20th July, 2006
|
|
|
|
|
Hi,
I'm using Microsoft's DAAB, and I am just a bit confused as to what variables I must "dereference".
I have the following peace of code (not all code is shown):
Database db = DBHelper.GetDefaultDatabase;
using (dbCommand = db.GetStoredProcCommand("sp_OrderTypes_GetAllOrderTypes"))
{
using (rdr = db.ExecuteReader(dbCommand))
{
while (rdr.Read())
{
....
}
}
}
The rdr and dbCommand variables are taken care of by the using block, but what about the db variable? Is it ok as it is? Don't I have to close or "dereference" it anywhere?
Please can someone help with my confusion.
Thanks
ma se
|
|
|
|
|
If the Database type provides a Close or Dispose method or something similar you should definitely call it.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
www.troschuetz.de
|
|
|
|
|
hi,
Just wanted to ask how to make the windows service interactive in .net 2.0, can any body help... I have changed the registry value to type to 272(dec) in LocalMachine\SYSTEM\CurrentControlSet\Services\SERVICENAME registry key... but still its not working... can any body help please...
Thanks,
Regards,
Waqas
|
|
|
|