Click here to Skip to main content
15,896,063 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How do I show an uncommon image format? Pin
Dave Kreskowiak4-Oct-08 13:18
mveDave Kreskowiak4-Oct-08 13:18 
QuestionVB.NET comboBox help !! Pin
Saam_cse4-Oct-08 0:55
Saam_cse4-Oct-08 0:55 
AnswerRe: VB.NET comboBox help !! Pin
Dave Kreskowiak4-Oct-08 5:19
mveDave Kreskowiak4-Oct-08 5:19 
AnswerRe: VB.NET comboBox help !! Pin
Vimalsoft(Pty) Ltd5-Oct-08 0:19
professionalVimalsoft(Pty) Ltd5-Oct-08 0:19 
AnswerRe: VB.NET comboBox help !! Pin
jzonthemtn5-Oct-08 7:43
jzonthemtn5-Oct-08 7:43 
QuestionVB.NET INTERESTING PROBLEM-- MOVING AVERAGE ,, NEED HELP !!!! Pin
adarshyam3-Oct-08 18:45
adarshyam3-Oct-08 18:45 
AnswerRe: VB.NET INTERESTING PROBLEM-- MOVING AVERAGE ,, NEED HELP !!!! Pin
Dave Kreskowiak4-Oct-08 5:17
mveDave Kreskowiak4-Oct-08 5:17 
GeneralRe: VB.NET INTERESTING PROBLEM-- MOVING AVERAGE ,, NEED HELP !!!! Pin
adarshyam6-Oct-08 7:22
adarshyam6-Oct-08 7:22 
hi .. i am new to vb.net and i have a problem in maintaining values in two button events.. so pls help me.. i have just added some code to that.. please correct them and help me completing.. im struggling without enough source to refer..

Partial Public Class _Default
Inherits System.Web.UI.Page

Dim textdynamic1 As New ArrayList()
Dim textdynamic2 As New ArrayList()
Dim textdynamic3 As New ArrayList()
Dim textdynamic4 As New ArrayList()

Dim TxtDyn1 As TextBox()
Dim TxtDyn2 As TextBox()
Dim TxtDyn3 As TextBox()
Dim TxtDyn4 As TextBox()
Dim k As Integer
Dim a As Integer
Dim b As Integer
Dim l As Integer
Dim numofper As Integer



Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Try

'to check the textbox for empty

If Not TextBox1.Text Is String.Empty Then
numofper = TextBox1.Text
ReDim TxtDyn1(numofper)
ReDim TxtDyn2(numofper)
ReDim TxtDyn3(numofper)
ReDim TxtDyn4(numofper)

Else
Exit Sub
End If

'To create the dynamic text box and add the controls to panel
For i As Integer = 0 To numofper - 1
TxtDyn1(i) = New TextBox
Panel1.Controls.Add(TxtDyn1(i))
textdynamic1.Add(textdynamic1)
Next
For j As Integer = 0 To numofper - 1
TxtDyn2(j) = New TextBox
Panel2.Controls.Add(TxtDyn2(j))
textdynamic2.Add(textdynamic2)
Next
For k As Integer = 0 To numofper - 1
TxtDyn3(k) = New TextBox
Panel3.Controls.Add(TxtDyn3(k))
textdynamic3.Add(textdynamic3)
Next
For l As Integer = 0 To numofper - 1
TxtDyn4(l) = New TextBox
Panel4.Controls.Add(TxtDyn4(l))
textdynamic4.Add(textdynamic4)
TxtDyn4(l).Enabled = False

Next



Catch ex As Exception
MsgBox("Enter a valid Number")
End Try



End Sub


Private Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button2.Click

Dim nval As Integer
nval = TextBox2.Text


For Each b As Integer In textdynamic4
Do
For Each a As Integer In textdynamic3
a += TxtDyn3(k).Text
Next
Loop While k <= nval


TxtDyn4(l).Text = a / nval
Next
End Sub



End Class
QuestionHow to disable / hide Start Orb in Windows Vista using Visual Basic 6 (not VB.Net, VB2005 or VB2008 or C# or C++ !!!) Pin
Vladimir Nazarov3-Oct-08 15:18
Vladimir Nazarov3-Oct-08 15:18 
AnswerRe: How to disable / hide Start Orb in Windows Vista using Visual Basic 6 (not VB.Net, VB2005 or VB2008 or C# or C++ !!!) Pin
jzonthemtn3-Oct-08 15:43
jzonthemtn3-Oct-08 15:43 
QuestionFunction Delegate Pin
nlarson113-Oct-08 11:21
nlarson113-Oct-08 11:21 
AnswerRe: Function Delegate Pin
Dave Kreskowiak3-Oct-08 12:26
mveDave Kreskowiak3-Oct-08 12:26 
GeneralRe: Function Delegate Pin
nlarson113-Oct-08 13:46
nlarson113-Oct-08 13:46 
GeneralRe: Function Delegate Pin
Guffa4-Oct-08 1:06
Guffa4-Oct-08 1:06 
AnswerRe: Function Delegate Pin
John_Adams3-Oct-08 12:27
John_Adams3-Oct-08 12:27 
GeneralRe: Function Delegate Pin
nlarson113-Oct-08 13:51
nlarson113-Oct-08 13:51 
AnswerRe: Function Delegate Pin
Gideon Engelberth3-Oct-08 15:55
Gideon Engelberth3-Oct-08 15:55 
QuestionCustom control Pin
Tom Deketelaere3-Oct-08 9:17
professionalTom Deketelaere3-Oct-08 9:17 
AnswerRe: Custom control Pin
nlarson113-Oct-08 10:27
nlarson113-Oct-08 10:27 
GeneralRe: Custom control Pin
Tom Deketelaere3-Oct-08 11:29
professionalTom Deketelaere3-Oct-08 11:29 
GeneralRe: Custom control Pin
Dave Kreskowiak3-Oct-08 12:19
mveDave Kreskowiak3-Oct-08 12:19 
GeneralRe: Custom control Pin
Tom Deketelaere4-Oct-08 0:50
professionalTom Deketelaere4-Oct-08 0:50 
QuestionVB COM object works fine when called from server, but not workstation... Pin
rahvyn133-Oct-08 6:39
rahvyn133-Oct-08 6:39 
AnswerRe: VB COM object works fine when called from server, but not workstation... Pin
nlarson113-Oct-08 10:18
nlarson113-Oct-08 10:18 
GeneralRe: VB COM object works fine when called from server, but not workstation... Pin
rahvyn134-Oct-08 2:21
rahvyn134-Oct-08 2:21 

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.