Click here to Skip to main content
16,007,443 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralCrossWord puzzle alogrithm Pin
Mohsen Saad15-Mar-05 18:06
Mohsen Saad15-Mar-05 18:06 
GeneralRe: CrossWord puzzle alogrithm Pin
Colin Angus Mackay16-Mar-05 0:14
Colin Angus Mackay16-Mar-05 0:14 
GeneralCrystal Report:The LoadSaveReportException: Load Report Error Pin
Bing Chen15-Mar-05 10:41
Bing Chen15-Mar-05 10:41 
QuestionHow to send info out the lpt port????? Pin
mjvone15-Mar-05 10:09
mjvone15-Mar-05 10:09 
AnswerRe: How to send info out the lpt port????? Pin
Christian Graus15-Mar-05 10:47
protectorChristian Graus15-Mar-05 10:47 
QuestionHow can I make Control Array in VB.net Pin
Suman Singh15-Mar-05 10:07
professionalSuman Singh15-Mar-05 10:07 
AnswerRe: How can I make Control Array in VB.net Pin
Ray Cassick15-Mar-05 10:50
Ray Cassick15-Mar-05 10:50 
AnswerRe: How can I make Control Array in VB.net Pin
pfsoft16-Mar-05 20:17
pfsoft16-Mar-05 20:17 
'I have an example that can help you.
'Sorry, my english is bad !

'This is the file "Form1.vb"

Public Class Form1
Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

Public Sub New()
MyBase.New()

'This call is required by the Windows Form Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub

'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents Button1 As System.Windows.Forms.Button

<system.diagnostics.debuggerstepthrough()> Private Sub InitializeComponent()
Me.Button1 = New System.Windows.Forms.Button
Me.SuspendLayout()
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(24, 320)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(80, 24)
Me.Button1.TabIndex = 0
Me.Button1.Text = "Button1"
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(400, 357)
Me.Controls.Add(Me.Button1)
Me.Name = "Form1"
Me.Text = "Form1"
Me.ResumeLayout(False)

End Sub

#End Region

Private Sub Form1_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Activated

' MsgBox("OK")
' Dim V(0) As Windows.Forms.Button
'With V(0)
'.Size = New System.Drawing.Size(152, 24)
'.Location = New System.Drawing.Point(64, 216)
'End With
End Sub

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' Dim tb(2) As TextBox
For n As Integer = 0 To 2
''Crea le caselle ditesto richieste
tb(n) = New TextBox
tb(n).Size = New System.Drawing.Size(400, 30)
tb(n).Location = New System.Drawing.Point(59, 40 + n * 40)
''Questo identifica il controllo TextBox
tb(n).Name = CStr(n + 1)
tb(n).Tag = CStr(n + 1)
tb(n).Text = CStr(n + 1)
''Viene aggiunto il controllo alla lista controlli
Me.Controls.Add(tb(n))

''Crea i gestori d''evento
'AddHandler tb.KeyPress, AddressOf TextBox_KeyPress
AddHandler tb(n).TextChanged, AddressOf TextBox_TextChanged
'AddHandler tb.MouseEnter, AddressOf TextBox_MouseEnter
'AddHandler tb.MouseLeave, AddressOf TextBox_MouseLeave
Next
End Sub

Private Sub TextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim s As String
s = sender.tag
CiSono(s)
End Sub
End Class

'This is the file "Module1.vb"
Module Module1
Public tb(2) As TextBox

Public Sub CiSono(ByRef s As String)
MsgBox(s)
End Sub
End Module
Generalcolor in a combobox items Pin
wgalafassijr15-Mar-05 9:28
wgalafassijr15-Mar-05 9:28 
GeneralRe: color in a combobox items Pin
Tom John15-Mar-05 9:41
Tom John15-Mar-05 9:41 
GeneralRe: color in a combobox items Pin
wgalafassijr15-Mar-05 9:53
wgalafassijr15-Mar-05 9:53 
QuestionHow to change Column name in Datagrid Pin
Suman Singh15-Mar-05 9:06
professionalSuman Singh15-Mar-05 9:06 
AnswerRe: How to change Column name in Datagrid Pin
eshban28416-Mar-05 3:01
eshban28416-Mar-05 3:01 
Questionhow to set date mask Pin
eshban28415-Mar-05 8:28
eshban28415-Mar-05 8:28 
AnswerRe: how to set date mask Pin
Dave Kreskowiak15-Mar-05 9:16
mveDave Kreskowiak15-Mar-05 9:16 
AnswerRe: how to set date mask Pin
numbrel16-Mar-05 12:57
numbrel16-Mar-05 12:57 
QuestionHow to show data in datagrid Pin
eshban28415-Mar-05 8:24
eshban28415-Mar-05 8:24 
AnswerRe: How to show data in datagrid Pin
Suman Singh15-Mar-05 9:08
professionalSuman Singh15-Mar-05 9:08 
AnswerRe: How to show data in datagrid Pin
Dave Kreskowiak15-Mar-05 9:13
mveDave Kreskowiak15-Mar-05 9:13 
GeneralCalling a button click Pin
Suman Singh15-Mar-05 7:55
professionalSuman Singh15-Mar-05 7:55 
GeneralRe: Calling a button click Pin
Jim Matthews15-Mar-05 8:32
Jim Matthews15-Mar-05 8:32 
GeneralRe: Calling a button click Pin
Suman Singh15-Mar-05 8:54
professionalSuman Singh15-Mar-05 8:54 
GeneralRe: Calling a button click Pin
Jim Matthews15-Mar-05 9:25
Jim Matthews15-Mar-05 9:25 
GeneralRe: Calling a button click Pin
Suman Singh15-Mar-05 10:17
professionalSuman Singh15-Mar-05 10:17 
GeneralRe: Calling a button click Pin
Jim Matthews15-Mar-05 10:32
Jim Matthews15-Mar-05 10:32 

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.