Lost Password?

Go Back   CodeCall Programming Forum > Software Development > Visual Basic Programming

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

Visual Basic Programming Discussion forum for Visual Basic, an event driven programming language and associated development environment from Microsoft for its COM programming model.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-19-2007, 07:08 AM
yasinirshad yasinirshad is offline
Newbie
 
Join Date: Nov 2007
Posts: 3
Credits: 0
Rep Power: 0
yasinirshad is on a distinguished road
Default Windows form question (select a value from childform and populate in parent form)

Hi,

How to select a value from a ComboBox / Listbox on the newly opened form (Childform), and send this value immediately on select to the opener parent form (Parent Form)

The clickable button which will open a listbox should be placed next to textbox control(The size of the textbox is large enough to hold it) on parent form. It is required that we use a listbox populated with some values in child form.When the user selects a value(text) in the listbox,

1) the listbox should disappear.

2) The text selected should be automatically inserted into the textbox. (on parent form)

Any alternatives ?

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 11-19-2007, 11:42 AM
TcM's Avatar   
TcM TcM is offline
Moderator
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,263
Credits: 0
Rep Power: 74
TcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud ofTcM has much to be proud of
Default

Simple, just add this code in the child form

Code:
Private Sub List1_Click()
List1.Visible = False
Form1.Text1.Text = List1.Text
End Sub
List1 is the list in the child form
form1 is the parent forum
text1 is the textbox that will hold the value on the parent form.

Hope it helped.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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


All times are GMT -5. The time now is 08:45 PM.

Contest Stats

Xav ........ 1097.16
MeTh0Dz|Reb0rn ........ 986.37
morefood2001 ........ 850.04
John ........ 841.93
WingedPanther ........ 684.54
marwex89 ........ 638.26
Brandon W ........ 492.36
chili5 ........ 292.12
orjan ........ 187.41
Steve.L ........ 183.02

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 79%

Ads