473,808 Members | 2,855 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2179
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.comwro te in message
news:%2******** ********@TK2MSF TNGP05.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.comwro te in message
news:%2******** ********@TK2MSF TNGP05.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.comwro te in message
news:eE******** ******@TK2MSFTN GP05.phx.gbl...
Jerry Spence1 wrote:
>So why did it work in VB6? What is different?

-Jerry

"Chris" <no@spam.comwro te in message
news:%2******* *********@TK2MS FTNGP05.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**********@s omewhere.comwro te in message
news:44******** *************** @ptn-nntp-reader01.plus.n et...
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.doe vents() 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.doe vents() 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**********@s omewhere.comwro te in message
news:44******** *************** @ptn-nntp-reader01.plus.n et...
>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.doe vents() 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.doe vents() statements to your code after anything that changes
the exe form's appearance.

Cheers,
Greg.
When type 'application.do events' 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**********@s omewhere.comwro te in message
news:44******** *************** @ptn-nntp-reader01.plus.n et...
>
"Greg" <Gr**@no-reply.okwrote in message
news:e9******** **@mws-stat-syd.cdn.telstra .com.au...
>"Jerry Spence1" <je**********@s omewhere.comwro te in message
news:44******* *************** *@ptn-nntp-reader01.plus.n et...
>>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.do events() 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.do events() statements to your code after anything that
changes the exe form's appearance.

Cheers,
Greg.

When type 'application.do events' 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.Applicati on.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**********@s omewhere.comwro te in message
news:44******** *************** @ptn-nntp-reader01.plus.n et...
>>
"Greg" <Gr**@no-reply.okwrote in message
news:e9******* ***@mws-stat-syd.cdn.telstra .com.au...
>>"Jerry Spence1" <je**********@s omewhere.comwro te in message
news:44****** *************** **@ptn-nntp-reader01.plus.n et...
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.doe vents() 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.d oevents() statements to your code after anything that
changes the exe form's appearance.

Cheers,
Greg.

When type 'application.do events' 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.Applicati on.DoEvents()

Cheers,
Greg
If I include System.Windows. Forms.Applicati on.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
1229
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 datasheet view, the subform is expanded and visible for every record even if the subform was invisible at the moment of the view switch. This just recently started happening and I am clueless about why. Anyone have advice on this phenomena?
2
2633
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 form is opened. After the user selects the contact from an unbound combobox I want the form to be rebound to its recordsource. I tried using form.recordsource = "Contacts" in the afterupdate event of
16
7240
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
2539
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 same design with Forms. I can create the Form without Application.Run( ), but when debugging, I can't seem to see any text that gets AppendText'ed to the form. I've done some searching, but cannot find any samples or documentation that use Forms...
12
1564
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, should disappear and the processing job (Sub CreateHTML()) starts, while showing a progress bar in the main form. The problem is that the dialogue form stays visible and does not close during execution of the job. It closes after the job is...
6
2885
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 and the coresponding 'Id' from the lookup table is to be inserted into the field of the new record. I have two simple tables. "tblPerson" is the data table. The lookup
2
9076
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" onClick="hideOrShowDivById('emailList133156'); return false;">See emails?</a>)</p> <form method="post" action="mcControlPanel.php" id="emailList133156" style="display:none;"><textarea name="formInputs">nazjeehaj@son.org,
2
2290
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 at how difficult it has become to control a form, something that was so dead easy in ASP.
13
1516
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
9600
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10628
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10373
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...
0
10113
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...
1
7651
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
6880
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
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.