Click here to Skip to main content
15,909,466 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Try-Catch blocks? Pin
vengaqua14-Jan-07 21:19
vengaqua14-Jan-07 21:19 
AnswerRe: Try-Catch blocks? Pin
roo42615-Jan-07 1:50
roo42615-Jan-07 1:50 
AnswerRe: Try-Catch blocks? Pin
Rahithi15-Jan-07 17:11
Rahithi15-Jan-07 17:11 
QuestionConnecting to Access Database on remote server Pin
fatali814-Jan-07 12:03
fatali814-Jan-07 12:03 
AnswerRe: Connecting to Access Database on remote server Pin
Dave Kreskowiak14-Jan-07 13:10
mveDave Kreskowiak14-Jan-07 13:10 
GeneralRe: Connecting to Access Database on remote server Pin
fatali814-Jan-07 15:32
fatali814-Jan-07 15:32 
GeneralRe: Connecting to Access Database on remote server Pin
Dave Kreskowiak14-Jan-07 16:16
mveDave Kreskowiak14-Jan-07 16:16 
GeneralRe: Connecting to Access Database on remote server Pin
fatali814-Jan-07 16:48
fatali814-Jan-07 16:48 
GeneralRe: Connecting to Access Database on remote server Pin
fatali814-Jan-07 17:10
fatali814-Jan-07 17:10 
GeneralRe: Connecting to Access Database on remote server Pin
Dave Kreskowiak14-Jan-07 18:26
mveDave Kreskowiak14-Jan-07 18:26 
GeneralRe: Connecting to Access Database on remote server Pin
fatali815-Jan-07 3:53
fatali815-Jan-07 3:53 
GeneralRe: Connecting to Access Database on remote server Pin
Dave Kreskowiak15-Jan-07 5:29
mveDave Kreskowiak15-Jan-07 5:29 
GeneralRe: Connecting to Access Database on remote server Pin
fatali815-Jan-07 5:40
fatali815-Jan-07 5:40 
QuestionSimple question on text? Pin
rudemusik14-Jan-07 6:59
rudemusik14-Jan-07 6:59 
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 

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.