Click here to Skip to main content
15,913,709 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: display web site correctly for most resoultions? Pin
Leah_Garrett9-Aug-06 4:57
Leah_Garrett9-Aug-06 4:57 
GeneralRe: display web site correctly for most resoultions? [modified] Pin
ii_noname_ii9-Aug-06 20:13
ii_noname_ii9-Aug-06 20:13 
QuestionHow to refer to a control from inside a class? Pin
IlanTal8-Aug-06 21:32
IlanTal8-Aug-06 21:32 
AnswerRe: How to refer to a control from inside a class? Pin
Guffa8-Aug-06 22:31
Guffa8-Aug-06 22:31 
GeneralRe: How to refer to a control from inside a class? Pin
IlanTal9-Aug-06 0:17
IlanTal9-Aug-06 0:17 
GeneralRe: How to refer to a control from inside a class? Pin
IlanTal9-Aug-06 0:28
IlanTal9-Aug-06 0:28 
GeneralRe: How to refer to a control from inside a class? Pin
Guffa9-Aug-06 2:08
Guffa9-Aug-06 2:08 
GeneralRe: How to refer to a control from inside a class? Pin
IlanTal9-Aug-06 3:11
IlanTal9-Aug-06 3:11 
Thanks for your help.
I think you got slightly confused as to who changes who.
I want the function to change the form.

In any case your help was enough to get me going. It doesn't recognize 'this', but on the other hand it knows what 'Me' is. Likewise it doesn't know what 'Form1 mainForm' is but it does know what 'ByRef mainForm As Form1' is.

As far a return values, I return a simple status value and apparently it has no troubles with integer return values. Something more complicated like a string would most likely demand your syntax.

In any case I used:
Public Function Init(ByRef mainForm As Form1)
Dim stat As Integer = DS_SUCCESS
mainForm.Test1.Text = "my Test"

and I called it by
stat = myScope.Init(Me)

and it finally changed the button text. (Not that I really want to change that button's text, but I do want to know how to change other things on demand.)

Do you know if I could save the value of mainForm in my class in case I need it outside of the Init function? I could make it a class variable, but the question is if it could change? My gut feeling is that it wouldn't change since it is the main form.

Thanks again,
Ilan


GeneralRe: How to refer to a control from inside a class? Pin
Leah_Garrett9-Aug-06 4:31
Leah_Garrett9-Aug-06 4:31 
GeneralRe: How to refer to a control from inside a class? Pin
Dave Kreskowiak9-Aug-06 4:52
mveDave Kreskowiak9-Aug-06 4:52 
GeneralRe: How to refer to a control from inside a class? Pin
IlanTal9-Aug-06 19:16
IlanTal9-Aug-06 19:16 
GeneralRe: How to refer to a control from inside a class? Pin
Guffa9-Aug-06 23:41
Guffa9-Aug-06 23:41 
Questionhow to show detail on list view? Pin
campbells8-Aug-06 17:42
campbells8-Aug-06 17:42 
AnswerRe: how to show detail on list view? Pin
Rizwan Bashir8-Aug-06 21:16
Rizwan Bashir8-Aug-06 21:16 
GeneralRe: how to show detail on list view? Pin
campbells8-Aug-06 21:31
campbells8-Aug-06 21:31 
QuestionCustom Control Datasource Pin
Thomas Wells8-Aug-06 12:11
Thomas Wells8-Aug-06 12:11 
AnswerRe: Custom Control Datasource Pin
Thomas Wells8-Aug-06 12:58
Thomas Wells8-Aug-06 12:58 
QuestionGetting xml from webservice into dataset Pin
digsy_8-Aug-06 10:54
digsy_8-Aug-06 10:54 
AnswerRe: Getting xml from webservice into dataset [modified] Pin
Keith Malwitz8-Aug-06 18:01
Keith Malwitz8-Aug-06 18:01 
GeneralRe: Getting xml from webservice into dataset Pin
digsy_9-Aug-06 1:51
digsy_9-Aug-06 1:51 
GeneralRe: Getting xml from webservice into dataset Pin
digsy_9-Aug-06 2:57
digsy_9-Aug-06 2:57 
Questionclick event Pin
iramg8-Aug-06 9:23
iramg8-Aug-06 9:23 
AnswerRe: click event Pin
Stephen McGuire8-Aug-06 12:21
Stephen McGuire8-Aug-06 12:21 
AnswerRe: click event Pin
Dave Kreskowiak8-Aug-06 16:25
mveDave Kreskowiak8-Aug-06 16:25 
AnswerRe: click event Pin
Guerven8-Aug-06 17:10
Guerven8-Aug-06 17:10 

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.