473,687 Members | 3,570 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 2170
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
1222
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
2623
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
7222
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
2533
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
1553
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
2878
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
9052
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
2278
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
1500
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
8527
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
8947
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
8781
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
8784
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
7621
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...
0
4321
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2964
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
2214
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1948
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.