Click here to Skip to main content
16,007,504 members
Home / Discussions / C#
   

C#

 
QuestionDataGrid Pin
Wamuti3-Sep-09 22:44
Wamuti3-Sep-09 22:44 
AnswerRe: DataGrid Pin
stancrm3-Sep-09 22:48
stancrm3-Sep-09 22:48 
GeneralRe: DataGrid Pin
Wamuti3-Sep-09 23:04
Wamuti3-Sep-09 23:04 
GeneralRe: DataGrid Pin
stancrm4-Sep-09 0:28
stancrm4-Sep-09 0:28 
AnswerRe: DataGrid Pin
Calla4-Sep-09 0:11
Calla4-Sep-09 0:11 
GeneralRe: DataGrid Pin
Greg Chelstowski4-Sep-09 1:19
Greg Chelstowski4-Sep-09 1:19 
GeneralRe: DataGrid Pin
Calla4-Sep-09 2:57
Calla4-Sep-09 2:57 
Questionforeach listview and webbrowser document completed passing variables Pin
iNutR3-Sep-09 22:35
iNutR3-Sep-09 22:35 
so ive got a webbrower which is filling in a form.
im using a listview to fill in different data for each listview item.
i call the fill webpage method, but i cant pass any variables to it, because its a documentcompleted event.
so i tried config settings, but it goes so fast that the settings dont change in time and they send the same data over and over, the amount of times is the amount of items.

so this is what i have:

private void cmd_Click(object sender, EventArgs e)
        {


foreach (ListViewItem item in lvAccounts.Items)
                {

//do my thing

Properties.Settings.Default.iEmail = iEmail;
Properties.Settings.Default.tehEmail = tehEmail;
Properties.Settings.Default.Save();
webBrowser1.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(SendMail);
webBrowser1.Navigate(myURL);

//do other stuff
}
}

private void SendMail(object sender,WebBrowserDocumentCompletedEventArgs e)
        {
            HtmlDocument document = webBrowser1.Document;

            document.GetElementById("to").SetAttribute("value", Properties.Settings.Default.iEmail);
            document.GetElementById("body").SetAttribute("value", Properties.Settings.Default.tehEmail);
             document.GetElementById("submit").InvokeMember("click");
        }


thats the only way i see that i can pass variables on.
but i really need to know how to, because it sends the same thing, and sometimes the second on the list, if the list is long and takes a long time.

i basically want it to fill in the webbrowser one time with each listview item, with the different values.

please help Big Grin | :-D
QuestionNeed Help: Converting int[] based Radix Sort to string[] based Radix Sort [modified] Pin
gamer11273-Sep-09 22:14
gamer11273-Sep-09 22:14 
AnswerRe: Need Help: Converting int[] based Radix Sort to string[] based Radix Sort Pin
Richard MacCutchan4-Sep-09 0:04
mveRichard MacCutchan4-Sep-09 0:04 
AnswerRe: Need Help: Converting int[] based Radix Sort to string[] based Radix Sort Pin
Luc Pattyn4-Sep-09 0:56
sitebuilderLuc Pattyn4-Sep-09 0:56 
QuestionPassing paramaters to Process Pin
cdpace3-Sep-09 22:12
cdpace3-Sep-09 22:12 
AnswerRe: Passing paramaters to Process Pin
stancrm3-Sep-09 22:16
stancrm3-Sep-09 22:16 
GeneralRe: Passing paramaters to Process Pin
cdpace3-Sep-09 22:23
cdpace3-Sep-09 22:23 
GeneralRe: Passing paramaters to Process Pin
stancrm3-Sep-09 22:33
stancrm3-Sep-09 22:33 
GeneralRe: Passing paramaters to Process Pin
Dave Kreskowiak4-Sep-09 2:25
mveDave Kreskowiak4-Sep-09 2:25 
GeneralRe: Passing paramaters to Process Pin
cdpace4-Sep-09 3:34
cdpace4-Sep-09 3:34 
QuestionHow to read image data in a byte array from one form to another form in C#? Pin
ali6853-Sep-09 21:12
ali6853-Sep-09 21:12 
AnswerRe: How to read image data in a byte array from one form to another form in C#? Pin
SeMartens3-Sep-09 21:34
SeMartens3-Sep-09 21:34 
AnswerRe: How to read image data in a byte array from one form to another form in C#? Pin
DaveyM693-Sep-09 22:08
professionalDaveyM693-Sep-09 22:08 
GeneralRe: How to read image data in a byte array from one form to another form in C#? Pin
N a v a n e e t h3-Sep-09 22:19
N a v a n e e t h3-Sep-09 22:19 
QuestionHow to retrieve data from database Pin
lalit143-Sep-09 20:56
lalit143-Sep-09 20:56 
AnswerRe: How to retrieve data from database Pin
lalit143-Sep-09 20:57
lalit143-Sep-09 20:57 
GeneralRe: How to retrieve data from database Pin
stancrm3-Sep-09 21:08
stancrm3-Sep-09 21:08 
GeneralRe: How to retrieve data from database Pin
lalit143-Sep-09 21:40
lalit143-Sep-09 21:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.