Click here to Skip to main content
15,920,383 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionneed help on FUnctions Pin
ay3ssah5-Oct-08 5:59
ay3ssah5-Oct-08 5:59 
AnswerRe: need help on FUnctions Pin
AlexeiXX35-Oct-08 7:22
AlexeiXX35-Oct-08 7:22 
GeneralRe: need help on FUnctions Pin
ay3ssah5-Oct-08 18:58
ay3ssah5-Oct-08 18:58 
AnswerRe: need help on FUnctions Pin
Guffa5-Oct-08 7:31
Guffa5-Oct-08 7:31 
GeneralRe: need help on FUnctions Pin
ay3ssah5-Oct-08 18:56
ay3ssah5-Oct-08 18:56 
GeneralRe: need help on FUnctions Pin
AlexeiXX35-Oct-08 19:05
AlexeiXX35-Oct-08 19:05 
AnswerRe: need help on FUnctions Pin
Anoop Brijmohun6-Oct-08 0:53
Anoop Brijmohun6-Oct-08 0:53 
GeneralRe: need help on FUnctions Pin
ay3ssah6-Oct-08 2:51
ay3ssah6-Oct-08 2:51 
QuestionWriting a catch error handing Pin
zo9005-Oct-08 2:06
zo9005-Oct-08 2:06 
QuestionRe: Writing a catch error handing Pin
jzonthemtn5-Oct-08 7:42
jzonthemtn5-Oct-08 7:42 
AnswerRe: Writing a catch error handing Pin
zo9005-Oct-08 8:19
zo9005-Oct-08 8:19 
GeneralRe: Writing a catch error handing Pin
jzonthemtn5-Oct-08 8:30
jzonthemtn5-Oct-08 8:30 
GeneralRe: Writing a catch error handing Pin
zo9005-Oct-08 8:40
zo9005-Oct-08 8:40 
QuestionHow do I show an uncommon image format? Pin
Sonhospa4-Oct-08 0:56
Sonhospa4-Oct-08 0:56 
AnswerRe: How do I show an uncommon image format? Pin
Dave Kreskowiak4-Oct-08 5:25
mveDave Kreskowiak4-Oct-08 5:25 
GeneralRe: How do I show an uncommon image format? Pin
Sonhospa4-Oct-08 8:42
Sonhospa4-Oct-08 8:42 
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 

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.