Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Error-Handling and Page Refresh. How?


Reply
 
Thread Tools Display Modes
  #1  
Old 06-27-2005, 07:02 PM
kblaze kblaze is offline
Freshman
 
Join Date: Jun 2005
Posts: 41
Default Error-Handling and Page Refresh. How?


Good day.
I just wanna ask what is the code for refreshing a form?
Let's say I have a list box where all the files are listed there and I choose one file and delete it and a msg box appeared that the file is deleted (and the file is really deleted). After clicking the 'Ok' in the msgbox, i want the form to refresh or i want the list box to refresh that the deleted file won't be displayed anymore. What is the code for that form reload or refresh?

____________________

How do you handle error in the drive list box if you choose drive a: and there is no diskette in drive a:
What is the code for that?


Thank you.
Reply With Quote
  #2  
Old 06-27-2005, 07:09 PM
TeraBlight's Avatar
TeraBlight TeraBlight is offline
Captain Convoluted

* Expert *
 
Join Date: Jun 2005
Posts: 1,918
Default

Re listbox refresh:
You need to do that manually. I suppose you have some code that put the filenames in the listbox in the first place, so to refresh it, do
ListBox.Clear
and then fill it again using the same code you used before.
__________________
"To learn without thinking is to labour in vain" - Confucius
Reply With Quote
  #3  
Old 06-27-2005, 07:51 PM
kblaze kblaze is offline
Freshman
 
Join Date: Jun 2005
Posts: 41
Default

Quote:
Originally Posted by TeraBlight
Re listbox refresh:
You need to do that manually. I suppose you have some code that put the filenames in the listbox in the first place, so to refresh it, do
ListBox.Clear
and then fill it again using the same code you used before.

ooooops i made a mistake. I mean File List Box where all the files are there, not list box.

How?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->