Calling the DataWindow operations database in. Net

Source: Internet
Author: User
Tags sybase

Calling the DataWindow operations database in. Net

Calling the DataWindow operations database in. Net

Sybase released the PB version of Beta1 on 2004/1/19, which contains Datawindow.net 1.0, which is really exciting news for others! In the PB market shrinking today, in. NET big line of the Today Sybase company finally launched the Datawindow.net, it supports DataWindow most of the original events and attributes, PB technology can finally come back and come in handy!!

Next to install the program, you can not wait to do a simple example under the vs.net2003, found that really useful! The source code, the interface is as follows:

Using System;
Using System.Drawing;
Using System.Collections;
Using System.ComponentModel;
Using System.Windows.Forms;

Namespace CJGL. Report
{
<summary>
A summary description of the datawindowtest.
</summary>
public class DataWindowTest:System.Windows.Forms.Form
{
Private Sybase.DataWindow.DataWindowControl DW;
Private Sybase.DataWindow.Transaction Trans;
Private System.Windows.Forms.Button Btnretrieve;
Private System.Windows.Forms.Button Btndelete;
Private System.Windows.Forms.Button Btninsert;
Private System.Windows.Forms.Button btnsave;
Private System.ComponentModel.IContainer components;

Public Datawindowtest ()
{
//
The Windows Forms Designer supports the required
//
InitializeComponent ();

//
TODO: Add any constructor code after the InitializeComponent call
//


}

<summary>
Clean up all the resources that are in use.
</summary>
protected override void Dispose (bool disposing)
{
if (disposing)
{
if (components! = NULL)
{
Components. Dispose ();
}
}
Base. Dispose (disposing);
}

#region the code generated by the Windows Forms Designer
<summary>
The designer supports the required method-do not use the Code editor to modify
The contents of this method.
</summary>
private void InitializeComponent ()
{
this.components = new System.ComponentModel.Container ();
This.btnretrieve = new System.Windows.Forms.Button ();
This.btndelete = new System.Windows.Forms.Button ();
This.btninsert = new System.Windows.Forms.Button ();
THIS.DW = new Sybase.DataWindow.DataWindowControl ();
This. Trans = new Sybase.DataWindow.Transaction (this.components);
This.btnsave = new System.Windows.Forms.Button ();
This. SuspendLayout ();
//
Btnretrieve
//
This.btnRetrieve.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | (System.Windows.Forms.AnchorStyles.Right)));
This.btnRetrieve.Location = new System.Drawing.Point (360, 297);
This.btnRetrieve.Name = "Btnretrieve";
This.btnRetrieve.TabIndex = 1;
This.btnRetrieve.Text = "Retrieve";
This.btnRetrieve.Click + = new System.EventHandler (This.btnretrieve_click);
//
Btndelete
//
This.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | (System.Windows.Forms.AnchorStyles.Right)));
This.btnDelete.Location = new System.Drawing.Point (260, 296);
This.btnDelete.Name = "Btndelete";
This.btnDelete.TabIndex = 2;
This.btnDelete.Text = "Delete";
This.btnDelete.Click + = new System.EventHandler (This.btndelete_click);
//
Btninsert
//
This.btnInsert.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | (System.Windows.Forms.AnchorStyles.Right)));
This.btnInsert.Location = new System.Drawing.Point (152, 295);
This.btnInsert.Name = "Btninsert";
This.btnInsert.TabIndex = 3;
This.btnInsert.Text = "Insert";
This.btnInsert.Click + = new System.EventHandler (This.btninsert_click);
//
Dw
//
This.dw.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.