Click here to Skip to main content
15,919,245 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Creating forms dynamically in VB??? Pin
Edbert P28-Oct-03 19:28
Edbert P28-Oct-03 19:28 
GeneralRe: Creating forms dynamically in VB??? Pin
NearyM28-Oct-03 23:38
NearyM28-Oct-03 23:38 
GeneralSystem Events Pin
mikasa28-Oct-03 8:01
mikasa28-Oct-03 8:01 
GeneralRe: System Events Pin
Anonymous30-Oct-03 16:50
Anonymous30-Oct-03 16:50 
GeneralRe: System Events Pin
mikasa31-Oct-03 2:22
mikasa31-Oct-03 2:22 
GeneralSerialization Pin
dotnetminer27-Oct-03 21:03
dotnetminer27-Oct-03 21:03 
GeneralFloatign Toolba & Lines Flickering Pin
Itanium27-Oct-03 20:39
Itanium27-Oct-03 20:39 
GeneralDatagrid using VB.NET (web vs. windows) Pin
holdesb27-Oct-03 5:12
holdesb27-Oct-03 5:12 
I am writing a WINDOWS form with a datagrid where i need to run a loop and basically flag every item (containers to be shipped in this case). Now, I've done this with a webform and have had no problems what so ever with it but when it comes to a Windows Form the controls are differnt i.e., namespaces I can't perform the same functions. Here is the sample code from a web form and I was wondering if anyone had any idea how to approach this from a windows form? Any help would be greatly appreciated. Thanks!

'Insert Shipping Request Information into tblContainer - manifestDocument & shipingRequestID
Dim myDataGridItem As DataGridItem
Dim strContainerID As String

lblStatus.Text = "
You selected the Following containers to be shipped:

"
'Look at notes: Put the update clause back in at lblStatus.Text to update those records as they cycle through the Loop
For Each myDataGridItem In dgContainer.Items
strContainerID = CType(myDataGridItem.FindControl("lblContainerID"), Label).Text

With cmdUpdateContainer
.Parameters("@containerID").Value = strContainerID
.Parameters("@containerShippingRequest").Value = fldID.Text
.Parameters("@containerUpdateDate").Value = Today
.Parameters("@containerDateShip").Value = fldDate.Text
.Parameters("@storageType").Value = "PEN"
.Parameters("@wasteStream").Value = ddlWasteStream.SelectedItem.Text
End With
SqlConnection2.Open()
cmdUpdateContainer.ExecuteNonQuery()
SqlConnection2.Close()
End If
NextConfused | :confused:
GeneralMobile Web Calendar Control Pin
mathenjie27-Oct-03 2:28
mathenjie27-Oct-03 2:28 
GeneralWindows Shell API Pin
Curtis Adams26-Oct-03 7:29
Curtis Adams26-Oct-03 7:29 
QuestionHi,How to design a IIS Server? Pin
kinglate25-Oct-03 0:10
kinglate25-Oct-03 0:10 
AnswerRe: Hi,How to design a IIS Server? Pin
kinglate6-Nov-03 20:45
kinglate6-Nov-03 20:45 
GeneralNumericUpDown Control Question Pin
bnjneer24-Oct-03 6:56
bnjneer24-Oct-03 6:56 
GeneralRe: NumericUpDown Control Question Pin
Anonymous24-Oct-03 8:14
Anonymous24-Oct-03 8:14 
GeneralRe: NumericUpDown Control Question Pin
bnjneer24-Oct-03 8:35
bnjneer24-Oct-03 8:35 
GeneralAS400 Pin
Anonymous24-Oct-03 6:30
Anonymous24-Oct-03 6:30 
GeneralRe: AS400 Pin
Daniel Turini24-Oct-03 6:44
Daniel Turini24-Oct-03 6:44 
GeneralServer Explorer Error Pin
nevhile.net24-Oct-03 5:38
nevhile.net24-Oct-03 5:38 
GeneralCreate a non-dithered gif Pin
Jim Taylor24-Oct-03 0:13
Jim Taylor24-Oct-03 0:13 
GeneralHelp! Pin
bnuestro23-Oct-03 11:24
bnuestro23-Oct-03 11:24 
GeneralRe: Help! Pin
Mike Ellison23-Oct-03 18:29
Mike Ellison23-Oct-03 18:29 
GeneralFormatting test Pin
SyPTo23-Oct-03 11:15
SyPTo23-Oct-03 11:15 
GeneralRe: Formatting test Pin
Edbert P23-Oct-03 19:06
Edbert P23-Oct-03 19:06 
Questionusing vb.net classes in vb 6.0? Pin
palei23-Oct-03 1:10
palei23-Oct-03 1:10 
AnswerRe: using vb.net classes in vb 6.0? Pin
Mike Ellison23-Oct-03 18:33
Mike Ellison23-Oct-03 18:33 

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.