Click here to Skip to main content
15,921,577 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Synchronise day and time Pin
Dave Kreskowiak6-Sep-05 6:45
mveDave Kreskowiak6-Sep-05 6:45 
QuestionSharing data between Windows forms Pin
roraima5-Sep-05 12:17
roraima5-Sep-05 12:17 
AnswerRe: Sharing data between Windows forms Pin
Christian Graus5-Sep-05 12:18
protectorChristian Graus5-Sep-05 12:18 
GeneralRe: Sharing data between Windows forms Pin
roraima5-Sep-05 12:23
roraima5-Sep-05 12:23 
GeneralRe: Sharing data between Windows forms Pin
Christian Graus5-Sep-05 12:35
protectorChristian Graus5-Sep-05 12:35 
GeneralRe: Sharing data between Windows forms Pin
roraima5-Sep-05 14:14
roraima5-Sep-05 14:14 
AnswerRe: Sharing data between Windows forms Pin
_mubashir6-Sep-05 2:38
_mubashir6-Sep-05 2:38 
AnswerRe: Sharing data between Windows forms Pin
korso_rogan6-Sep-05 9:08
korso_rogan6-Sep-05 9:08 
You have another way to accomplish what you are asking for Wink | ;)
As a Form it´s a class itself you can create a property (a method) that GETS o RETURNS any variable you need... for example

<br />
'In this case, the form is called Calculator, this is "form2"<br />
Public Class Calculator<br />
    Inherits System.Windows.Forms.Form<br />
<br />
    Dim _myTextBox As TextBox<br />
<br />
    Public Property GetSetTextBox() As TextBox<br />
        Get<br />
            Return Me._myTextBox<br />
        End Get<br />
        Set(ByVal Value As TextBox)<br />
            Me._myTextBox = Value<br />
        End Set<br />
    End Property<br />
<br />
    '... the rest of the code<br />

And From form1 (the form who calls the second one)

<br />
Dim Form2 as New Form2<br />
Form2.GetSetTextBox = TextBox1 'Any textbox in the form<br />



In this way you can return a variable or a reference to a full control, have fun Smile | :)

PD: Sorry about my english... is not very good Frown | :(
AnswerRe: Sharing data between Windows forms Pin
eagertolearn8-Sep-05 8:59
eagertolearn8-Sep-05 8:59 
AnswerRe: Sharing data between Windows forms Pin
roraima14-Sep-05 7:24
roraima14-Sep-05 7:24 
QuestionIntelligent Datagrid Pin
| Muhammad Waqas Butt |5-Sep-05 6:05
professional| Muhammad Waqas Butt |5-Sep-05 6:05 
AnswerRe: Intelligent Datagrid Pin
mikone5-Sep-05 10:16
mikone5-Sep-05 10:16 
QuestionOpen default mail client with attachments Pin
marowle5-Sep-05 4:19
marowle5-Sep-05 4:19 
QuestionListview selects? Pin
dave@ennead5-Sep-05 3:26
dave@ennead5-Sep-05 3:26 
AnswerRe: Listview selects? Pin
dave@ennead5-Sep-05 3:35
dave@ennead5-Sep-05 3:35 
QuestionSlow WMI-Query, what reason? Pin
mikone5-Sep-05 3:26
mikone5-Sep-05 3:26 
AnswerRe: Slow WMI-Query, what reason? Pin
progload6-Sep-05 9:41
progload6-Sep-05 9:41 
GeneralRe: Slow WMI-Query, what reason? Pin
mikone7-Sep-05 21:28
mikone7-Sep-05 21:28 
QuestionT-SQL Clause Pin
Greeky5-Sep-05 3:17
Greeky5-Sep-05 3:17 
AnswerRe: T-SQL Clause Pin
maximvs5-Sep-05 7:15
maximvs5-Sep-05 7:15 
QuestionBooks about .NET with examples for learning Pin
hcmuns5-Sep-05 0:59
susshcmuns5-Sep-05 0:59 
AnswerRe: Books about .NET with examples for learning Pin
Christian Graus5-Sep-05 11:29
protectorChristian Graus5-Sep-05 11:29 
QuestionRotation of Label control in vb.net Pin
premanand jha5-Sep-05 0:46
premanand jha5-Sep-05 0:46 
AnswerRe: Rotation of Label control in vb.net Pin
Briga5-Sep-05 2:51
Briga5-Sep-05 2:51 
QuestionSpecified argument was out of the range of valid values. Pin
Rabeek5-Sep-05 0:25
Rabeek5-Sep-05 0:25 

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.