Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This page links to help on widely used J# coding tasks. To view other categories of popular tasks covered in Help, see How Do I in Visual J# Express.
- Visual J#
Provides an introduction to J# as well as links to various topics on J#.
Files and I/O
- Read a File
Describes how to use the File.OpenRead method to open an existing file for reading.
- Write to a File
Describes how to use the File.OpenWrite method to open an existing file for writing.
COM
- Design Overview: COM Component Accessing
Describes COM objects that continue to be exposed as objects that inherit the same com.ms.* classes and interfaces as in Visual J++ 6.0.
- How to: Generate a COM Component in J#
Shows you how to create a COM component and also how a client can use the component.
- How to: Access a COM Component Written in VJ++
Shows you how to create a reference to a COM component in your project.
- How to: Access Managed Components from COM
Provides steps for accessing managed components from COM.
Accessing the OS
- How to: Create a Socket
Describes how to initialize a socket with protocol and network information using the constructor parameters.
- Creating Threads and Passing Data at Start Time
Describes how creating a new instance of a Thread object creates new managed threads.
- Synchronizing Data for Multithreading
Explains that when multiple threads can make calls to the properties and methods of a single object, it is critical that those calls be synchronized.
Resources
- Using Resources in Visual J# Applications
Explains how to store resource files (.resx), such as error messages, within your Visual J# project.
- How to: Access Resources from a .properties File
Demonstrates how to read and write to the traditional .properties file.
- How to: Upgrade Visual J++ 6.0 Applications That Use Resources
Shows you how to manually convert Visual J++ 6.0 project resources into .NET Framework resources.
- Vjsresgen Sample (Convert a Visual J++ 6.0 Resource File to a .NET Framework Resource (.resx) File)
Demonstrates how a Visual J++ 6.0 resource file can be converted to a .NET Framework resource file (.resx).
Serialization
- How to: Serialize My J# Class as Binary
Contains examples to show you how to use binary serialization.
- How to: Enable .NET Framework Serialization on a Java Application
Contains examples to show you how to serialize or store J# application data.
- Support for .NET Serialization
Provides an example in which an object is created that implements Serializable and uses J# class library types as fields.
- How to: Write a Custom Serializer for a J# Class Using the .NET Framework
Shows you how to use the Externalizable class to store and retrieve GPS coordinates.
- How to: Deserialize Java Serialized Objects from the .NET Framework
Caches application information by serializing and deseriailizing basic customer information.
- How to: Convert Java Serialized Objects (.ser) to .NET Framework Serialized Objects
Contains examples to show you how to convert a Java serialized application to a Visual J# application with .NET Framework serialized objects.
Data Access
- How to: Display Data in a Windows Forms DataGridView Control
Explains how to present data on a Windows Form in a DataGridView control.
- How to: Bind Data to Existing Controls
Describes binding an existing Windows Forms control to data in a data source.
- How to: Bind a Windows Forms ComboBox or ListBox Control to Data
Describes binding a ComboBox or ListBox control.
- How to: Bind the Windows Forms DataGrid Control to a Data Source
Explains how to bind a control at design time by setting the DataSource and DataMember properties, or at run time by calling the SetDataBinding method.
- Walkthrough: Reading XML Data into a Dataset
Provides steps that enable you to create a Windows application that will load XML data into a dataset. The dataset will then be displayed in a DataGridView. Finally, an XML Schema based on the contents of the XML file will be displayed in a text box.
- How to: Use JDBC in an Application
Contains examples on how to set up a data source name and how to access data.
- Data Walkthroughs
Lists step-by-step topics cover common data and XML scenarios.
- ASP.NET Data Access (Visual Studio)
Discusses building data-driven Web pages.
Miscellaneous
- How to: Write a Class Loader
Shows how custom class loaders in existing Java-language applications can be modified to load classes from managed assemblies.
- Storing Settings for an Application
Shows how to open a registry key on a remote computer and enumerate the values of the key. The remote computer must be running the remote registry service.
- Generating Random Numbers in J#
Creates random objects with the parameterless class constructor and generates a sequence of random integers and doubles.