|Access||Adobe photoshop||Algoritmi||Autocad||Baze de date||C||C sharp|
|Calculatoare||Corel draw||Dot net||Excel||Fox pro||Frontpage||Hardware|
|Php||Power point||Retele calculatoare||Sql||Tutorials||Webdesign||Windows|
|Asp||Autocad||C||Dot net||Excel||Fox pro||Html||Java|
a. From the File menu, choose Add Project, then New Project.
b. In the Projects Type list, choose Visual Basic Projects. In the Templates list, choose Windows Application. Finally, in the Name box, type CustomerService and click OK.
c. From the Project menu, click Set as StartUp Project.
a. From the View menu, click Toolbox. CTRL+ALT+X
b. Locate the Windows Forms tab and click it.
c. Double-click the DataGrid icon to add it to the form.
d. Show the Grid Properties by pressing F4. Select the Dock property, type the letter T to change it from None to Top. Then, stretch the data grid until it fills the top two-thirds of the form.
e. Drag a TextBox, a Button and a StatusBar onto the form below the DataGrid. (You may need to scroll down in the Toolbox for the StatusBar.)
f. Click the Button and show its properties by pressing F4. Select the Text property and type[LLR1]: Search
Your form should look like the following image:
a. From the Project menu, click Add Web Reference.
b. Type https://localhost/DownhillBikes/Service1.asmx in the Address box.
c. Click Add Reference.
a. From the View menu, click Code. F7
b. Add a new, empty line at the top of the file.
c. From the View menu, click Toolbox. CTRL+ALT+X
d. In the toolbox, click the Guided Tour tab and double-click on 2.4 Import statements to insert the two import declarations:
a. Position the insertion point on the line above the End Class statement.
b. Double-click on 2.5 VB methods to insert all the code.
In the following steps, you may press the F5 key as a shortcut to build and run the project. Please make sure that the GuidedTour Add-in Tool Window does not have focus when you use F5. Pressing F5 when the GuidedTour Tool Window has focus will cause it to go to part 0. (If this happens, you can simply navigate back to this step.)
a. From the Debug menu, click Start to run the application. (Or, press F5.)
b. Expand a customer record (by clicking the in the left-most column) and click CustomerOrders to view its orders.
c. Expand an order record and click OrdersDetails to view its details.
d. Click the left-arrow icon twice to return to the customer records.
e. Type you in the box next to the Search button.
f. Click Search.
g. Change Rob Young to Robert Young and press the DOWN ARROW key.
h. Close the Form1 window.
i. From the Debug menu, click Start to run the application. (Or, press F5.)
j. Note that the change made in sub-step g is persistent. Close the Form1 window.
If the CustomerService program doesn’t start, make sure it’s your default project. In the Solution Explorer, right-click CustomerService, then click Set as StartUp Project.
a. Click the Windows Start button and choose Run. [WINDOWS KEY ] + R
b. In the Open box, type iisreset /stop and click OK.
a. In Visual Studio .NET, from the Debug menu, click Start to run the application. (Or, press F5.)
b. Note the status bar displays Working in offline mode.
c. Change the password of Robert Young to abc and press the DOWN ARROW key.
d. Close the Form1 window.
a. Click the Windows Start button, then click Run… . (Or, press [WINDOWS KEY ] + R.)
b. In the Open box, type iisreset /start and click OK.
c. After the console window appears, wait for it to close by itself.
c. In Visual Studio .NET, from the Debug menu, click Start to run the application. (Or, press F5.)
d. Note that Robert Young’s password is abc and the status bar says Connected to WS.
e. Close the Form1 window.
f. In Visual Studio .NET, from the Window menu, click Close All Documents. If asked to save changes, click Yes.
You have just completed the construction of a data-bound smart client application using Visual Studio .NET and the Windows Form designer. In this exercise, we incorporated the XML Web service built in Part I to extend the functionality of our Windows Form application. The next step in our Guided Tour will introduce us to the power and breadth of the Visual Studio .NET extensibility model and Crystal Reports for Visual Studio .NET.
Politica de confidentialitate|
Adauga cod HTML in site