Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 28th, 2003, 07:26 AM
Tall Arnie Tall Arnie is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 3 Tall Arnie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Small parameter window

This is probably an easy one, but I just can't find the trigger to get me going.

I have a listbox, and when the user double-clicks an item, he/she can change the text for that item. I want to do that using a small parameter window: a window with just a text box and an OK and Cancel button. At startup, this textbox should contain the current value.

I have created a small form with the necessary controls, called frmNewName.
And in my main window I have created a function called GetNewName, which currently contains the following:

Code:
Function GetNewName(strOldName As String)
    frmNewName.txtNewName = strOldName
    frmNewName.Show

    'If OK then return the new name
    'If Cancel then return the old name
End Function


My question is how to link these two forms together? What piece of code goes in what form? How do I extinguish between the user pressing the OK button and the Cancel button on this parameter form?

Reply With Quote
  #2  
Old December 1st, 2003, 04:04 AM
Unkie Unkie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 32 Unkie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 27 sec
Reputation Power: 5
go to the object of

frmNewName

double click OK
enter stuff that needs to be done when ok is pressed, ....

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Small parameter window


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT