473,396 Members | 1,996 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.

debug window on a form

I would like to replicate the debug window on a form so I can easily
pass usefull info to users on long processes. Is there a simple way
to do this.

thanks
Nov 12 '05 #1
4 4458
Hi,

What do you mean by "Debug window"
Immediate window? To be able to write there something like when you use
debug.print?

And what is the "Long process"?
A query which takes long time to run or some VBA code who does a lot of
processing?

In a query, you can use a custom function, but this usually is not
reccomended, because will make the query much slower. But this actually
depends on what you want.

The function you use in the query can update a label or the content of a
locked Edit box, which could behave somehow like Immediate window

Also, you can do the same if the long process is a VBA procedure or
function.

Also, you could use a Progress bar, to show your users how long
(approximatively) the process has till it finish.

If you need more help on this, you can contact me.

Regards,
Bogdan Zamfir
______________________________
Independent consultant
"Thomas Anderson" <th****************@hotmail.com> wrote in message
news:3c*************************@posting.google.co m...
I would like to replicate the debug window on a form so I can easily
pass usefull info to users on long processes. Is there a simple way
to do this.

thanks

Nov 12 '05 #2
TC
Use a simple textbox!

' do some things.
me![txtStatus] = "I got here!" & vbcrlf & vbcrlf & me![txtStatus]
' do some more things.
me![txtStatus] = "Now I am here!!" & vbcrlf & vbcrlf & me![txtStatus]
etc.

Or, write a simple sub to which you pass the text, then the sub can add it
into the textbox.

HTH,
TC
"Thomas Anderson" <th****************@hotmail.com> wrote in message
news:3c*************************@posting.google.co m...
I would like to replicate the debug window on a form so I can easily
pass usefull info to users on long processes. Is there a simple way
to do this.

thanks

Nov 12 '05 #3
th****************@hotmail.com (Thomas Anderson) wrote in message news:<3c*************************@posting.google.c om>...
I would like to replicate the debug window on a form so I can easily
pass usefull info to users on long processes. Is there a simple way
to do this.

thanks

Put in a text box with vertical scroll bars (just in case).

Set up a timer, and occasionally break out to write to the text box.

You may need to look at DoEvents etc.

HTH

Edward
--
The reading group's reading group:
http://www.bookgroup.org.uk
Nov 12 '05 #4
th****************@hotmail.com (Thomas Anderson) wrote in message news:<3c*************************@posting.google.c om>...
I would like to replicate the debug window on a form so I can easily
pass usefull info to users on long processes. Is there a simple way
to do this.

thanks


any reason you can't send the output to an unbound textbox on your
form, and then repaint the form?
Nov 12 '05 #5

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

Similar topics

1
by: Robert | last post by:
Simple way of writing debug print statements in your JavaScript code. You need to have enabled popups in your browser. I liked the ability to write to the java console in Netscape 4.x. This,...
3
by: Mike Turco | last post by:
Is there a way to clear the debug window other than just sending a bunch of line feeds? Tanks -- Mike
2
by: Buz Waitz | last post by:
When I try debugging a VB windows app in Visual Studio.Net I get the error, "Error whle trying to run project: Unable to start debugging. The Machine Debug Manager service is disabled." Help?
7
by: Thomas Pecha | last post by:
Sorry for all who think this is easy, I was not able to handle this Coming from VB6 where with simple debug.print strAString you could write to debug window, I am totalling failing in vb.net...
1
by: Adrian Constantinescu | last post by:
Hi, When a project VB.Net start, the output window if filled with this kind on informations: 'TextBox.exe': Loaded...
5
by: Billy | last post by:
Hi! How can I override "Debug.Writeline("Message")" so that will not show that msg in Debug window, but wrote it to a file. I already have a code to write to a file but I would like to use just...
7
by: poppybush | last post by:
I'm just added a new form to my application for entering information to a database. To do this I did: Me.Hide() Dim Form1 As New Form1 Form1.Show() When I run debugger, test, and end the...
2
by: Johann Schuler | last post by:
Let's say I have a Person class with a private int age member variable. I have a get and set accessor for the Age property. When I am running the code in debug mode, I would like to have a debug...
2
by: joelkeepup | last post by:
Hi, I made a change this morning and now im getting an error that says either "a is undefined or null" or "e is undefined or null" the microsoft ajax line is below, I have no idea how to...
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: 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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
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
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...

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.