Results for "Volume: C_Volume2"
Create a new thread with ease.
Format Floppy Disk using API:Here is the code on How to Format Floppy Disk using API. Note -- This code can format your Hard Disk as well, so you should be careful!!!!
Show how to make a text box not beep but do something else when I hit the Enter key. This code example makes nothing happen, for an extended period of time:
The following code sample illustrates how to search from a given directory downward through the entire directory tree. The sample output from this example is directed to the system debug screen. For this example, the first class member (below) is called by a menu item. After the search is finished, a message box pops up. http://www.concentric.net/~cgalbrai/dirsrh.shtml
Here is a Freeware version of the Tetris game. Full Source Code - Its very good.
How do I get my application on top?To make your window truly topmost, use the SetWindowPos API call
How do I prevent multiple instances of my program? In VB 3 and above, the property App.PrevInstance is set to True if an older instance of the program already exist.
How can I change the printer Windows uses in code without using the print common dialog? How can I change orientation? You can change the printer the VB 3.0 Printer object is pointing to programmatically (without using the common dialogs). Just use the WriteProfileString API call and rewrite the [WINDOWS], DEVICE entry in the WIN.INI file! VB will instantly use the new printer, when the next Printer.Print command is issued. If you get the old printer string before you rewrite it (GetProfileString API call), you can set it back after using a specific printer. This technique is especially useful, when you want to use a FAX printer driver: Select the FAX driver, send your fax by printing to it and switch back to the normal default printer.
If you want to resolve address for DNS MX record, this source is very usefull.
This code shows some of the possibilities of WMI: You connect over a network (with username and password) to another machine; you can view processes, services and shares and execute command-line commands. There is a DataGrid used with DataBinding. It works under Win2k, WinXP and NOT under Win98 (I didn't try WinNT).
This tutorial will get you started with C# by introducing a few very simple programs. Please vote if it is useful You will Understand the basic structure of a C# program.Obtain a basic familiarization of what a "Namespace" is.Obtain a basic understanding of what a "Class" is.Learn what a "Main" method does. Learn how to obtain command-line input. Learn about console input/output (I/O).
This is a Dynamic Data Layer class library that would be used on a Web based multiple tiered application in conjunction with SQL Server. It includes a TSql Script for three supporting stored procedures as well as source containing several classes. Basically it queries the parameters of stored procedures and holds a static dataset with multiple tables to populate the parameters collection automatically while the web application is running. These can be updated by calling the update method for new or change parameters. During the development cycle no parameters ever have to be recoded due to changes in the requirements and new components never have to be coded.Bottom line is this library cuts 33% of development time on a Multi Tiered application.
This is a client that is used to connect to the TOC instant messenge servers that aol's quickbuddy uses. This doesnt use the oscar protocol that the windows program uses, but a more simpler version of it. That means, it will only have chat and IM capabilities. This is a very rough instant message client designed to show how to roast the password in c#, and make a succesful login with the server, as well as send and recieve messages. The only errors in the code, is if u recieve 3 messages from the server in one packet during login, it will fail, however just reload the program and try again. Also make sure that u find where in the code it says "toc_add_permit" u be suer and add the name of a buddy u want to talk to after that. Right now only users u permit can message u, but i am looking to find a way around this. Please be sure to give me some credit if you make your own c# aim client as i was the first in c#. Also i have included protocol.txt which should help anyone wanting to compltete this program.
Versatile Comport-component. Eventdriven I/O over the COM-port. Features functions like: Write(var Buffer; Count: Integer): Integer; WriteString(Str: String): Integer; Read(var Buffer; Count: Integer): Integer; ReadString(var Str: String; Count: Integer): Integer; Deleloped by Dejan Crnila.
How do I launch a file in its associated program? The Shell statement unfortunately only supports launching an EXE file directly. If you want to be able to launch, i.e. Microsoft Word by calling a .DOC file only, you can make your VB application launch the associated program with the document using the following method:
Access modifiers are keywords which control the visibility of class members and other code constructs. But if you are confused what and when to use one Go ahead and read on... and if you find it useful plz vote.
How do you avoid the "Invalid use of null" error when reading null values from a database?If you try to retrieve a null value (empty field) from a database, you will get the error: "Invalid use of Null". Here is one way to get around this problem: ..
A quick and dirty search script for pulling catalog items from a MySQL database. Supports the use of 'And' or 'Or' or 'Not' between keywords. by Kevin Clevenger.
Send Mail by C# in console. Simple view use of a class , properties (get/set) you can test it by using .NET SDK framework compile it with the csc command in console c:> csc ClsMail.cs after compiling it will give you the exe file
Create a toolbar/statusbar in a dialog. To add a control bar to a dialog, you must create the control bar as usual, and then make room for the control bar within the client area of the dialog. For the control bar to function properly, the dialog must duplicate some of the functionality of frame windows. If you want ON_UPDATE_COMMAND_UI handlers to work for the control bars, you also need to derive new control bar classes, and handle the WM_IDLEUPDATECMDUI message. If your dialog is not the main window of your application, you will also need to modify its parent frame window to pass the WM_IDLEUPDATECMDUI message on to the dialog's control bars. To make room for a control bar within the client area of the dialog, follow these steps in your dialog's OnInitDialog() function: http://stingsoft.com/mfc_faq/chapter6/chapter6_5.htm