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.


Help with ControlsEx


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-08-2007, 04:19 PM
Newbie
 
Join Date: Sep 2007
Posts: 3
Default Help with ControlsEx

First let me say I'm new to the the product and this forum, so if I make a mistake or ask a dumb question, please be gentle.

I just upgraded to version 5.5 and then followed the Web instructions for downloading and installing the ControlsEx library. I opened a new project, created a blank new form and saved it. I copied the sample code from the TreeView help, replacing the default code you get with a new project.

Running the program, I receive:

Error compiling program,
Error description: tv is not a nown control or object.
Occurred on line: 10
tv.New1("Form1", 5, 10, 200, 200)

I'm sure I'm missing something simple here. Thanks in advance for your wise counsel.

jrb
Reply With Quote
  #2 (permalink)  
Old 09-08-2007, 04:24 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,134
Default

There are two things you should first do:
1. Add the ControlsEx library to your project: Tools - Components - Add Both - ControlsEx.dll
2. Add a TreeView control named tv: Tools - Add Object - TreeView - tv
See this page for more information about external libraries: http://www.basic4ppc.com/help/externallibraries.html
Reply With Quote
  #3 (permalink)  
Old 09-08-2007, 04:42 PM
Newbie
 
Join Date: Sep 2007
Posts: 3
Default

Erel,

Thanks again for your quick response. I had added the component, but missed the add object. I also figured out that I had to add node objects as well. Can objects (i.e., new nodes) be added at runtime?

Again, thanks

jrb
Reply With Quote
  #4 (permalink)  
Old 09-08-2007, 04:43 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,134
Default

Yes, using the AddObject keyword.
Reply With Quote
  #5 (permalink)  
Old 09-08-2007, 04:44 PM
Newbie
 
Join Date: Sep 2007
Posts: 3
Default

oops, never mind... I just finished reading your suggested link. tx jrb
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
using tabControl from ControlsEx Ricky D Questions & Help Needed 2 09-18-2008 07:21 AM
ControlsEx V1.3 Erel Official Updates 0 05-21-2008 07:08 PM
ControlsEx update Erel Official Updates 0 03-14-2008 06:11 PM
Bug in TreeView.dll/ControlsEx.dll? specci48 Bug Reports 4 09-26-2007 03:45 PM
ControlsEx library was released Erel Announcements 5 09-10-2007 11:02 PM


All times are GMT. The time now is 05:11 PM.


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