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

Visual Basic

 
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 
AnswerRe: How to Access TextBox in my own class [modified] Pin
MickYL8-Jul-06 1:46
MickYL8-Jul-06 1:46 
Well It would be good to get a better answer than this. Its a kind of scope problem and it seems naming a class myClass is not liked and similar conflict naming a variable name, they are keywords.

So I changed it a little bit

Public Class Form1
Inherits System.Windows.Forms.Form

Dim t1 As TextBox
Dim t2 As TextBox

Private name1 As String
Private gpa As Double
Public Function assignvalue()
name1 = InputBox("Enter the name of students")
gpa = InputBox("Enter the GPA")
showvalue()

End Function

Public Function showvalue()
TextBox1.Text() = name1
t1.Text() = gpa
End Function

Public Class displayme
Public Shared Function show()


Dim s1 As New Form1
s1.assignvalue()
s1.showvalue()
s1.Show()


Dim t1 = New TextBox
Dim t2 = New TextBox

s1.Controls.AddRange(New Control() {t1, t2})
t1.Location = New Point(20, 50)
t2.Location = New Point(20, 100)

End Function
End Class

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
displayme.show()
End Sub
End Class
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 
Questionproblem using LVM_SETTEXTBKCOLOR to change color of listview text [modified] Pin
method0077-Jul-06 6:20
method0077-Jul-06 6:20 

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.