Click here to Skip to main content
15,925,440 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionObject Oriented Question working in form Pin
Amr M. K.23-Sep-06 5:24
Amr M. K.23-Sep-06 5:24 
AnswerRe: Object Oriented Question working in form Pin
Guffa23-Sep-06 5:50
Guffa23-Sep-06 5:50 
GeneralRe: Object Oriented Question working in form Pin
Amr M. K.23-Sep-06 6:01
Amr M. K.23-Sep-06 6:01 
GeneralRe: Object Oriented Question working in form Pin
Dave Kreskowiak23-Sep-06 6:52
mveDave Kreskowiak23-Sep-06 6:52 
GeneralRe: Object Oriented Question working in form Pin
Amr M. K.23-Sep-06 8:24
Amr M. K.23-Sep-06 8:24 
AnswerRe: Object Oriented Question working in form Pin
Guffa23-Sep-06 10:40
Guffa23-Sep-06 10:40 
GeneralRe: Object Oriented Question working in form Pin
Dave Kreskowiak23-Sep-06 11:10
mveDave Kreskowiak23-Sep-06 11:10 
AnswerRe: Object Oriented Question working in form Pin
Christian Graus23-Sep-06 20:06
protectorChristian Graus23-Sep-06 20:06 
If you have a form called Form1, and you create an instance of that form, then the textbox you can see is the textbox that belongs to THAT instance. Creating a new instance will not give you any sort of access to the prior instance. Instead, you need to use delegates or references to the form to create communication between classes.

I see no reason to ever derive a class from a form, unless you're looking to inherit some UI from the base form and add additional UI in the new class. You're trying to access a textbox in the base class, and also making a copy of that string into a variable ( which is redundant ). I dunno what you hope to do with this, but creating an instance of classA will not give you access to the visible instance of Form1, any more than creating a new instance of Form1 would.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog

QuestionI need 2 know Pin
Khalefa_1323-Sep-06 3:19
Khalefa_1323-Sep-06 3:19 
AnswerRe: I need 2 know Pin
Dave Kreskowiak23-Sep-06 5:26
mveDave Kreskowiak23-Sep-06 5:26 
AnswerRe: I need 2 know Pin
Christian Graus23-Sep-06 20:08
protectorChristian Graus23-Sep-06 20:08 
AnswerRe: I need 2 know Pin
Khalefa_1324-Sep-06 3:58
Khalefa_1324-Sep-06 3:58 
QuestionHow to save picture in VB6 ? Pin
Loay Al Lusi22-Sep-06 20:53
Loay Al Lusi22-Sep-06 20:53 
AnswerRe: How to save picture in VB6 ? Pin
Khalefa_1323-Sep-06 3:12
Khalefa_1323-Sep-06 3:12 
GeneralRe: How to save picture in VB6 ? Pin
Loay Al Lusi23-Sep-06 5:44
Loay Al Lusi23-Sep-06 5:44 
GeneralRe: How to save picture in VB6 ? Pin
Loay Al Lusi24-Sep-06 23:44
Loay Al Lusi24-Sep-06 23:44 
QuestionFind no of instances in string Pin
vengaqua22-Sep-06 20:29
vengaqua22-Sep-06 20:29 
AnswerRe: Find no of instances in string Pin
Guffa22-Sep-06 23:52
Guffa22-Sep-06 23:52 
GeneralRe: Find no of instances in string Pin
MohammadAmiry23-Sep-06 1:26
MohammadAmiry23-Sep-06 1:26 
GeneralRe: Find no of instances in string Pin
Guffa23-Sep-06 2:02
Guffa23-Sep-06 2:02 
Question[Message Deleted] Pin
trans4mative22-Sep-06 20:08
trans4mative22-Sep-06 20:08 
AnswerRe: New at programming - Need help with coding Pin
japel23-Sep-06 0:03
japel23-Sep-06 0:03 
AnswerRe: New at programming - Need help with coding Pin
Dave Kreskowiak23-Sep-06 5:24
mveDave Kreskowiak23-Sep-06 5:24 
QuestionAdd Headings to DataGridView Pin
japel22-Sep-06 20:06
japel22-Sep-06 20:06 
QuestionNo value given for one or more required parameters? Pin
nightkid888522-Sep-06 18:04
nightkid888522-Sep-06 18:04 

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.