473,396 Members | 1,907 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,396 software developers and data experts.

Can I make my Form visible during a debug session?

One of the things I have always missed from VB6 days is that whilst I am
debugging code which writes to my form, I could always task switch to the
form and see the results as I went. With VB.Net you just get an hour glass
over a completely blank screen. I was hoping the VB 2005 would be better but
it isn't. Why is this? Why can't it be like it was in VB6 days?

-Jerry
Jul 15 '06 #1
8 2147
Jerry Spence1 wrote:
One of the things I have always missed from VB6 days is that whilst I am
debugging code which writes to my form, I could always task switch to the
form and see the results as I went. With VB.Net you just get an hour glass
over a completely blank screen. I was hoping the VB 2005 would be better but
it isn't. Why is this? Why can't it be like it was in VB6 days?

-Jerry

You can not see the screen because since you are in debug mode and the
code has stopped the program can not run the Paint code.

Chris
Jul 15 '06 #2
So why did it work in VB6? What is different?

-Jerry

"Chris" <no@spam.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Jerry Spence1 wrote:
>One of the things I have always missed from VB6 days is that whilst I am
debugging code which writes to my form, I could always task switch to the
form and see the results as I went. With VB.Net you just get an hour
glass over a completely blank screen. I was hoping the VB 2005 would be
better but it isn't. Why is this? Why can't it be like it was in VB6
days?

-Jerry

You can not see the screen because since you are in debug mode and the
code has stopped the program can not run the Paint code.

Chris

Jul 15 '06 #3
Jerry Spence1 wrote:
So why did it work in VB6? What is different?

-Jerry

"Chris" <no@spam.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>Jerry Spence1 wrote:
>>One of the things I have always missed from VB6 days is that whilst I am
debugging code which writes to my form, I could always task switch to the
form and see the results as I went. With VB.Net you just get an hour
glass over a completely blank screen. I was hoping the VB 2005 would be
better but it isn't. Why is this? Why can't it be like it was in VB6
days?

-Jerry
You can not see the screen because since you are in debug mode and the
code has stopped the program can not run the Paint code.

Chris


VB6 didn't allow you to do painting yourself. You can override the
onpaint event or override the paint method and do whatever you want in
them. In vb6 you didn't have this control, so the system would still
run the paint events even if debug. Now your thread that is stopped
can't run the painting.

chris
Jul 15 '06 #4

"Chris" <no@spam.comwrote in message
news:eE**************@TK2MSFTNGP05.phx.gbl...
Jerry Spence1 wrote:
>So why did it work in VB6? What is different?

-Jerry

"Chris" <no@spam.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>>Jerry Spence1 wrote:
One of the things I have always missed from VB6 days is that whilst I
am debugging code which writes to my form, I could always task switch
to the form and see the results as I went. With VB.Net you just get an
hour glass over a completely blank screen. I was hoping the VB 2005
would be better but it isn't. Why is this? Why can't it be like it was
in VB6 days?

-Jerry
You can not see the screen because since you are in debug mode and the
code has stopped the program can not run the Paint code.

Chris



VB6 didn't allow you to do painting yourself. You can override the
onpaint event or override the paint method and do whatever you want in
them. In vb6 you didn't have this control, so the system would still run
the paint events even if debug. Now your thread that is stopped can't run
the painting.

chris
Chris
>You can override the onpaint event or override the paint method and do
whatever you want in them
So can I make it behave as it did in the VB6 days?

-Jerry
Jul 16 '06 #5
"Jerry Spence1" <je**********@somewhere.comwrote in message
news:44***********************@ptn-nntp-reader01.plus.net...
One of the things I have always missed from VB6 days is that whilst I am
debugging code which writes to my form, I could always task switch to the
form and see the results as I went. With VB.Net you just get an hour glass
over a completely blank screen. I was hoping the VB 2005 would be better
but it isn't. Why is this? Why can't it be like it was in VB6 days?

-Jerry
If you've stopped the code via a breakpoint then resize your code form and
the exe form so that they both appear on your screen at the same time
without overlapping. Your exe form will be blank. In the code form, type
application.doevents() in the Immediate Window. Hey presto! Your exe form is
now populated.

If your code is running and the exe form is blank then just add
application.doevents() statements to your code after anything that changes
the exe form's appearance.

Cheers,
Greg.
Jul 17 '06 #6

"Greg" <Gr**@no-reply.okwrote in message
news:e9**********@mws-stat-syd.cdn.telstra.com.au...
"Jerry Spence1" <je**********@somewhere.comwrote in message
news:44***********************@ptn-nntp-reader01.plus.net...
>One of the things I have always missed from VB6 days is that whilst I am
debugging code which writes to my form, I could always task switch to the
form and see the results as I went. With VB.Net you just get an hour
glass over a completely blank screen. I was hoping the VB 2005 would be
better but it isn't. Why is this? Why can't it be like it was in VB6
days?

-Jerry

If you've stopped the code via a breakpoint then resize your code form and
the exe form so that they both appear on your screen at the same time
without overlapping. Your exe form will be blank. In the code form, type
application.doevents() in the Immediate Window. Hey presto! Your exe form
is now populated.

If your code is running and the exe form is blank then just add
application.doevents() statements to your code after anything that changes
the exe form's appearance.

Cheers,
Greg.
When type 'application.doevents' in the immediate window I get
'DoEvents' is not a member of 'MyApplication'

and yet the strange thing is that I can use it in my program code OK.

-Jerry


Jul 17 '06 #7
"Jerry Spence1" <je**********@somewhere.comwrote in message
news:44***********************@ptn-nntp-reader01.plus.net...
>
"Greg" <Gr**@no-reply.okwrote in message
news:e9**********@mws-stat-syd.cdn.telstra.com.au...
>"Jerry Spence1" <je**********@somewhere.comwrote in message
news:44***********************@ptn-nntp-reader01.plus.net...
>>One of the things I have always missed from VB6 days is that whilst I am
debugging code which writes to my form, I could always task switch to
the form and see the results as I went. With VB.Net you just get an hour
glass over a completely blank screen. I was hoping the VB 2005 would be
better but it isn't. Why is this? Why can't it be like it was in VB6
days?

-Jerry

If you've stopped the code via a breakpoint then resize your code form
and the exe form so that they both appear on your screen at the same time
without overlapping. Your exe form will be blank. In the code form, type
application.doevents() in the Immediate Window. Hey presto! Your exe form
is now populated.

If your code is running and the exe form is blank then just add
application.doevents() statements to your code after anything that
changes the exe form's appearance.

Cheers,
Greg.

When type 'application.doevents' in the immediate window I get
'DoEvents' is not a member of 'MyApplication'

and yet the strange thing is that I can use it in my program code OK.

-Jerry
Are you including the parentheses?
Works fine for me.Try the full path:
System.Windows.Forms.Application.DoEvents()

Cheers,
Greg
Jul 18 '06 #8

"Greg" <Gr**@no-reply.okwrote in message
news:e9**********@mws-stat-syd.cdn.telstra.com.au...
"Jerry Spence1" <je**********@somewhere.comwrote in message
news:44***********************@ptn-nntp-reader01.plus.net...
>>
"Greg" <Gr**@no-reply.okwrote in message
news:e9**********@mws-stat-syd.cdn.telstra.com.au...
>>"Jerry Spence1" <je**********@somewhere.comwrote in message
news:44***********************@ptn-nntp-reader01.plus.net...
One of the things I have always missed from VB6 days is that whilst I
am debugging code which writes to my form, I could always task switch
to the form and see the results as I went. With VB.Net you just get an
hour glass over a completely blank screen. I was hoping the VB 2005
would be better but it isn't. Why is this? Why can't it be like it was
in VB6 days?

-Jerry

If you've stopped the code via a breakpoint then resize your code form
and the exe form so that they both appear on your screen at the same
time without overlapping. Your exe form will be blank. In the code form,
type application.doevents() in the Immediate Window. Hey presto! Your
exe form is now populated.

If your code is running and the exe form is blank then just add
application.doevents() statements to your code after anything that
changes the exe form's appearance.

Cheers,
Greg.

When type 'application.doevents' in the immediate window I get
'DoEvents' is not a member of 'MyApplication'

and yet the strange thing is that I can use it in my program code OK.

-Jerry

Are you including the parentheses?
Works fine for me.Try the full path:
System.Windows.Forms.Application.DoEvents()

Cheers,
Greg
If I include System.Windows.Forms.Application.DoEvents() then, yes it does
take it OK. However, now I can't get to the form at all! (I'm using VB2005
BTW)

-Jerry
Jul 20 '06 #9

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

Similar topics

2
by: LaurenW | last post by:
Hi Folks, I have an Access 2K form that includes a normally hidden subform linked in the normal way. For many months it ran perfectly and it still does except for one thing -- when we switch to...
2
by: ColinWard | last post by:
Hi. I have a form which has as its recordsource an SQL string. The SQL String is as follows: SELECT * from CONTACTS where false. this ensures that there is no data loaded in the form when the...
16
by: TD | last post by:
This is the code under a command button - Dim ctl As Control For Each ctl In Me.Controls If ctl.BackColor <> RGB(255, 255, 255) Then ctl.BackColor = RGB(255, 255, 255) End If Next ctl
3
by: JavaConvert | last post by:
I would like to create form that simply hold textboxes that I log info to during the execution of a single-thread application. In Java, I found JFrame ideal for the task, but I can't recreate the...
12
by: Ger | last post by:
My dialogue form (sometimes partly, sometimes as a whole) remains visible during a fairly long processing job. The dialogue asks the user to enter some data for the job to follow, and after OK,...
6
by: dbuchanan | last post by:
VS2005 I've been reading all the help I can on the topic (MSDN, other) but I can't make sense of this. Desired behavior; The user is to choose from the displayed list of the databound combobox...
2
by: Jake Barnes | last post by:
Imagine I've this block of HTML: <p>Alex Schein Mailing List <input type="checkbox" name="newslettersToUse" value="133156"> (<a href="mcControlPanel.php"...
2
by: Eniac | last post by:
*argh* ... *pull hairs* I've recently started developing from ASP to ASP.NET The switch was fairly smooth since i had done some VB.net before ... then came...FORMS! :) I find it astounding...
13
by: =?Utf-8?B?RG9uYWxkIEZpc2hlcg==?= | last post by:
Hello. I'm trying to capture a controls value: a dropdown box with two selections (either "Red" or "Blue") keeps returning the value "Red" even if "Blue" is selected?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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,...

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.