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.


Multiple Listviews


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-20-2008, 07:27 AM
Knows the basics
 
Join Date: Apr 2008
Location: Gosford NSW Australia
Posts: 89
Send a message via MSN to tsteward
Default Multiple Listviews

Hi everyone, I am new to basic4ppc and loving it so far.
I am considering changing my Tables to Listviews.


Can I add more than one listview to a form?

How do I do this?

How would i referance each listview?

Does removing all rows from a listview freeup that memory?

Thanks
Tony
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 10:11 AM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 582
Default

Hello tsteward,

welcome to basic4ppc!
Some quick (but helpful) answers to your questions:

Quote:
Originally Posted by tsteward View Post
Can I add more than one listview to a form?
Yes!

Quote:
How do I do this?
Like this:

Code:
Sub Globals
End Sub

Sub App_Start
    Form1.Show
	
    AddObject("MyListView1","ListView")	
    AddObject("MyListView2","ListView")				
    MyListView1.New1("Form1",5,5,100,140) 
    MyListView2.New1("Form1",120,5,100,140) 	
	
End Sub
Quote:
How would i referance each listview?
In the example above the listviews are nemed MyListView1 and MyListView2.

Quote:
Does removing all rows from a listview freeup that memory?
I'm not really sure how .Net handles this.


specci48

P.S.: The last question is a typical for Erel and agraham...
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 10:16 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,849
Default

I recommend you to add the objects with Tools - Add Object.
That way the IDE will be able to help you with the list of methods.

Fillipo wrote the ListView library so he is the real expert, however AFAIK removing the rows will free that memory.
Generally speaking in most cases the .Net Framework will take care of releasing unused allocated memory.
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
Multiple Serial connections? cwtoyota Questions & Help Needed 1 05-23-2008 11:05 AM
Multiple Undo/Redo Rioven Questions & Help Needed 2 05-15-2008 08:41 AM
Deleting multiple files at ones sonavep Questions & Help Needed 2 04-21-2008 03:00 PM
Multiple Instances of an application Louis Questions & Help Needed 1 12-23-2007 05:20 AM
How to play multiple sounds at once? justdo Questions & Help Needed 2 09-24-2007 03:59 AM


All times are GMT. The time now is 01:18 AM.


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