... Form1 : System .Windows. Forms. Form
{
private System .Windows. Forms. Label label1;
private System .Windows. Forms. ComboBox cmbSpeed;
Data Entry and Validation with C# and VB .NET
Windows Forms
Nick ... : System .Windows. Forms. Form
{
private System .Windows. Forms. TabControl tc;
private System .Windows. Forms. TabPage t1;
private System .Windows. Forms. TabPage t2;
private System .Windows. Forms. Label ... consecutive lines.
Listing 1-1a:
C# Code for the Terminal Setup Program
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System .Windows. Forms;
using System.Data;
namespace...
... System .Windows. Forms. Button( );
this.label1 = new System .Windows. Forms. Label( );
this.textBox1 = new System .Windows. Forms. TextBox( );
and in VB, it appears as follows:
Me.Button1 = New System .Windows. Forms. Button( ... associated with a window. In
fact, WindowsForms defines two kinds of relationships between controls. There
is the parent/child relationship, which manages containment of controls within a
single window. ... window border
and interaction with the Windows taskbar. All WindowsForms applications have
at least one class derived from
Form.
In this chapter we will examine the structure of a typical Windows...
... 62
3.4.2 Writing a simple TCP/IP server 65
3.5 Debugging network code 73
3.6 Socket-level networking in .NET 75
3.7 Conclusion 86
4 HTTP: Communicating with Web Servers 87
4.1 Introduction ... purchaseOrderID int
)
insert into company (name,address) values (
'Wiley E coyote','sandy desert')
3.6 Socket-level networking in .NET 77
Chapter 3
while (bytesReceived!=0);
}
}
VB. NET
Private ...
Working with Sockets
3.1 Introduction
This chapter explains the most important aspect of network programming,
the socket. It is essential to fully understand how to use sockets in .NET
before...
... xiv
www.it-ebooks.info
Cardinal Splines
Cardinal splines allow the creation of smooth lines joining a given set of points,
as shown in Figure 1-4.
Figure 1-4. Creating a smooth curve that joins points with ... the
System .Windows. Forms namespace, which contains classes for creat-
ing Windows- based applications using the features of the Windows
operating system. Inside this namespace, you use the PaintEventArgs
class, ... PicSourcePaint
The E parameter is of the type Windows. Forms. PaintEventArgs.
You will notice that everything in .NET languages is organized into
managed units of code, called namespaces. In this...
... System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System .Windows. Forms;
using System.Data.SqlClient;
using Microsoft.Reporting.WinForms;
namespace ProductReorder
{
public ... (System.String)
•
ReorderPoint (System.Int32)
CHAPTER 4
■
REPORTING WITHWINDOWSFORMS 87
8547ch04final.qxd 8/30/07 4:08 PM Page 87
After completing the steps shown in Figure 4-6, you’ll be presented with ...
■
REPORTING WITHWINDOWS FORMS9 0
8547ch04final.qxd 8/30/07 4:08 PM Page 90
After you finish the steps shown in Figure 4-38, how does the report design surface look? If
y
ou are thinking the design...
... foreign controls.
Chapter 10: Programmingwith Images
Image classes in wxWidgets; programmingwith wxBitmap; programming with
wxIcon; programmingwith wxCursor; programmingwith wxImage; image lists
and ... Application Development on Linux®
Carl Albing and Michael Schwarz
C++ GUIProgrammingwith Qt 3
Jasmin Blanchette and Mark Summerfield
Managing Linux Systems with Webmin: System Administration and Module ... error
reporting; providing run-time type information; using wxModule; loading
dynamic libraries; exception handling; debugging tips.
Chapter 16: Writing International Applications
Introduction to internationalization;...
... are built with Qt. If you are making a living with a success-
ful Windows product written in Qt, you can easily create new markets in the
Mac OS X and Linux worlds simply by recompiling.
Qt is ... clicking
X in the window’s title bar, for example), the program
terminates. Without a main widget, the program would keep running in the
background even after the user has closed the window.
Line ... Appendix A explains how to install the software.
The book focuses on explaining good idiomatic Qt 3 programming techniques
rather than simply rehashing or summarizing Qt’s extensive online documen-
tation....
... missing functionality in the Spreadsheet class.
87
3. Creating Main Windows
Subclassing QMainWindow•
Creating Menus and Toolbars•
Setting Up the Status Bar•
Implementing the File Menu•
Using ... Finally, we call clear() to resize the table
and to set the column headings.
void Spreadsheet::clear()
90
3. Creating Main Windows
Subclassing QMainWindow•
Creating Menus and Toolbars•
Setting ... are built with Qt. If you are making
a living with a successful Windows product written in Qt, you can easily create new markets in the Mac OS X and Linux worlds
simply by recompiling.
Qt is...
... now appears in a separate file, using the
3
CHAPTER 1
Getting started with
Windows Forms
1.1 Programmingin C# 4
1.2 WindowsForms controls 14
1.3 Loading files 19
1.4 Resizing forms 26
1.5 ...
programming WindowsForms applications. I have always enjoyed the book Program-
ming Windows 95 with
MFC by Jeff Prosise, so a book about developing Windows-
based applications with the .
NET ... alt=""
vii
brief contents
Part 1 Hello WindowsForms 1
1 Getting started withWindowsForms 3
2 Getting started with Visual Studio 33
Part 2 Basic WindowsForms 63
3Menus 67
4 Context menu and...
... problem of minimum-length scheduling involves
obtaining a sequence of activations of wireless nodes so
that a finite amount of data residing at a subset of the
nodes in the network reaches its intended ... problem of joint sche-
duling and rate control in single-hop wireless networks
under the objective of minimizing the required time to
deliver all data traffic to the intended destinations. First,
we ... by formulating the
minimum-length scheduling problem as finding a shortest path on a single-source directed acyclic graph.
However, finding the shortest paths is computationally hard since the...
... are built into the WindowsForms model—GDI+ (for
hand-drawing controls) and data binding (for displaying and updating data without writing
tedious code).
Part 2: Custom Controls
In this part, ...
enumerations, and interfaces.
• How user interfaces are modeled with objects in a WindowsForms application. You’ll
learn about several key types of .NET classes, including controls, forms, components, ... user interface
coding to a more elegant approach, you need to stop thinking in terms of windows and controls
and start looking at a user interface as an entire interrelated framework.
In this...
...
Programming Neural Networks with Encog 2 in Java
Programming Neural Networks
with Encog 2 in Java
xx
Programming Neural Networks with Encog 2 in Java
network structures ... training algorithms.
Supervised training is not the only training option. Chapter 9,
“Unsupervised Training Methods” shows how to use unsupervised training
with Encog. Unsupervised training ... the given input. Neural network
programming involves first defining the input and output layer neuron
counts. Once you have defined how to translate the programming problem
into the input and...
... (Appendix B).
Moving from .NET 1.x to .NET 2.0
If you’ve programmed with .NET 1.x, you’ll find that a great deal remains the same in .NET 2.0.
The underlying model for creating WindowsForms applications ... inherits
from the Control base class.
On its own, a control object doesn’t do much. The magic happens when it interacts with
the WindowsForms engine. The WindowsForms engine handles the Windows ... is in the lineage. Every Windows control
inherits from System .Windows. Forms. Control, and acquires some basic functionality that
allows it to paint itself on a window. In fact, even the window...