Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Removing controls in runtime


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-18-2008, 03:45 PM
Newbie
 
Join Date: Dec 2007
Posts: 6
Default Removing controls in runtime

Is it possible to remove some control in runtime? I need to remove it, not just make it invisible. Thanks.
Reply With Quote
  #2 (permalink)  
Old 02-18-2008, 03:51 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 157
Default

You should dispose of the control using one of two methods:

1. If you created the control in the designer and know the name, you can dispose of it in this manner:

Textbox1.Dispose

2. If you create the control dynamically, you'll have to keep track of the name of the control until you want to dispose of it:

AddLabel( formName, controlName, left, top, width, height, text )
...
Control( controlName ).Dispose


Gary
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting color of controls on runtime RGS Questions & Help Needed 5 09-08-2008 06:31 PM
Removing controls from a form colin9876 Questions & Help Needed 3 11-17-2007 06:48 PM
Runtime controls manipulation Erel Tutorials 0 09-26-2007 02:18 PM
addlabel in runtime tvrman Questions & Help Needed 2 09-04-2007 03:58 PM
Tab Simulation @ Runtime anansath Questions & Help Needed 1 05-19-2007 03:55 PM


All times are GMT. The time now is 03:46 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0