Click here to Skip to main content
16,004,919 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow to do this in crystal report Pin
Mohammed Amine13-Jun-06 5:07
Mohammed Amine13-Jun-06 5:07 
AnswerRe: how to do this in crystal report Pin
sasidar_d13-Jun-06 23:45
sasidar_d13-Jun-06 23:45 
GeneralRe: how to do this in crystal report Pin
Mohammed Amine13-Jun-06 23:59
Mohammed Amine13-Jun-06 23:59 
QuestionMSDE....Server List Pin
Polymorpher13-Jun-06 3:23
Polymorpher13-Jun-06 3:23 
AnswerRe: MSDE....Server List Pin
Jim Taylor13-Jun-06 3:49
Jim Taylor13-Jun-06 3:49 
GeneralRe: MSDE....Server List Pin
Polymorpher13-Jun-06 5:41
Polymorpher13-Jun-06 5:41 
Questionauto generated strings in vb.net Pin
MissionSuccess13-Jun-06 3:10
MissionSuccess13-Jun-06 3:10 
QuestionCreating textbox at run-time Pin
Tomic13-Jun-06 1:59
Tomic13-Jun-06 1:59 
I tried to create textbox at run time depending on the value input by the user. I used a for loop to effect the creation but when I run the code only the one textbox is displayed.Please how do I ensure that all textboxes are displayed and the form expands proportionally.
The code is here below:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
       Dim x As Integer, b As Integer
       If (IsNumeric(txtdata_num.Text)) Then
           x = CInt(txtdata_num.Text)
           Dim st As New System.Windows.Forms.TextBox()
           For b = 0 To x - 1
               st.Location = y
               st.Name = "textboxA"
               st.Size = New System.Drawing.Size(40, 10)
               st.Visible = True
               Me.Controls.Add(st)

               y = New System.Drawing.Point(st.Location.X + st.Size.Width + 10, st.Location.Y + st.Size.Height + 10)
               MsgBox("my name is " & st.Name)
               MsgBox("my locattion" & st.Location.Y & st.Location.X)
               MsgBox("my width" & st.Size.Width & st.Size.Height)

           Next
       End If


Fikunmi Feyijin
Hicad Systems
Nigeria
GeneralRe: Creating textbox at run-time Pin
Tamimi - Code13-Jun-06 2:49
Tamimi - Code13-Jun-06 2:49 
GeneralRe: Creating textbox at run-time Pin
zacharyshroyer13-Jun-06 3:08
zacharyshroyer13-Jun-06 3:08 
GeneralRe: Creating textbox at run-time Pin
Tomic13-Jun-06 5:40
Tomic13-Jun-06 5:40 
QuestionWeb site hosting on local network Pin
Manik Nath13-Jun-06 0:41
Manik Nath13-Jun-06 0:41 
AnswerRe: Web site hosting on local network Pin
Tamimi - Code13-Jun-06 1:12
Tamimi - Code13-Jun-06 1:12 
GeneralRe: Web site hosting on local network Pin
Manik Nath13-Jun-06 1:43
Manik Nath13-Jun-06 1:43 
GeneralRe: Web site hosting on local network Pin
Tamimi - Code13-Jun-06 1:48
Tamimi - Code13-Jun-06 1:48 
GeneralRe: Web site hosting on local network Pin
Manik Nath13-Jun-06 18:39
Manik Nath13-Jun-06 18:39 
GeneralRe: Web site hosting on local network Pin
Steve Pullan13-Jun-06 14:13
Steve Pullan13-Jun-06 14:13 
GeneralRe: Web site hosting on local network Pin
Manik Nath13-Jun-06 18:40
Manik Nath13-Jun-06 18:40 
QuestionCross-Thread operation. Pin
Abhideep13-Jun-06 0:19
Abhideep13-Jun-06 0:19 
AnswerRe: Cross-Thread operation. Pin
zacharyshroyer13-Jun-06 1:46
zacharyshroyer13-Jun-06 1:46 
QuestionFiltering on a Dataset Pin
cullyk12-Jun-06 23:41
cullyk12-Jun-06 23:41 
AnswerRe: Filtering on a Dataset Pin
Tamimi - Code12-Jun-06 23:49
Tamimi - Code12-Jun-06 23:49 
GeneralRe: Filtering on a Dataset Pin
cullyk12-Jun-06 23:50
cullyk12-Jun-06 23:50 
QuestionPrint Preview Pin
Socheat.Net12-Jun-06 22:56
Socheat.Net12-Jun-06 22:56 
AnswerRe: Print Preview Pin
jhoga13-Jun-06 10:05
jhoga13-Jun-06 10:05 

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.