Click here to Skip to main content
15,914,163 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRead a file from the web Pin
Martin@captivasystems27-Apr-05 8:26
Martin@captivasystems27-Apr-05 8:26 
GeneralRe: Read a file from the web Pin
Dave Kreskowiak27-Apr-05 15:42
mveDave Kreskowiak27-Apr-05 15:42 
QuestionIf anybody know? Pin
Mkanchha27-Apr-05 6:57
Mkanchha27-Apr-05 6:57 
AnswerRe: If anybody know? Pin
Dave Kreskowiak27-Apr-05 15:30
mveDave Kreskowiak27-Apr-05 15:30 
GeneralRe: If anybody know? Pin
Mkanchha27-Apr-05 17:18
Mkanchha27-Apr-05 17:18 
GeneralRe: If anybody know? Pin
Dave Kreskowiak28-Apr-05 7:58
mveDave Kreskowiak28-Apr-05 7:58 
QuestionAdding Items to Menu Control Arrays: How? Pin
Miles Tones27-Apr-05 5:33
Miles Tones27-Apr-05 5:33 
AnswerRe: Adding Items to Menu Control Arrays: How? Pin
Mike the Red27-Apr-05 8:42
Mike the Red27-Apr-05 8:42 
I was unable to find the .AddName method you mention for the ComboBox Object, but here's an example that will hopefully help you:
'Declare control array
Dim ctrlArray(2) As Control

'Initialize control objects
For i As Integer = 0 To 2
   ctrlArray(i) = New ComboBox
Next


'Declare and initialize an array of strings
Dim textItems() As String = {"Choice 1", "Choice 2", "Choice 3", "Choice 4"}


'Add each string as an item to each combobox in control array
For Each ctrl As ComboBox In ctrlArray
   For Each text As String In textItems
      ctrl.Items.Add(text)
   Next
Next

Given the formName.comboName(comboIndex).AddName stringSomething statement in your post, you might find this useful, too: (this part is written on the fly, I have not run it through the debugger, but it should be good to go)

'Declare and initialize some text items
Dim textItems() As String = {"Choice 1", "Choice 2", "Choice 3", "Choice 4"}

'Look at each control on the form
For Each ctrl as Control in formName.controls
   'If the control is a ComboBox
   If ctrl.Type Is GetType(ComboBox) then
      'Then add the text items to it.
      For Each text As String In textItems

         ctrl.Items.Add(text)
      Next
   End If
Next

GeneralRe: Adding Items to Menu Control Arrays: How? Pin
Miles Tones27-Apr-05 9:15
Miles Tones27-Apr-05 9:15 
GeneralRe: Adding Items to Menu Control Arrays: How? Pin
Mike the Red27-Apr-05 9:58
Mike the Red27-Apr-05 9:58 
GeneralDeployment with SQL and CR Pin
Joey Picerno27-Apr-05 4:56
Joey Picerno27-Apr-05 4:56 
GeneralBrain Cramp... this should be simple, but I'm going nuts Pin
Mike the Red27-Apr-05 4:40
Mike the Red27-Apr-05 4:40 
GeneralRe: Brain Cramp... this should be simple, but I'm going nuts Pin
Len Miller27-Apr-05 5:38
Len Miller27-Apr-05 5:38 
GeneralRe: Brain Cramp... this should be simple, but I'm going nuts Pin
Mike the Red27-Apr-05 8:17
Mike the Red27-Apr-05 8:17 
GeneralRe: Brain Cramp... this should be simple, but I'm going nuts Pin
Len Miller27-Apr-05 10:34
Len Miller27-Apr-05 10:34 
GeneralRe: Brain Cramp... this should be simple, but I'm going nuts Pin
chrismerrill27-Apr-05 5:44
chrismerrill27-Apr-05 5:44 
GeneralI always reply in the wrong spot... Pin
Mike the Red27-Apr-05 8:14
Mike the Red27-Apr-05 8:14 
QuestionHow can I do calculations on the Data Grid (Run Time) Pin
Madni Abbasi27-Apr-05 4:23
Madni Abbasi27-Apr-05 4:23 
AnswerRe: How can I do calculations on the Data Grid (Run Time) Pin
rudy.net28-Apr-05 18:42
rudy.net28-Apr-05 18:42 
QuestionHow do i link a powerpoint show to VB.Net Pin
Court198727-Apr-05 0:44
Court198727-Apr-05 0:44 
Questionhow to design word document dynamically? Pin
Anonymous27-Apr-05 0:29
Anonymous27-Apr-05 0:29 
GeneralDeleting a DataGrid row ?! Pin
toxcct26-Apr-05 20:33
toxcct26-Apr-05 20:33 
GeneralRe: Deleting a DataGrid row ?! Pin
genius12326-Apr-05 23:37
genius12326-Apr-05 23:37 
GeneralRe: Deleting a DataGrid row ?! Pin
toxcct27-Apr-05 1:51
toxcct27-Apr-05 1:51 
GeneralRe: Deleting a DataGrid row ?! Pin
genius12327-Apr-05 18:42
genius12327-Apr-05 18:42 

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.