Click here to Skip to main content
16,010,876 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Is it possible to build a control array based on existing controls created at design time? Pin
Jon_Boy25-Nov-08 7:36
Jon_Boy25-Nov-08 7:36 
GeneralRe: Is it possible to build a control array based on existing controls created at design time? Pin
Dave Kreskowiak25-Nov-08 8:20
mveDave Kreskowiak25-Nov-08 8:20 
AnswerRe: Is it possible to build a control array based on existing controls created at design time? Pin
Christian Graus25-Nov-08 9:34
protectorChristian Graus25-Nov-08 9:34 
AnswerRe: Is it possible to build a control array based on existing controls created at design time? Pin
Gideon Engelberth25-Nov-08 10:55
Gideon Engelberth25-Nov-08 10:55 
GeneralRe: Is it possible to build a control array based on existing controls created at design time? Pin
Jon_Boy26-Nov-08 3:51
Jon_Boy26-Nov-08 3:51 
QuestionReceiving the error "There is already an open DataReader associated with this Command which must be closed first." [solved] Pin
Marcus J. Smith25-Nov-08 4:08
professionalMarcus J. Smith25-Nov-08 4:08 
AnswerRe: Receiving the error "There is already an open DataReader associated with this Command which must be closed first." Pin
Ben Fair25-Nov-08 4:23
Ben Fair25-Nov-08 4:23 
GeneralRe: Receiving the error "There is already an open DataReader associated with this Command which must be closed first." Pin
Marcus J. Smith25-Nov-08 4:27
professionalMarcus J. Smith25-Nov-08 4:27 
If it was the code I wrote I would have all of that done but all I am doing is calling a TableDataAdapter that is created from the .NET Dataset to fill the local datatable contained in my instance of that dataset.

As I said before, this was not an issue, I did not change anything and am now having to track it down. Here is the code where it breaks.

<br />
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _<br />
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _<br />
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, false)>  _<br />
        Public Overloads Overridable Function GetCustomerDetailsCustomerDetailID(ByVal dataTable As CustomerDetail.CustomerDetailsDataTable, ByVal CustomerDetailID As Global.System.Nullable(Of Integer)) As Integer<br />
            Me.Adapter.SelectCommand = Me.CommandCollection(1)<br />
            If (CustomerDetailID.HasValue = true) Then<br />
                Me.Adapter.SelectCommand.Parameters(1).Value = CType(CustomerDetailID.Value,Integer)<br />
            Else<br />
                Me.Adapter.SelectCommand.Parameters(1).Value = Global.System.DBNull.Value<br />
            End If<br />
            If (Me.ClearBeforeFill = true) Then<br />
                dataTable.Clear<br />
            End If<br />
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)<br />
            Return returnValue<br />
        End Function



CleaKO

"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)

Questiondelete questions Pin
yaya_star24-Nov-08 21:34
yaya_star24-Nov-08 21:34 
AnswerRe: delete questions Pin
Nanda_MR24-Nov-08 22:09
Nanda_MR24-Nov-08 22:09 
GeneralRe: delete questions Pin
yaya_star24-Nov-08 22:14
yaya_star24-Nov-08 22:14 
GeneralRe: delete questions Pin
indian14324-Nov-08 22:55
indian14324-Nov-08 22:55 
AnswerRe: delete questions Pin
Christian Graus24-Nov-08 23:08
protectorChristian Graus24-Nov-08 23:08 
GeneralRe: delete questions Pin
dan!sh 25-Nov-08 4:01
professional dan!sh 25-Nov-08 4:01 
QuestionHelp in reading File Pin
yaya_star24-Nov-08 21:28
yaya_star24-Nov-08 21:28 
AnswerRe: Help in reading File Pin
indian14324-Nov-08 21:43
indian14324-Nov-08 21:43 
GeneralRe: Help in reading File Pin
yaya_star24-Nov-08 21:52
yaya_star24-Nov-08 21:52 
GeneralRe: Help in reading File Pin
Ashfield24-Nov-08 22:10
Ashfield24-Nov-08 22:10 
GeneralRe: Help in reading File Pin
yaya_star24-Nov-08 22:15
yaya_star24-Nov-08 22:15 
GeneralRe: Help in reading File Pin
Ashfield25-Nov-08 1:13
Ashfield25-Nov-08 1:13 
AnswerRe: Help in reading File Pin
Christian Graus24-Nov-08 23:08
protectorChristian Graus24-Nov-08 23:08 
AnswerRe: Help in reading File Pin
riced26-Nov-08 1:55
riced26-Nov-08 1:55 
GeneralRe: Help in reading File Pin
yaya_star1-Dec-08 18:54
yaya_star1-Dec-08 18:54 
GeneralRe: Help in reading File Pin
riced3-Dec-08 13:13
riced3-Dec-08 13:13 
QuestionVisual Basic IDE [modified] Pin
indian14324-Nov-08 20:24
indian14324-Nov-08 20:24 

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.