VBN 9
VBN 9
VBN 9
8
Title: Build multiple child forms using MDI and include menus like
FIle, View, Help etc.
Theory:
VB.NET MDI Form
MDI stands for Multiple Document Interface applications that allow users to work with
multiple documents by opening more than one document at a time. Whereas, a Single
Document Interface (SDI) application can manipulate only one document at a time.
The MDI applications act as the parent and child relationship in a form. A parent form is
a container that contains child forms, while child forms can be multiple to display
different modules in a parent form.
● MidParent: The MidParent property is used to set a parent form to a child form.
● ActiveMdiChild: The ActiveMdiChild property is used to get the reference of the
current child form.
● IsMdiContainer: The IsMdiContainer property set a Boolean value to True that
represents the creation of a form as an MDI form.
● LayoutMdi(): The LayoutMdi() method is used to arrange the child forms in the
parent or main form.
● Controls: It is used to get the reference of control from the child form.
Conclusion:
Experiment No. 9
Title: Design 2D/3D line /bar chart using relevant data.
Theory:
Introduction to Essential Chart
EssentialChart is an easily configurable, presentation quality business chart control. A
unique point based Styles Architecture, easily extendable Data Model, easily extendable
rendering model, native Date Handling and a unique Shared Data Model are the features that
distinguish Essential chart. This control has been created using C#, which means that it is a
fully-managed .NET component, and has been specifically designed for use with Microsoft’s
Visual Studio .NET.
EssentialChart for Windows Forms is a perfect solution for developers looking to add
advanced, feature rich, visually appealing charts to their Windows Forms applications. The
product comes with numerous samples as well as an extensive documentation to guide you
every step of the way.
Key Features
● The control provides complete support for customization of the Chart control through
Chart Wizard at design time and also at run time. Chart Wizard comes with new Office
look and feel.
● Chart Data Model is an innovative data object model which makes it easy to populate
the chart with any kind of data source.
● Essential Chart features built in support for dates. The data type of any series that is
plotted on the chart can be set to DateTime.
● Essential Chart offers automatic interval calculation capabilities for any range of
numbers or dates. This calculation can be overridden by explicit allocation of ranges
and intervals to be used and also with settings that control how ‘nice’ numbers are
calculated for display.
● Essential Chart offers extensive customization possibilities of the legend. The
position of the legend on the chart area as well as its representation aspects can all
be completely customized. Essential Chart also features modification of legend items
using events. It also supports custom legend items that are not tied to series of data.
● Statistical formula means, Standard Deviation, Variance, Distributions, T-test, F-test
and Z-test support etc.
● Exporting Chart to PDF, Excel and Doc etc., are available for the chart control.
Importing is also supported.
● Users can create custom palettes for their Charts using CustomPalette property. Also,
can create non-gradient palettes for the Charts using this custom palettes feature.
● Multiple Chart Titles and Multiple Legends can be provided with abilities to format the
Title text.
● Chart Breaks are very useful when you use series points with large difference.
● Column Chart.
● Bar Chart. ...
● Line Chart. ...
● Area Chart. ...
● Pie Chart. ...
● Scatter Plot. ...
● Bubble Chart. ...
● Gauge.
Conclusion:
Experiment No. 10
Title: Design 2D/3D pie chart using relevant data.
Theory:
By default, the Chart Designer is automatically invoked each time a ChartControl is
dropped from the toolbox (if the “Display a wizard every time a new chart is added”
option on the Chart Designer’s status bar is enabled). And you can quickly run the Chart
Designer for your chart by clicking its smart tag, and from its actions list, choose the
Run Designer… command.
Chart Customization
Then, configure a chart using the Chart Designer.
● The first step is adding a new Series to the Chart Control. For this, locate the
Series Collection element in the chart elements tree and click the (+) button. In
the invoked list of series types, select the Bar type.
● Then, populate the series with points. This can be either done manually (by
specifying arguments and their values for each point) or - if your chart’s data
source is defined - automatically (by specifying the data bindings for your series).
For details on this, refer to Providing Data.
● Currently, populate points manually. To do this, expand the Series 1 element in
the Series Collection subtree and select the Points element. Then, add all
required arguments and values. Customize the Chart Control’s and series’
appearance.
● For this, select (Chart) in the element tree, and in the Options tab, configure the
Appearance option of the chart control. Set the Appearance to Dark (All Colors).
Now the chart control customization is finished. Click OK to perform changes and
close the Designer.
Conclusion:
Experiment No. 11
Title: Design student registration form using AcitveX Data Object with
Access as backend.
Theory:
ActiveX controls are COM components or objects you can insert into a Web page or other
application to reuse packaged functionality someone else has programmed. You can use
ActiveX controls developed for Visual Basic 6.0 and earlier versions to add features to the
Toolbox of Visual Studio.
Conclusion:
Experiment No. 12
Title: Generate Crystal report for experiment no 11 with relevant data
Theory:
Crystal Reports .NET is a very powerful report writer. It offers a very well defined object
model that provides flexibility when integrating reports into Windows and Web
applications. It also comes with a highly customizable viewer component that gives
developers control on how their reports are presented to users. This article examines
some of the new features of Crystal Reports .NET and shows you how to integrate a
report into your application. After creating this report, you will learn how to publish its
content to the Web as a Web service.
We use Crystal Report in Visual Studio to create the reports. Here, we have some steps
to make a successful Crystal Report in Visual Studio.
Step 1
Open Visual Studio and click New Project -> Window Form Application. Give the name
of the project and click OK.
Step 2
Subsequently, choose the project, go to the Solution Explorer -> Right click on project
name -> Add -> New Item.
Step 3
Step 4
Here, we see a box of Crystal Reports gallery. Choose the default settings and click OK.
Step 5
Step 6
Step 7
After completing all the process, we see the Crystal Reports design Window.
Conclusion: