Click here to Skip to main content
15,905,508 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalhelp needed...!!! Pin
drmzunlimited5-Aug-02 7:04
drmzunlimited5-Aug-02 7:04 
GeneralStoring input to a cell in excel Pin
skydivenut4-Aug-02 16:31
skydivenut4-Aug-02 16:31 
Generalmulti text file processing Pin
ftjjk4-Aug-02 15:51
ftjjk4-Aug-02 15:51 
GeneralError when trying Update on SQLDataAdapter Pin
Knappen4-Aug-02 5:07
Knappen4-Aug-02 5:07 
Generalupdate database in vb.net Pin
devil6663-Aug-02 11:41
devil6663-Aug-02 11:41 
GeneralRe: update database in vb.net Pin
Nick Parker7-Aug-02 2:59
protectorNick Parker7-Aug-02 2:59 
GeneralHelp!! VB.NET Custom DataGridColumn Problem ... Pin
afphinfan12-Aug-02 5:42
afphinfan12-Aug-02 5:42 
GeneralAcess Form Controls Pin
Bruno Lemos2-Aug-02 0:48
Bruno Lemos2-Aug-02 0:48 
Hi all:

I Have 2 controls in Form1 (TextBox1 and Command1).
TextBox1.Text = "111"

Then I have a class (myClass.vb) that inherits Form1
This class as a:

Sub ChangeText()
dim objForm1 as New Form1
objForm1.TextBox1.Text = "222"
End Text

When I click on Command1 i want to go to the ChangeText() in the other class and change TextBox1.Text

Sub Command1_OnClick
dim objmyClass as New myClass
objmyClass.ChangeText()
End Sub


But it doesn't work Cry | :((

How can I change TextBox1 properties or other Control properties that are in Form1.vb from a sub that is in myClass.vb?

Thanx in advance.
Bruno


GeneralWeb Services Implementation Guide Pin
Stanford Powers31-Jul-02 18:33
sussStanford Powers31-Jul-02 18:33 
GeneralRe: Web Services Implementation Guide Pin
Jason McBurney1-Aug-02 11:25
Jason McBurney1-Aug-02 11:25 
GeneralMDI QueryUnloads Pin
Jason McBurney31-Jul-02 5:07
Jason McBurney31-Jul-02 5:07 
GeneralRe: MDI QueryUnloads Pin
Tom Welch31-Jul-02 5:14
Tom Welch31-Jul-02 5:14 
GeneralRe: MDI QueryUnloads Pin
Colin Leitner31-Jul-02 5:17
Colin Leitner31-Jul-02 5:17 
GeneralRe: MDI QueryUnloads Pin
Roger Wright31-Jul-02 5:26
professionalRoger Wright31-Jul-02 5:26 
GeneralRe: MDI QueryUnloads Pin
Nick Parker31-Jul-02 5:30
protectorNick Parker31-Jul-02 5:30 
GeneralRe: MDI QueryUnloads Pin
Jason McBurney31-Jul-02 11:22
Jason McBurney31-Jul-02 11:22 
Generalpath help needed !! Pin
drmzunlimited31-Jul-02 2:43
drmzunlimited31-Jul-02 2:43 
GeneralRe: path help needed !! Pin
chris foote1-Aug-02 10:32
chris foote1-Aug-02 10:32 
Generalpath help needed !! Pin
drmzunlimited31-Jul-02 2:42
drmzunlimited31-Jul-02 2:42 
GeneralMSComm with DTREnable Pin
Anonymous30-Jul-02 23:09
Anonymous30-Jul-02 23:09 
GeneralTry Catch Finally and variable declaration Pin
Zyxil30-Jul-02 10:26
Zyxil30-Jul-02 10:26 
GeneralRe: GotDotNet won the race Pin
Zyxil30-Jul-02 10:31
Zyxil30-Jul-02 10:31 
GeneralDebug a VC++ DLL from VBA Pin
Ryan B.30-Jul-02 10:13
Ryan B.30-Jul-02 10:13 
GeneralRe: Debug a VC++ DLL from VBA Pin
Vi230-Jul-02 19:57
Vi230-Jul-02 19:57 
GeneralVB Textbox Accept Code Pin
rlewistx30-Jul-02 9:03
rlewistx30-Jul-02 9:03 

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.