473,408 Members | 1,762 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

How do I start debugging this?

I have a C# Windows Forms based application. I have a form which serves
as a menu (it has push buttons on it). When I click a push button, it
launches a window with this code:

private void button1_Click(object sender, System.EventArgs e)
{
ImportDataFrom formImportData = new formImportdata();
formImportData.Show();
}

When the code hits the .Show() call, the entire developer studio
freezes. I tried to step into it but no luck. I did step into the
constructor for formImportdata and it seems to have initialized all of
the controls and everything ok. Where do I start here?

Also, it doesn't freeze if I run the program, only under the debugger.

Should it matter that I copied the project from a different machine onto
this one?

Also, the main menu form opens other forms allright and they work fine,
so something about this one seems to be siezing up devstudio.

Thank you!

Dave

Meet people for friendship, contacts,
or romance using free instant messaging software! See a picture you
like? Click once for a private conversation with that person!

www.SEN.us

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #1
3 991

try this instead:

formImportData.ShowDialog();

--Richard
-----Original Message-----
I have a C# Windows Forms based application. I have a form which servesas a menu (it has push buttons on it). When I click a push button, itlaunches a window with this code:

private void button1_Click(object sender, System.EventArgs e){
ImportDataFrom formImportData = new formImportdata();
formImportData.Show();
}

When the code hits the .Show() call, the entire developer studiofreezes. I tried to step into it but no luck. I did step into theconstructor for formImportdata and it seems to have initialized all ofthe controls and everything ok. Where do I start here?

Also, it doesn't freeze if I run the program, only under the debugger.
Should it matter that I copied the project from a different machine ontothis one?

Also, the main menu form opens other forms allright and they work fine,so something about this one seems to be siezing up devstudio.
Thank you!

Dave

Meet people for friendship, contacts,
or romance using free instant messaging software! See a picture youlike? Click once for a private conversation with that person!
www.SEN.us

*** Sent via Developersdex http://www.developersdex.com ***Don't just participate in USENET...get rewarded for it!
.

Nov 15 '05 #2
Try

private void button1_Click(object sender, System.EventArgs e)
{
ImportDataFrom formImportData = new ImportDataFrom(); // not "new
formImportData"
formImportData.Show();
}

--
The hotmail account will most likely not be read, so please respond only
to the news group.
Nov 15 '05 #3
Thank you Richard! That worked!

I'll go and read up on the difference between Show() and ShowDialog()
now.

David

Meet people for friendship, contacts,
or romance using free instant messaging software! See a picture you
like? Click once for a private conversation with that person!

www.SEN.us

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #4

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

Similar topics

0
by: Edelwater | last post by:
Hello, I have (possibly) a framework related problem Or VS specific : Error while trying to run the project: unable to start debugging on the server. could not start asp.net or atl debugging....
0
by: J. Hazell | last post by:
I am attempting to start debugging an aspx page. IE is installed in the default location. Whenever I start the debugging process it fails with the error message. Cannot start debugging. Unable...
11
by: Claude seraphin | last post by:
I'am having this message while trying to rune my asp.net app on win3k server. I have set debug="true" in <compilation section in my web.config . Can anyone help me? Thanks in advance
1
by: Coder | last post by:
Hi everyone ! I've prblems starting debugging a web project. A win project works just fine, but a web project refuses. I can attach to the the process, and that works, but when trying to start up...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichč but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
5
by: Bruce Schechter | last post by:
I just started to develop an ASP.NET application in vs.net 2003 . But each time I try to execute the application (which is basically empty so far), I get a dialog box titled "Microsoft Development...
6
by: Bob Rock | last post by:
Hello, I'm using an executable (for which I do not have the source code nor the pdb file) as the startup application to load a DLL I'm writing and need to debug. If I try to debug the DLL I...
1
markmcgookin
by: markmcgookin | last post by:
Hi Folks, this is a problem I had a few days ago, and I was able to solve it, but I thought I'd post the solution I found here incase anyone has a similar problem! I found this stuff on an MSNDN...
3
by: =?Utf-8?B?SmVmZnJleQ==?= | last post by:
Just started to test a VB.net 2002 project for ASP.net application. After successfully installed the VS.net 2002 and tested the IIS 5.1 on XP Pro SP2 for some classical ASP programs, I am starting...
4
by: ian | last post by:
A few weeks ago I was able to run remote debugging from my local machine (VS 2005 XP sp2) but now I get the following message: unable to start debugging on the web server. logon failure: unknown...
1
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...
0
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,...
0
Oralloy
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,...
0
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...
0
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...
0
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...
0
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,...
0
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...
0
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...

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.