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.


Please help with ChangeParent


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-02-2008, 11:22 AM
Junior Member
 
Join Date: Dec 2007
Posts: 43
Default Please help with ChangeParent

My app has 2 forms. Form1 contains an invisible ComboBox (a kind of "global" combobox that should be used eveywhere) and a Button switching to Form2.

Form2 contains a Panel containing a TextBox. When TextBox1 get the focus, I would like to show the ComboBox. At the same time I would like to be able to move the ComboBox from a parent to another. I following code does not work (also placing TextBox directly on Form2, without the second ChangeParent instruction). I'm sure I'm wrong. Is someone there that could give me please some guidelines?

Sub Globals
'Declare the global variables here.
End Sub

Sub App_Start
Form1.Show
frmlib.New1 ("Form1",B4PObject(1))
frmlib.ChangeParent ("ComboBox1","Form2")
frmlib.ChangeParent ("ComboBox1","Panel1")
End Sub

Sub Button1_click
Form2.Show
End Sub

Sub Text1_GotFocus
Combobox1.Width =TextBox1.Width
ComboBox1.Top =TextBox1.Top
ComboBox1.Left =TextBox1.Left
ComboBox1.BringToFront
ComboBox1.Visible=True
End Sub
Reply With Quote
  #2 (permalink)  
Old 01-02-2008, 11:59 AM
Junior Member
 
Join Date: Dec 2007
Posts: 43
Default Please discard my request...

Sorry...
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
ChangeParent and Table Header emaster Questions & Help Needed 2 12-08-2007 03:38 PM


All times are GMT. The time now is 04:54 PM.


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