Click here to Skip to main content
15,918,125 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalbug(or my problem) in File.Open using FileShare.Write Pin
carlos_rocha1-Apr-05 0:41
carlos_rocha1-Apr-05 0:41 
GeneralRe: bug(or my problem) in File.Open using FileShare.Write Pin
Dave Kreskowiak1-Apr-05 2:17
mveDave Kreskowiak1-Apr-05 2:17 
GeneralRe: bug(or my problem) in File.Open using FileShare.Write Pin
carlos_rocha1-Apr-05 2:20
carlos_rocha1-Apr-05 2:20 
GeneralXML Transform Pin
nitin_ion31-Mar-05 23:12
nitin_ion31-Mar-05 23:12 
Generalcreate new textbox Pin
GaryKoh31-Mar-05 23:02
GaryKoh31-Mar-05 23:02 
GeneralRe: create new textbox Pin
carlos_rocha1-Apr-05 1:05
carlos_rocha1-Apr-05 1:05 
GeneralRe: create new textbox Pin
GaryKoh1-Apr-05 2:21
GaryKoh1-Apr-05 2:21 
GeneralRe: create new textbox Pin
carlos_rocha1-Apr-05 2:30
carlos_rocha1-Apr-05 2:30 
Ok.sorry.I was on a hurry, i was leaving for my lunch hour :P

In the handler of the button you need to declare a new textBox object and do all the stuff i wrote.Here's a simple case:

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

dim myTextBox as New TextBox
myTextBox.Location = (...)
myTextBox.Size = (...)

'If you need handlers
AddHandler myTextBox.(...), AddressOf myHandlerFunction

Me.Controls.Add(myTextBox)
(...)
End Sub

That's it then you can access the textBox through the Controls collection (Me.Controls(x)).If you would like to access the textbox in another way, and because you create them dinamically, maybe you should keep them in an arrayList or hashTable.

Sorry for the last post, i really hope i was clear this time.If not, ask again.

Never say never
GeneralRe: create new textbox Pin
GaryKoh1-Apr-05 5:24
GaryKoh1-Apr-05 5:24 
GeneralWebbrowser control - opening URL shortcuts Pin
mecracked31-Mar-05 17:34
sussmecracked31-Mar-05 17:34 
GeneralRe: Webbrowser control - opening URL shortcuts Pin
Dave Kreskowiak1-Apr-05 2:12
mveDave Kreskowiak1-Apr-05 2:12 
GeneralRe: Webbrowser control - opening URL shortcuts Pin
mecracked1-Apr-05 14:48
sussmecracked1-Apr-05 14:48 
GeneralRe: Webbrowser control - opening URL shortcuts Pin
Dave Kreskowiak2-Apr-05 3:32
mveDave Kreskowiak2-Apr-05 3:32 
GeneralForum Pin
Berserk5531-Mar-05 14:50
Berserk5531-Mar-05 14:50 
GeneralRe: Forum Pin
Dave Kreskowiak31-Mar-05 14:55
mveDave Kreskowiak31-Mar-05 14:55 
GeneralRe: Forum Pin
Berserk551-Apr-05 12:07
Berserk551-Apr-05 12:07 
Generaldeveloping a estimating program Pin
cds.toecuter31-Mar-05 12:38
cds.toecuter31-Mar-05 12:38 
GeneralPrinting Word Documents Pin
alcitizenp31-Mar-05 11:52
alcitizenp31-Mar-05 11:52 
GeneralRe: Printing Word Documents Pin
Anonymous31-Mar-05 12:09
Anonymous31-Mar-05 12:09 
GeneralTechnology Question About Real Time Notifications Pin
ihdalton31-Mar-05 8:50
ihdalton31-Mar-05 8:50 
GeneralRe: Technology Question About Real Time Notifications Pin
Dave Kreskowiak31-Mar-05 9:08
mveDave Kreskowiak31-Mar-05 9:08 
GeneralRe: Technology Question About Real Time Notifications Pin
mblaster31-Mar-05 10:31
mblaster31-Mar-05 10:31 
GeneralRe: Technology Question About Real Time Notifications Pin
Dave Kreskowiak31-Mar-05 14:52
mveDave Kreskowiak31-Mar-05 14:52 
GeneralText Completion for a ComboBox Pin
KreativeKai31-Mar-05 4:54
professionalKreativeKai31-Mar-05 4:54 
GeneralRe: Text Completion for a ComboBox Pin
KreativeKai8-Apr-05 8:10
professionalKreativeKai8-Apr-05 8:10 

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.