Click here to Skip to main content
16,007,126 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralI would like to Understand this Generated SQL by the Adapter(Dave) Pin
Vimalsoft(Pty) Ltd10-Jan-08 20:55
professionalVimalsoft(Pty) Ltd10-Jan-08 20:55 
GeneralRe: I would like to Understand this Generated SQL by the Adapter(Dave) Pin
Dave Kreskowiak11-Jan-08 3:14
mveDave Kreskowiak11-Jan-08 3:14 
GeneralRe: I would like to Understand this Generated SQL by the Adapter(Dave) Pin
Vimalsoft(Pty) Ltd11-Jan-08 3:25
professionalVimalsoft(Pty) Ltd11-Jan-08 3:25 
GeneralHelp for file creation Pin
Senthil S10-Jan-08 20:08
Senthil S10-Jan-08 20:08 
GeneralRe: Help for file creation Pin
Nilesh Hapse10-Jan-08 21:37
Nilesh Hapse10-Jan-08 21:37 
GeneralRe: Help for file creation Pin
Dave Kreskowiak11-Jan-08 1:36
mveDave Kreskowiak11-Jan-08 1:36 
GeneralDesigner Created Collections Pin
AAGTHosting10-Jan-08 10:34
AAGTHosting10-Jan-08 10:34 
GeneralRe: Designer Created Collections Pin
Dave Kreskowiak10-Jan-08 10:42
mveDave Kreskowiak10-Jan-08 10:42 
AAGTHosting wrote:
I created a collection for a combo box in the designer,


OK. Where is the data comming from that populates this "collection"?? Or are you talking about a DataSet instead?? If the data is comming from a database, then you have to return not only the item descriptions from your table, but also the primary key field for those items. Your table might be something like:
Id   Description
---  ----------------
  0  Blue
  1  Black
  2  Red
  3  Green

You need to return both columns so that you can tell the ComboBox's DisplayMember property to show the Description field and it's ValueMember to point to the Id field. When the user picks one of the colors from the ComboBox, it'll return the ValueMember instead (the Id of the Description, not the Description itself).


AAGTHosting wrote:
Should I create an array and assign the array to the collection instead?


Nope. Completely pointless and duplicates effort and possible data, depending on how you do it.


AAGTHosting wrote:
Will using an array slow the program down?


No. But needlessly dupicating data will.



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




GeneralRe: Designer Created Collections Pin
AAGTHosting10-Jan-08 10:50
AAGTHosting10-Jan-08 10:50 
GeneralRe: Designer Created Collections Pin
Dave Kreskowiak10-Jan-08 11:16
mveDave Kreskowiak10-Jan-08 11:16 
Questionneed some help securing an application Pin
Shimmy Weitzhandler10-Jan-08 8:37
Shimmy Weitzhandler10-Jan-08 8:37 
GeneralRe: need some help securing an application Pin
Dave Kreskowiak10-Jan-08 8:56
mveDave Kreskowiak10-Jan-08 8:56 
GeneralRe: need some help securing an application Pin
Shimmy Weitzhandler10-Jan-08 12:56
Shimmy Weitzhandler10-Jan-08 12:56 
GeneralRe: need some help securing an application Pin
Dave Kreskowiak10-Jan-08 13:33
mveDave Kreskowiak10-Jan-08 13:33 
GeneralRe: need some help securing an application Pin
Shimmy Weitzhandler10-Jan-08 17:55
Shimmy Weitzhandler10-Jan-08 17:55 
GeneralReloading a form Pin
manisghouri10-Jan-08 7:16
manisghouri10-Jan-08 7:16 
GeneralRe: Reloading a form Pin
Dave Kreskowiak10-Jan-08 7:26
mveDave Kreskowiak10-Jan-08 7:26 
GeneralRe: Reloading a form Pin
manisghouri10-Jan-08 15:57
manisghouri10-Jan-08 15:57 
GeneralRe: Reloading a form Pin
Mycroft Holmes10-Jan-08 16:22
professionalMycroft Holmes10-Jan-08 16:22 
GeneralRe: Reloading a form Pin
Dave Kreskowiak11-Jan-08 1:25
mveDave Kreskowiak11-Jan-08 1:25 
QuestionAvoid new instance of a running Application Pin
dotnetme210-Jan-08 6:40
dotnetme210-Jan-08 6:40 
GeneralRe: Avoid new instance of a running Application Pin
Dave Kreskowiak10-Jan-08 7:28
mveDave Kreskowiak10-Jan-08 7:28 
GeneralRe: Avoid new instance of a running Application Pin
dotnetme210-Jan-08 8:15
dotnetme210-Jan-08 8:15 
GeneralRe: Avoid new instance of a running Application Pin
Dave Kreskowiak10-Jan-08 8:32
mveDave Kreskowiak10-Jan-08 8:32 
GeneralRe: Avoid new instance of a running Application Pin
dotnetme210-Jan-08 10:34
dotnetme210-Jan-08 10:34 

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.