473,789 Members | 2,732 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Noob question

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.Ena bleVisualStyles ();
Application.Set CompatibleTextR enderingDefault (false);
MainForm mainForm = new MainForm();
//Application.Run (new MainForm());
Application.Run (mainForm);
mainForm.setSta tusBarLabel("Re ady");
//load prosight data
mainForm.loadPr osightData();
Application.Run (mainForm);

}

Why, when debuging, does the system never go past Appplication.Ru n
(mainForm)?

In another method in the mainForm constructor, I load an
InternetExplore r 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
setStatusBarLab el function to update my status text.....

May 22 '06 #1
2 1913
> Why, when debuging, does the system never go past Appplication.Ru n
(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*********@ho tmail.com> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.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.Ena bleVisualStyles ();
Application.Set CompatibleTextR enderingDefault (false);
MainForm mainForm = new MainForm();
//Application.Run (new MainForm());
Application.Run (mainForm);
mainForm.setSta tusBarLabel("Re ady");
//load prosight data
mainForm.loadPr osightData();
Application.Run (mainForm);

}

Why, when debuging, does the system never go past Appplication.Ru n
(mainForm)?

In another method in the mainForm constructor, I load an
InternetExplore r 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
setStatusBarLab el function to update my status text.....

May 22 '06 #2
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.Ru n
(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*********@ho tmail.com> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.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.Ena bleVisualStyles ();
Application.Set CompatibleTextR enderingDefault (false);
MainForm mainForm = new MainForm();
//Application.Run (new MainForm());
Application.Run (mainForm);
mainForm.setSta tusBarLabel("Re ady");
//load prosight data
mainForm.loadPr osightData();
Application.Run (mainForm);

}

Why, when debuging, does the system never go past Appplication.Ru n
(mainForm)?

In another method in the mainForm constructor, I load an
InternetExplore r 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
setStatusBarLab el function to update my status text.....


May 24 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
2138
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 (no, I don't use perl, never have). Not possible in python. What are some good options that people commonly use so that they can easily and quickly identify variable with just a glance? When I was writing stuff in SoftImage XSI/JScript, many of...
8
2145
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 option.
0
1485
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 single method in the form: SayHelloWorld( $name ) { return "Hello " .$name; };
6
1634
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 to be more specific... All I need to do at the moment is figure out how to replace our usage of .ini files as configuration files for our small, utility type apps. I'm not looking to use XML as a data stream or anything like that. Not right now,...
0
9666
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10200
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10139
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9984
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9020
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7529
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3701
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.