First of all, are you talking VB or VB.NET? VB <> VB.NET! From the looks of it, you're talking VB.
Secondly, your control will not update until the event is handled by the program. If you update the control in the beginning of an event handler, it won't get updated until the event handler finishes. This is because the GUI thread will only processing one event at a time. The progress/status bar is your best place for updates. Dig into it and you'll get it. If you're using VB, get Visual Studio Express 2008 and start using VB.NET. Progress/Status bars are easier in VB.NET than they were in VB. If you have functionality that takes a long time to perform, you should put it in a background thread and use a Delegate to update the GUI. You should return control to the user as soon as possible so that you program is more responsive to the user. ...Glenn On Wed, Aug 27, 2008 at 5:28 PM, WynnGIS <[EMAIL PROTECTED]> wrote: > > Hello! > > I'm new to VB and need some help. > > 1st: I'm I posting to the correct group? > > 2nd: I have a small VB Form Program to do batch process for > converting files in ArcGIS. The processing works well but I need to > make enhancements. > > I'm trying to do process monitoring via a textbox (TextBox5.Text). In > some parts of the code the textbox is updated and in other location it > is not. For example, in the Subs btnDoFBD_Click and > OutPutFolder_Click works but in the Main Sub this text box is not > being up dated. For example, > > 'Display next message in Message Center - this does not work > TextBox5.Text = Nothing > TextBox5.Text = "Proccessing...Please Wait..." > > I understand that this code could be written more efficient and I'm > open to suggestion. I've pulled it together from example off Google > Groups and surprisingly it work. I don't know which controls are best > used in which situation but would really like to learn. > > Can someone tell me why this textbox is not being updated? Can you > tell me if there's a better way to do Process Monitoring. I've > searched for examples of "Progress Bar" but can not find any that I > can understand and implement. A good example would be helpful. > > 3rd: I have a Sub "btnDoFBD_Click" to input the data for this > process. I select the Input Folder via this Click event and display > the selected folder in TextBox3.Text = objPathIN and all works well > but TextBox3.Text is only for display. Is there another control that > will allow me to keyin the Input and/or select it from a button or > pull-down? > > Thanks for your help in advance. > > Tim > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://cm.megasolutions.net/forums/default.aspx -~----------~----~----~----~------~----~------~--~---
