Click here to Skip to main content
15,908,834 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: creating a Form Having Return Value Pin
Dave Kreskowiak26-Mar-04 14:46
mveDave Kreskowiak26-Mar-04 14:46 
GeneralRe: creating a Form Having Return Value Pin
John Kuhn26-Mar-04 19:23
John Kuhn26-Mar-04 19:23 
GeneralRe: creating a Form Having Return Value Pin
Hesham Amin27-Mar-04 3:07
Hesham Amin27-Mar-04 3:07 
GeneralRe: creating a Form Having Return Value Pin
Pradeep C27-Mar-04 5:49
Pradeep C27-Mar-04 5:49 
GeneralRe: creating a Form Having Return Value Pin
xstoneheartx28-Mar-04 9:51
xstoneheartx28-Mar-04 9:51 
GeneralRe: creating a Form Having Return Value Pin
Hesham Amin28-Mar-04 11:36
Hesham Amin28-Mar-04 11:36 
GeneralRe: creating a Form Having Return Value Pin
xstoneheartx28-Mar-04 13:33
xstoneheartx28-Mar-04 13:33 
GeneralRe: creating a Form Having Return Value Pin
Randy S29-Mar-04 12:50
Randy S29-Mar-04 12:50 
Try this
1st dim your second form from your main form.
2nd In the second form user will enter data into any object (text rdo...)
3rd exiting the form will be "me.hide".
4th control is then back to the main form at which point you can read the values that are in the objects of the second form.
ex;
Dim findEntry As New frmSearch
findEntry.ShowDialog() 'Form is shown. Used to set variables for search

If findEntry.DialogResult <> DialogResult.Abort Then ' Do search when true, = Abort when cancel btn clicked

sSearchText = findEntry.txtSearchText.Text
sSearchItem = CStr(findEntry.cboItems.SelectedItem)
findEntry.Close()

sSearch is a variable which is assigned the value from the second form.

Last step is to close the second form.
GeneralRe: creating a Form Having Return Value Pin
jcs200430-Mar-04 19:20
jcs200430-Mar-04 19:20 
QuestionBug In VB.NET Compiler? Pin
Michael Russell26-Mar-04 12:48
Michael Russell26-Mar-04 12:48 
AnswerRe: Bug In VB.NET Compiler? Pin
Dave Kreskowiak26-Mar-04 14:55
mveDave Kreskowiak26-Mar-04 14:55 
GeneralRe: Bug In VB.NET Compiler? Pin
Michael Russell26-Mar-04 15:09
Michael Russell26-Mar-04 15:09 
GeneralDynamic Context Menus not appearing in My Computer Pin
Brad Mathews26-Mar-04 12:39
Brad Mathews26-Mar-04 12:39 
GeneralPassing a UserControl to a standard module Pin
Hesham Amin26-Mar-04 7:05
Hesham Amin26-Mar-04 7:05 
GeneralRe: Passing a UserControl to a standard module Pin
Dave Kreskowiak26-Mar-04 7:55
mveDave Kreskowiak26-Mar-04 7:55 
GeneralRe: Passing a UserControl to a standard module Pin
Hesham Amin26-Mar-04 10:56
Hesham Amin26-Mar-04 10:56 
GeneralRe: Passing a UserControl to a standard module Pin
Dave Kreskowiak26-Mar-04 14:41
mveDave Kreskowiak26-Mar-04 14:41 
GeneralRe: Passing a UserControl to a standard module Pin
Hesham Amin26-Mar-04 23:19
Hesham Amin26-Mar-04 23:19 
Generalusing DirectSS text-to-speech control Pin
Cluniac26-Mar-04 6:25
Cluniac26-Mar-04 6:25 
GeneralDeactivate floppy Disk Device Pin
monivong26-Mar-04 5:11
monivong26-Mar-04 5:11 
GeneralDeacivate floppy Disk Device Pin
monivong26-Mar-04 5:01
monivong26-Mar-04 5:01 
GeneralRe: Deacivate floppy Disk Device Pin
Dave Kreskowiak26-Mar-04 7:51
mveDave Kreskowiak26-Mar-04 7:51 
GeneralProperty description tooltip Pin
800XL26-Mar-04 3:56
800XL26-Mar-04 3:56 
GeneralRe: Property description tooltip Pin
Dave Kreskowiak26-Mar-04 4:19
mveDave Kreskowiak26-Mar-04 4:19 
QuestionHow do you insert a row at a time? Pin
hounetdev26-Mar-04 3:16
hounetdev26-Mar-04 3:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.