Click here to Skip to main content
15,867,686 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Simple question on text? Pin
MatrixCoder14-Jan-07 8:01
MatrixCoder14-Jan-07 8:01 
GeneralRe: Simple question on text? Pin
rudemusik14-Jan-07 9:23
rudemusik14-Jan-07 9:23 
GeneralRe: Simple question on text? Pin
MatrixCoder14-Jan-07 11:17
MatrixCoder14-Jan-07 11:17 
GeneralRe: Simple question on text? Pin
Christian Graus14-Jan-07 11:58
protectorChristian Graus14-Jan-07 11:58 
AnswerRe: Simple question on text? Pin
Guffa14-Jan-07 11:39
Guffa14-Jan-07 11:39 
GeneralRe: Simple question on text? Pin
rudemusik14-Jan-07 12:33
rudemusik14-Jan-07 12:33 
GeneralRe: Simple question on text? Pin
Christian Graus14-Jan-07 12:36
protectorChristian Graus14-Jan-07 12:36 
AnswerRe: Simple question on text? Pin
Christian Graus14-Jan-07 11:57
protectorChristian Graus14-Jan-07 11:57 
Well, your whole approach is wrong, your controls should not be made public.  Instead, expose a property called TblId, or whatever.

rudemusik wrote:
Dim MainFrm As New Mainfrm


This is your problem.  You're creating a new MainFrm instance, which as no text on it.  It's a different instance to the one that contains the text you want.  You could get around this with a static property, or you can set up delegates to pass the info.  It looks to me in this instance that you should either pass the value of the text to a constructor, or set a property that sets the GoodLuck label on this form, as MainFrm is obviously the class creating this one, and as you're handling the load event, it's obvious you want to set the text when the form opens.



Christian Graus - C++ MVP

'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

GeneralRe: Simple question on text? Pin
rudemusik14-Jan-07 18:08
rudemusik14-Jan-07 18:08 
GeneralRe: Simple question on text? Pin
Christian Graus14-Jan-07 18:18
protectorChristian Graus14-Jan-07 18:18 
Questioncommunication between forms Pin
klakero14-Jan-07 3:51
klakero14-Jan-07 3:51 
AnswerRe: communication between forms Pin
Colin Angus Mackay14-Jan-07 3:58
Colin Angus Mackay14-Jan-07 3:58 
QuestionTo attach to a Com+ Application Pin
tamasu14-Jan-07 3:08
tamasu14-Jan-07 3:08 
Questionsome Components it's location is changing by themselfs vb.net 2005 Pin
kindman_nb13-Jan-07 16:24
kindman_nb13-Jan-07 16:24 
AnswerRe: some Components it's location is changing by themselfs vb.net 2005 Pin
nlarson1113-Jan-07 17:19
nlarson1113-Jan-07 17:19 
GeneralRe: some Components it's location is changing by themselfs vb.net 2005 Pin
kindman_nb13-Jan-07 17:49
kindman_nb13-Jan-07 17:49 
GeneralRe: some Components it's location is changing by themselfs vb.net 2005 Pin
Christian Graus13-Jan-07 18:12
protectorChristian Graus13-Jan-07 18:12 
GeneralRe: some Components it's location is changing by themselfs vb.net 2005 Pin
kindman_nb13-Jan-07 18:16
kindman_nb13-Jan-07 18:16 
GeneralRe: some Components it's location is changing by themselfs vb.net 2005 Pin
nlarson1114-Jan-07 4:27
nlarson1114-Jan-07 4:27 
GeneralRe: some Components it's location is changing by themselfs vb.net 2005 Pin
kindman_nb14-Jan-07 16:53
kindman_nb14-Jan-07 16:53 
GeneralRe: some Components it's location is changing by themselfs vb.net 2005 Pin
nlarson1115-Jan-07 3:19
nlarson1115-Jan-07 3:19 
GeneralRe: some Components it's location is changing by themselfs vb.net 2005 Pin
kindman_nb15-Jan-07 5:30
kindman_nb15-Jan-07 5:30 
Questionconverting icon to image Pin
gladsmhe13-Jan-07 15:36
gladsmhe13-Jan-07 15:36 
AnswerRe: converting icon to image Pin
Thomas Stockwell13-Jan-07 16:21
professionalThomas Stockwell13-Jan-07 16:21 
QuestionWorking with command line arguments. Pin
japel13-Jan-07 11:08
japel13-Jan-07 11:08 

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.