Hi All,
Noob question that I can not seem to figure out:
I am trying to implement a screenscraper to pull data from two seperate
websites, here is some test code so far:
public static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(fals e);
MainForm mainForm = new MainForm();
//Application.Run(new MainForm());
Application.Run (mainForm);
mainForm.setStatusBarLabel("Ready");
//load prosight data
mainForm.loadProsightData();
Application.Run (mainForm);
}
Why, when debuging, does the system never go past Appplication.Run
(mainForm)?
In another method in the mainForm constructor, I load an
InternetExplorer object. I would like the statustext, and progress bar
from this object to feed and update a status bar in my mainform. If
Application.Run(mainform) would end, i could then use the
setStatusBarLabel function to update my status text..... 2 1891
> Why, when debuging, does the system never go past Appplication.Run (mainForm)?
Because you told the app to run the form. The form is running. When the form
closes, the method will continue.
Put your form-specific code in the form.
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
The man who questions opinions is wise.
The man who quarrels with facts is a fool.
"Dan McCollick" <mc*********@hotmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com... Hi All, Noob question that I can not seem to figure out:
I am trying to implement a screenscraper to pull data from two seperate websites, here is some test code so far:
public static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(fals e); MainForm mainForm = new MainForm(); //Application.Run(new MainForm()); Application.Run (mainForm); mainForm.setStatusBarLabel("Ready"); //load prosight data mainForm.loadProsightData(); Application.Run (mainForm);
}
Why, when debuging, does the system never go past Appplication.Run (mainForm)?
In another method in the mainForm constructor, I load an InternetExplorer object. I would like the statustext, and progress bar from this object to feed and update a status bar in my mainform. If Application.Run(mainform) would end, i could then use the setStatusBarLabel function to update my status text.....
Thanks Kevin, I think I certify for your Professional Numbskull title;
I called the Application.run, from the form. I will move this out into
it's own file.
Dan
Kevin Spencer wrote: Why, when debuging, does the system never go past Appplication.Run (mainForm)?
Because you told the app to run the form. The form is running. When the form closes, the method will continue.
Put your form-specific code in the form.
-- HTH,
Kevin Spencer Microsoft MVP Professional Numbskull
The man who questions opinions is wise. The man who quarrels with facts is a fool.
"Dan McCollick" <mc*********@hotmail.com> wrote in message news:11**********************@u72g2000cwu.googlegr oups.com... Hi All, Noob question that I can not seem to figure out:
I am trying to implement a screenscraper to pull data from two seperate websites, here is some test code so far:
public static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(fals e); MainForm mainForm = new MainForm(); //Application.Run(new MainForm()); Application.Run (mainForm); mainForm.setStatusBarLabel("Ready"); //load prosight data mainForm.loadProsightData(); Application.Run (mainForm);
}
Why, when debuging, does the system never go past Appplication.Run (mainForm)?
In another method in the mainForm constructor, I load an InternetExplorer object. I would like the statustext, and progress bar from this object to feed and update a status bar in my mainform. If Application.Run(mainform) would end, i could then use the setStatusBarLabel function to update my status text..... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Matt Hollingsworth |
last post by:
Hello,
Very new to python, so a noob question. When I've written stuff in
JavaScript or MEL in the past, I've always adopted the variable naming
convention of using a $ as the first character...
|
by: Ivan Shevanski |
last post by:
Alright heres another noob question for everyone. Alright, say I have a
menu like this.
print "1. . .Start"
print "2. . .End"
choice1 = raw_input("> ")
and then I had this to determine what...
|
by: AndyW |
last post by:
Hey folks.
I am trying to get a soap wsdl service working and have a bit of a
noob php programming question for it. I'm using PHP 5.x btw.
I have written a soap server that contains a...
|
by: Lang Murphy |
last post by:
I'm baaaaack... some of you answered a question I had last week. Only
problem is: I'm a dope who doesn't understand most of what y'all posted. Raw
noob when it comes to .Net and C#.
So I'm going...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |