Click here to Skip to main content
15,898,035 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionGetting data into an array. Pin
vurdmal29-Sep-09 2:58
vurdmal29-Sep-09 2:58 
AnswerRe: Getting data into an array. Pin
Paramhans Dubey29-Sep-09 3:07
professionalParamhans Dubey29-Sep-09 3:07 
GeneralRe: Getting data into an array. Pin
vurdmal29-Sep-09 3:17
vurdmal29-Sep-09 3:17 
AnswerRe: Getting data into an array. Pin
freakyit29-Sep-09 3:11
freakyit29-Sep-09 3:11 
GeneralRe: Getting data into an array. Pin
vurdmal29-Sep-09 3:22
vurdmal29-Sep-09 3:22 
GeneralRe: Getting data into an array. Pin
freakyit29-Sep-09 3:51
freakyit29-Sep-09 3:51 
GeneralRe: Getting data into an array. Pin
vurdmal29-Sep-09 4:18
vurdmal29-Sep-09 4:18 
GeneralRe: Getting data into an array. Pin
freakyit29-Sep-09 4:28
freakyit29-Sep-09 4:28 
here this could be ONE way..

Public Sub new_word(byval word as String)
		
		Dim c As Char
		Dim tb As TextBox
		
		'remove all controls from form..
		me.Controls.Clear()
				
		' iterate through the word
		For Each c In word
			'create a new textbox
			tb = New TextBox
			tb.Tag = c ' hold the word to compare with entered char
			tb.Text = string.Empty ' set the empty string (user has to enter..)
			tb.Dock = DockStyle.Top '..
			
			' add event if user enters a text
			AddHandler tb.TextChanged, AddressOf Me.charChanged
		
			' add the control to form
			me.Controls.Add(tb)
		Next
		
	End Sub
	
	Private sub charChanged(byval sender As Object,byval e As EventArgs)
		
		Dim tb As TextBox
		
		tb = directcast(sender, TextBox)
		
		If not tb Is Nothing Then
			
			If tb.Text = tb.Tag Then
				tb.BackColor = System.Drawing.Color.Green
			Else
				tb.BackColor = System.Drawing.Color.Red
			End If
			
		End If
		
		'.....
		
	End Sub

GeneralRe: Getting data into an array. Pin
vurdmal29-Sep-09 4:45
vurdmal29-Sep-09 4:45 
Questionstyle sheet in vb.net Pin
paya1pa29-Sep-09 0:13
paya1pa29-Sep-09 0:13 
AnswerRe: style sheet in vb.net Pin
Paramhans Dubey29-Sep-09 0:30
professionalParamhans Dubey29-Sep-09 0:30 
AnswerRe: style sheet in vb.net Pin
Christian Graus29-Sep-09 0:32
protectorChristian Graus29-Sep-09 0:32 
GeneralOT: Style Sheet Pin
EliottA29-Sep-09 3:16
EliottA29-Sep-09 3:16 
GeneralRe: OT: Style Sheet Pin
Christian Graus29-Sep-09 11:10
protectorChristian Graus29-Sep-09 11:10 
Questionchange the backgound color of messagebox in vb.net c# [modified] Pin
paya1pa28-Sep-09 21:22
paya1pa28-Sep-09 21:22 
AnswerRe: change the backgound color of messagebox in vb.net c# Pin
Christian Graus28-Sep-09 21:26
protectorChristian Graus28-Sep-09 21:26 
AnswerBuy a book Pin
Christian Graus28-Sep-09 21:38
protectorChristian Graus28-Sep-09 21:38 
QuestionHow to use Taskbar Close(X) Option in Vb6 application Pin
mdrizwan_128-Sep-09 2:24
mdrizwan_128-Sep-09 2:24 
AnswerRe: How to use Taskbar Close(X) Option in Vb6 application Pin
freakyit28-Sep-09 3:01
freakyit28-Sep-09 3:01 
GeneralRe: How to use Taskbar Close(X) Option in Vb6 application Pin
mdrizwan_128-Sep-09 3:21
mdrizwan_128-Sep-09 3:21 
GeneralRe: How to use Taskbar Close(X) Option in Vb6 application Pin
Dave Kreskowiak28-Sep-09 3:31
mveDave Kreskowiak28-Sep-09 3:31 
GeneralRe: How to use Taskbar Close(X) Option in Vb6 application Pin
mdrizwan_128-Sep-09 3:39
mdrizwan_128-Sep-09 3:39 
GeneralRe: How to use Taskbar Close(X) Option in Vb6 application Pin
freakyit28-Sep-09 4:29
freakyit28-Sep-09 4:29 
AnswerRe: How to use Taskbar Close(X) Option in Vb6 application Pin
Christian Graus28-Sep-09 10:28
protectorChristian Graus28-Sep-09 10:28 
GeneralRe: How to use Taskbar Close(X) Option in Vb6 application Pin
Luc Pattyn28-Sep-09 11:07
sitebuilderLuc Pattyn28-Sep-09 11:07 

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.