Click here to Skip to main content
15,890,123 members
Home / Discussions / C#
   

C#

 
GeneralRe: An API Question ? Pin
Mohammad Dayyan23-Dec-08 17:03
Mohammad Dayyan23-Dec-08 17:03 
GeneralRe: An API Question ? Pin
N a v a n e e t h23-Dec-08 17:10
N a v a n e e t h23-Dec-08 17:10 
AnswerRe: An API Question ? Pin
N a v a n e e t h23-Dec-08 17:01
N a v a n e e t h23-Dec-08 17:01 
QuestionPostscript custom page size settings can not be remembered Pin
zhouql0523-Dec-08 16:43
zhouql0523-Dec-08 16:43 
QuestionWebBrowser and threads Pin
Matthew Klein23-Dec-08 13:33
Matthew Klein23-Dec-08 13:33 
GeneralRe: WebBrowser and threads Pin
Luc Pattyn23-Dec-08 13:55
sitebuilderLuc Pattyn23-Dec-08 13:55 
AnswerRe: WebBrowser and threads [modified] Pin
N a v a n e e t h23-Dec-08 16:45
N a v a n e e t h23-Dec-08 16:45 
AnswerRe: WebBrowser and threads Pin
Matthew Klein29-Dec-08 11:35
Matthew Klein29-Dec-08 11:35 
Thank you both! The way you two explained it made me realize "what I was missing."

In case this will help anyone else, I got my multithreading web automation to work by creating a new Form inside my void Run(); method, then attaching a new WebBrowser to it, and using that WebBrowser to perform my automatioins.
_WBForm = new Form();
_WBForm.Size = new System.Drawing.Size(410, 310);
_WBForm.Visible = false;
_WBForm.Resize += new EventHandler(_WBForm_Resize);

_WB = new WebBrowser();
_WBForm.Controls.Add(_WB);
_WB.Location = new System.Drawing.Point(5, 5);
_WB.Size = new System.Drawing.Size(400, 300);

While this didn't allow me to view the WebBrowser on my main form, it does allow me to actually multithread my search requests by having multiple webbrowser objects. I added a property to allow me to view what the thread was doing if I wanted to:
public bool ShowBrowser
{
    get
    {
        if(_WBForm != null && _WBForm.Visible)
            return true;
        else
            return false;
    }
    set
    {
        if (_WBForm != null)
        {
            if(value)
                _WBForm.Show();
            else
                _WBForm.Hide();
        }
    }
}


Thanks again all!
QuestionWhere to buy apps and programs from programmers? Pin
kevindill23-Dec-08 12:26
kevindill23-Dec-08 12:26 
AnswerRe: Where to buy apps and programs from programmers? Pin
PIEBALDconsult23-Dec-08 12:28
mvePIEBALDconsult23-Dec-08 12:28 
AnswerRe: Where to buy apps and programs from programmers? Pin
Not Active23-Dec-08 12:38
mentorNot Active23-Dec-08 12:38 
AnswerRe: Where to buy apps and programs from programmers? Pin
Christian Graus23-Dec-08 13:22
protectorChristian Graus23-Dec-08 13:22 
AnswerRe: Where to buy apps and programs from programmers? Pin
Matthew Klein23-Dec-08 13:34
Matthew Klein23-Dec-08 13:34 
GeneralRe: Where to buy apps and programs from programmers? Pin
Christian Graus23-Dec-08 13:38
protectorChristian Graus23-Dec-08 13:38 
QuestionHelp with a pathfinding problem Pin
xnastyx23-Dec-08 10:26
xnastyx23-Dec-08 10:26 
AnswerRe: Help with a pathfinding problem Pin
Not Active23-Dec-08 12:34
mentorNot Active23-Dec-08 12:34 
JokeRe: Help with a pathfinding problem Pin
Luc Pattyn23-Dec-08 14:01
sitebuilderLuc Pattyn23-Dec-08 14:01 
QuestionHow to add data from textboxes to the Gridview in C# Pin
Yasir Imran Uppal23-Dec-08 8:40
Yasir Imran Uppal23-Dec-08 8:40 
AnswerRe: How to add data from textboxes to the Gridview in C# Pin
Christian Graus23-Dec-08 8:52
protectorChristian Graus23-Dec-08 8:52 
AnswerRe: How to add data from textboxes to the Gridview in C# Pin
faizicrazy23-Dec-08 23:28
faizicrazy23-Dec-08 23:28 
QuestionUpdating Dataset Pin
ArielR23-Dec-08 6:57
ArielR23-Dec-08 6:57 
AnswerRe: Updating Dataset Pin
Dave Kreskowiak23-Dec-08 8:04
mveDave Kreskowiak23-Dec-08 8:04 
GeneralRe: Updating Dataset Pin
ArielR23-Dec-08 8:20
ArielR23-Dec-08 8:20 
AnswerRe: Updating Dataset Pin
Christian Graus23-Dec-08 8:06
protectorChristian Graus23-Dec-08 8:06 
GeneralRe: Updating Dataset Pin
ArielR23-Dec-08 8:30
ArielR23-Dec-08 8:30 

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.