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.


Panel


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-05-2008, 05:42 PM
Knows the basics
 
Join Date: Jan 2008
Posts: 53
Default Panel

When i click on a control in a panel i can get the name of the controll with "sender" how can i get the name of the panel in the sub when i clicked on a controll in a panel
Reply With Quote
  #2 (permalink)  
Old 08-06-2008, 10:01 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,186
Default

You can create an ArrayList for each panel and add the panels controls to the ArrayList.
Assuming that there are only a couple of panels in your project, you can use something like:
Code:
'for each panel:
if ArrayList.IndexOf(sender) > -1 then ...
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
a panel question Ricky D Questions & Help Needed 2 10-23-2008 09:08 AM
Scrollbar on a Panel willisgt Questions & Help Needed 5 03-10-2008 09:12 PM
autoscrollable panel Henry Questions & Help Needed 7 11-12-2007 07:40 PM
How to draw into a Panel? BasicUser Questions & Help Needed 1 07-21-2007 07:28 AM
Input Panel Erel Code Samples & Tips 17 07-04-2007 04:29 AM


All times are GMT. The time now is 01:19 PM.


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