|
Thanks for reformatting your code. The change in the From field is probably because Google's SMTP server is changing the email headers mid-stream. The delay could be almost anywhere. My guess is that you're trying to send a very large email. The SmtpClient.SendAsync might help you with that problem.
|
|
|
|
|
I am just sending :
this is a test email
|
|
|
|
|
|
Hi
I was wondering how I can implement this function in c #
There are 2 variables, x & y:
(X^2)(4sinY)
|
|
|
|
|
You can do it in the normal way:
double Z = (X * X) * (4 * Math.Sin(Y));
|
|
|
|
|
FYI: The '^' operator is Bitwise XOR in C#.
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.”
|
|
|
|
|
Further FYI: The Math.Pow operation raises something to a power.
|
|
|
|
|
Extended Further FYI: The Math.Ker method reinforces the Math.Pow method.
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.”
|
|
|
|
|
FYI^3
... by using logarithmic and exponential functions, making it rather slow and slightly inaccurate for a simple square or cube or square root.
|
|
|
|
|
While you're at it you can also try to manually calculate Taylor series approximations to several decimal places to cut down on processing time? lol
|
|
|
|
|
I am trying to access checked Items in a checkedListbox from another method.Problem is, using "Selecteditem" and "SelectedIndex" does not work, it appears as if there aren't any items selected from the list. is there any other way I can read from the CheckedBoxList list or What am i doing wrong? Please help
|
|
|
|
|
Without seeing your code it is not easy to offer any suggestion. Normally just using myCheckedListBox.SelectedIndex should work.
Please post the code where you are trying to do it, so that people can try to help you.
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.”
|
|
|
|
|
Is this WinForms? If so, are you getting confused between SelectedItems and CheckedItems?
CheckedListBox.CheckedItemCollection checkedItems = checkedListBox.CheckedItems;
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Good spot!!
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.”
|
|
|
|
|
Lets name the checklistbox as table list.whenever an item is checked or unchecked just add them to a data table(_selectedTables).
<br />
private void tableList_ItemCheck(object sender, ItemCheckEventArgs e)<br />
{ <br />
string names = tableList.GetItemText(tableList.Items[e.Index]);<br />
<br />
CheckState currentState=e.NewValue;<br />
<br />
if (currentState.ToString() == "Checked")<br />
{<br />
DataRow newRow = _selectedTables.NewRow();<br />
_selectedTables.Rows.Add(newRow);<br />
newRow["Table"] = names;<br />
}<br />
else<br />
{<br />
DataRow[] dr = _selectedTables.Select("Table = '" + names + "'");<br />
if (dr.Length > 0)<br />
_selectedTables.Rows.Remove(dr[0]);<br />
}<br />
}<br />
And then use this method to retrieve the selection
public DataTable ReturnSelectedTables<br />
{<br />
get<br />
{<br />
return _selectedTables;<br />
}<br />
}
Hope this helps you.
|
|
|
|
|
Hi All
can anyone help me for searching in phone book? I use text file for saving data.
I want to find all names that contains the input character. I dont now how do it.
pleas give me a solution.
|
|
|
|
|
First thing you will have to do is to read the data from the file. You may want to read line by line looking for the characters in question. Alternatively you could read the entire file into some sort of List/Array/Dataset etc and then use the methods of those objects to search. Take a look at the foregoing classes to get some ideas of what is possible.
|
|
|
|
|
Which version of Windows Mobile platform you are using?
I think you can try with ContactCollection sample in MSDN [^]if it gives you any hint.
|
|
|
|
|
I want to create an application that show 2 webbrowsers control in one app like they run in 2 app.
When i use webbrowsers in 2 applicaion i think they have session but in one app it is same. How i can create 2 Tab in my app with 2webbrowsers with separate sessions?
|
|
|
|
|
amir19 wrote: create an application that show 2 webbrowsers control in one app
I am not very clear about your requirement. Are you creating any Windows application where you want to have two embeded browser controls? Then it's possible.
Anyway, please clearly specify.
|
|
|
|
|
Yes it is correct. I created two webbrowsers in a windows application. When i open same site with these ones they have same session. I want to they behave like when they are in two applications. I opened my app two times and browsers had separate sessions and cookies.
|
|
|
|
|
Amir,
Now your problem is clear to me..But it seems to be difficult one
I found few things which might consider for your design.
1. The issue you are mentioning is kinda feature of your browser. I think you are using some IE with version < 8. This similar session feature could be referred as SessionMerging. IE 8.0 is coming with a feature where you can create some new sessions (please look into this article[^]). But I am not yet sure how you are going to force that new session. Anyway, keep searching on that.
2. There might be very "optimistic" approach of creating your next WebBroser from a separate process. if you can achieve (not very sure on this) this then this might help.
Other thing, it's better to have another design keeping this limitation in mind.
Or wait for someone who can help you better.
|
|
|
|
|
It's considered bad manners around here to post your message on multiple forums. Pick one and stick with. Delete the other since it has no responses.
only two letters away from being an asset
|
|
|
|
|
|
hello frnds,
i am a beginner in c# .i was doing a task in which i had a string of datas like "a,b,c,d,e" and to which i have to enter in a dropdown list when i click a button .........
can anyone help me out in this problem.....plzzzzzzzz.....
|
|
|
|