Jump to content
Xtreme .Net Talk

sjn78

Avatar/Signature
  • Posts

    258
  • Joined

  • Last visited

Everything posted by sjn78

  1. The statubar doesn't have panels....i'm not that clever yet. I changed the function to what you said and still no luck. when calling the function, what form should I use ? sb.text("Message", ??) Thanks for helping out. I have only just moved to .NET from VB6 and have much to learn.
  2. I have a child form that calls this SB.Text("Sending Email") The class for the above is Class SB Public Shared Sub Text(ByVal txt As String) Dim frm As New FrmMain() frm.SBMain.Text = txt End Sub End Class SBMain is the statusbar. Why won't the statusbar update on the main form? Any help would be great. Thanks
  3. sjn78

    Using Classes

    Thanks for that. That is the way I would of use to of done it, but since learning about classes, I havent got my head around where and when they should be used. Still learning everyday though. Thanks
  4. I have just begun using classes (god bless them) and still learning how to do functions with them. Is there a way to set up a class to read the text in a text box. EG. Have a textbox and its text is 'Testing" Now, can i call a a class, say getvalue(), and have the string 'Testing' associated with it so I can use it in another sub. eg, msgbox ("The Text Box is " & getvalue()) Is this possible Thanks Steve
  5. sjn78

    Statusbar

    This is really about passing a variable from one form to another, but this is what I am doing. Have an mdi form with a statusbar. The child forms load and I want to send strings to the statusbar. I have read threads about creating classes and stuff and have tried, but without any luck. Just wondering if anyone has done this and could give me a quick overview on what is required. Thanks Steve
×
×
  • Create New...