Wrox Programmer Forums
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 20th, 2011, 10:16 PM
Registered User
 
Join Date: Aug 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Remove Button

Hai i need advice and guide.i have probleam with my code. I got an error 'ItemNameTextBox3' and 'ItemquantityTextBox3.Text' is not a member of 'WindowsApplication1.storeremove'. Here is my code, i am using visual studio 2005, dtabase sql2005, my database name is Store and table name is ItemIn.

here i am created ` new new windows form named storeremove and other other windows form named as page..The reason is i dont want to put this code in page form because if i run the application all data which in database are can seen at the textbox. So that why i am create a new form which i can remove the data from fresh textbox. Help help me


Public Class storeremove

Private Sub btnremove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnremove.Click
page.Validate()
page.ItemInTableAdapter.Delete(Me.ItemNameTextBox3.Text, Me.ItemquantityTextBox3.Text)
page.ItemInTableAdapter.Fill(page.StoreDataSet.Ite mIn)
MsgBox("Data Remove")

End Sub





Similar Threads
Thread Thread Starter Forum Replies Last Post
Why the RemoveArticle Action get the remove button value (Yes or No) as parameter? Gabor66 BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 3 September 22nd, 2009 06:30 PM
How to remove remove elements deep using xsl Prabeen XSLT 1 May 5th, 2009 12:55 AM
how to remove focus from a button connect2sandep .NET Framework 2.0 1 February 28th, 2007 03:59 PM
Make a image button as default submit button toshi ASP.NET 1.0 and 1.1 Basics 1 June 1st, 2006 05:25 AM
Button acts depending on radio button values janise Access 4 March 10th, 2004 12:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.