Click here to Skip to main content
15,914,924 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: HttpWebRequest + 501 Not Implemented Pin
Dave Kreskowiak9-Jul-06 4:19
mveDave Kreskowiak9-Jul-06 4:19 
QuestionDesktop Pin
Nathyd8-Jul-06 7:25
Nathyd8-Jul-06 7:25 
AnswerRe: Desktop Pin
Dave Kreskowiak8-Jul-06 12:30
mveDave Kreskowiak8-Jul-06 12:30 
Questionyes ur right Pin
vengaqua7-Jul-06 22:22
vengaqua7-Jul-06 22:22 
AnswerRe: yes ur right Pin
Colin Angus Mackay8-Jul-06 2:56
Colin Angus Mackay8-Jul-06 2:56 
QuestionConnection class code and how to handle procedure (code) Pin
vengaqua7-Jul-06 21:51
vengaqua7-Jul-06 21:51 
AnswerRe: Connection class code and how to handle procedure (code) Pin
Dave Sexton7-Jul-06 22:10
Dave Sexton7-Jul-06 22:10 
QuestionHow to Access TextBox in my own class Pin
Rizwan Rathore7-Jul-06 20:02
Rizwan Rathore7-Jul-06 20:02 
Hi I am totally a new commer in VB or VB . Net i m trying to make a simple windows application. that has two textboxes in it. i want to make my own student class with two members Name and gpa. and two methods one to assign the values to the variables and the 2nd one to show them in the textboxes. and i want to access this class in another class by creating its object in it. i am having following problems.
i) textboxes r not accessible in my student class.
ii)when i added these variables and function in the Form1 class (for the textboxes to b accessible) and created the object of Form1 in my own class i was unable to access the variables and methods of Form1 class.
I am giving the code as well.
Public Class Form1
    Inherits System.Windows.Forms.Form
    Private name As String
    Private gpa As Double
    Public Function assignvalue()
        name = InputBox("Enter the name of students")
        gpa = InputBox("Enter the name of studentsFather")
    End Function

    Public Function showvalue()
        textbox1.Text() = name
        textbox2.Text() = gpa
    End Function

Public Class MyClass
    Dim s1 As New Form1
    s1.assignvalue()
    s1.showvalue()
End Class
End Class


now when i run this program it gives error on s1.assignvalue() and s1.showvalue()
D:\VB Projects\WindowsApplication1\Form1.vb(168): Declaration expected.
somebody plzz help me out
looking forward for help
Regards,
AnswerRe: How to Access TextBox in my own class [modified] Pin
MickYL8-Jul-06 1:46
MickYL8-Jul-06 1:46 
GeneralRe: How to Access TextBox in my own class Pin
Rizwan Rathore8-Jul-06 20:37
Rizwan Rathore8-Jul-06 20:37 
QuestionRe: How to Access TextBox in my own class [modified] Pin
MickYL9-Jul-06 0:58
MickYL9-Jul-06 0:58 
QuestionSerialport Pins changed event in vb? Pin
siteslayer7-Jul-06 18:08
siteslayer7-Jul-06 18:08 
Questionhow do u make your classes accessible [modified] Pin
MickYL7-Jul-06 15:29
MickYL7-Jul-06 15:29 
AnswerRe: how do u make your classes accessible Pin
Jun Du7-Jul-06 16:01
Jun Du7-Jul-06 16:01 
GeneralRe: how do u make your classes accessible Pin
MickYL8-Jul-06 14:26
MickYL8-Jul-06 14:26 
Questiondate time matching Pin
_tasleem7-Jul-06 15:07
_tasleem7-Jul-06 15:07 
AnswerRe: date time matching Pin
Asif Sayed7-Jul-06 17:25
Asif Sayed7-Jul-06 17:25 
GeneralRe: date time matching Pin
_tasleem8-Jul-06 1:44
_tasleem8-Jul-06 1:44 
GeneralRe: date time matching [modified] Pin
Guffa8-Jul-06 2:07
Guffa8-Jul-06 2:07 
GeneralRe: date time matching Pin
_tasleem8-Jul-06 2:15
_tasleem8-Jul-06 2:15 
AnswerRe: date time matching Pin
Guffa8-Jul-06 5:20
Guffa8-Jul-06 5:20 
GeneralRe: date time matching Pin
Asif Sayed8-Jul-06 6:17
Asif Sayed8-Jul-06 6:17 
QuestionWebClient + How to? [modified] Pin
alexvw7-Jul-06 14:54
alexvw7-Jul-06 14:54 
QuestionCrystal report asking for UserName & Password Pin
Syed Ali Raza7-Jul-06 10:17
Syed Ali Raza7-Jul-06 10:17 
AnswerRe: Crystal report asking for UserName & Password Pin
Dave Sexton7-Jul-06 21:53
Dave Sexton7-Jul-06 21:53 

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.