Results for "Volume: Java_Volume1"
This code is an example of how to send text to the Ultima Online game window (to say out loud) using API and not SendKeys like most people do.
This will center forms and when you maximize the form the Command Button which you click to re-center it will be disabled.
Paste into a fresh project's form1. on unloading the form, you can specify combination effects on how the form will disappear. This code is *not* mine, I found it on allapi.net. Simple effects that lend a touch of professionalism to an application. hope u like.
This very, very, very and again very easy example shows how to create font device nad how to set background and draw text using DirectX8 (->see screenshot). For beginers.
A single class capable of drawing the solar system from Sun to Pluto (including 500 asteroids and 9 moons). You can easily add more or design your own solar system. At present the orbits are circular and the comments a bit thin on ground but should be enough to get you going. Thanks for inspiration, assistance and support to Peter Wilson whose upload 'A Simple Solar System Simulator, v1.0' http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=47973&lngWId=1 inspired this. -------------NOTE--------------------------------- If it runs too slowly reduce the number of asteroids at Private Const AsteroidNumber As Long = 500 . I have run it with up to 5000 but the graphic is not that much different and very slow. ---------UPDATED-------------------------------------------Thanks to Peter Wilson who imporved his zooming code and kindly sent it to me. Have added a new solar equator view, labels for planets and moons, improved collection based functionality, Asteroids do not display orbits (un-comment piece of code if you like that). All orbits are now ellipical and Pluto has its eccentric orbit (not accurate will get almanac from library to fix that). Planets have extra properties (oblate= Flat). ------------ CODERS this class automatically produces the labels it needs to operate without a seed control. Cute Trick extended on article in Computer Shopper Jun 2003.
I had problems using the datagrid attached to an ADOdc control. Here is what I found.
A little use of inspiration for a magnificent effect...
Ever wanted to preserve the formatting from VB when ur posting an article? well this nifty app will do just that! it converts any VB file (i.e. .frm .bas .cls .ctl) into a formatted HTML File!!!!!!!! no more truncated code on psc :P Includes well thought out error traps, and a has taken a long time to write so please comment/rate :) thanks. steve b
Like (Ping) IP address
For all of you who know what a resource DLL is , well this class will help you load a BMP,ICON,CURSOR or PLAY a WAVE compiled in a DLL Resource.
PART 01 - This tutorial will help start-up any beginner or intermediate programming into Visual Basic as it explains using the toolbars controls and what they do. If you like it then please leave your comments etc and I may consider finishing it off :)
Features : Since Version The First Version To This Version * Word wrap , * Clipboard Options , * Can Launch Another Editor If The File That Is Being attempted too be opened is too large , * has an Options dialog * Can Be Used on the command Line and , * Can Be the Default text Viewer for (*.TXT) Files...... * Set Font * Find Dialog * AUTHENTIC windows core component Properties dialog , Strait From the windows API !!!! * Launch New instance , Through A menu or dialog * Has a Toolbar , COOLBAR * Has A Clipboard Viewer , Editor * Full screen Mode * Recent File Menu * Undo Option Added * Option Too Alter NextPad's Thread Process Priority * Option For NextPad Not Too ask Too Launch External Editor , Just Launch it. * Better Toolbar Now it's a CoolBar * Better Launching of a New instance Because Now you can add command line parameters * NextPad Now Has An Option Too Remember Previous window Position And Window state * You Can Now Set The Back Color And Forecolor Of the TextBoxes * Better Text File Manager * Able Too Move File * Ability too Choose open File Method , Binary , Input * Smart File Opening Which Is Smart Because it detects which File Method to open the file with * Windows Can Stay On Top * Ability Too Print Documents In NextPad Or The Text File Manager , In Color Or In Black And White * Replace Dialog * Text File Manager Has Options * Text File Manager Can Delete A File , Or Send it too the Recycle bin * Text File Manager Can Shell The Document Opening it with The Program associated with the file * Text File Manager Uses Smart File Opening * You Can Now Set The Font For The Text File Manager * NextPad Has A Tip Of The Day Dialog * NextPad has a file Browse Bar * AND SO MUCH MORE NOT LISTED !!! * Better recent files menu, no more limit etc... * Added favorites menu. * Fixed bug where you couldnt open files larger than 65k in Recent File and Organize Favorites dialogs. * Fixed bug that is activated when you click No to a message box asking you to open a file to large for NextPad to open, (only triggered when opening a file from the command line). * Made work around for bug where you couldnt set the clipboard text, while using the vb clipboard object when using the manifest file. * Existing features that have needed much improvement have been improved (allowing NextPad to work more efficently). * Existing code base has been improved. * Replace dialog has been improved including new replace functions such as make replacement uppercase, etc. * Fixed bug where if you had minimized the main window, then closed it with the "Remember previous window position" option on you could not see the main window the next time you started NextPad. * Added new "Insert" menu so you can now insert tab's and new line's into your documents, etc. * Added new "Make Selection" menu so you can now make the text you have selected inverted,uppercase,lowercase,etc. * Updated clipboard window. * Rename feature added allowing you to rename the file that is currently open. * Calculate size feature added allowing you to check the size of the document before you save it. * Refresh\Revert feature added allowing you to refresh the document currently open. * Manage clipboard dialog has taken the place of the two pointless ones. * Tip Of The Day dialog has been finally updated. * Main Toolbar has been revised again to look and feel better when in use. * Added insert at beginning of document and insert at end of document menu. * The BrowseBar has been improved nicely, its appearance has been altered slightly also. * Fixed bug that occured when you dragged a file from explorer onto NextPad's icon, then the file would not open. * Add Directory function added to the favorites dialog. Thanks If You Like It PLEASE Vote Otherwise PLEASE LEAVE YOUR SUGGESTIONS AND ANY CRITICISM YOU HAVE, PLEASE LEAVE COMMENTS !
This code shows how to use many API functions in "menu" category (see the screen shot!). Viewing this code you can learn how to disable close (x) button on title bar, how to edit system menu (minimize, maximize, close, etc.) of specified window, how to remove items from menu, add small bitmaps next to the text in menu items, get handle to system menu, menu of window and submenu, add as big bitmap as you want to menu item, hide menu on command and count menu items. It also shows how to use window procedure (called by AddressOf), how to hide your application and add icon to taskbar status area and how to open internet pages without using any controls. UPDATED: now you can add to menu also icons!
The Code auto-resizes all columns of a DataGrid. The longest string of a gridcolumn is the new width of the column. Similar to this ListView- or FlexGrid- feature. I havn't found anything similar here, so I just want to put it in the codebase.
This will show beginners how to use simple If Statements why telling them if it's the weekend or not. Please leave your votes and comments :)
************************************************* *** updated to correct day 1 positioning *** ************************************************* *** Updated to use dateserial as per comments *** ************************************************* * I will convert this to a wallpaper stamper * * real soon * ************************************************* Basically draw a formatted calendar month to a picturebox. All in a self contained class. Fancy having a batch app that when you start up your pc, it takes your wallpaper and sticks a calendar in the top right of your wallpaper! This is the class to base that on! I will write the whole thing, but in the meantime a fully functional class!
This is a nice program for Browsing through the MS Access file i.e. *.mdb. It works quiet fast comparatively. This shows you the number of tables present in the selected Database. Further it will show the fields in the selected table.Theres also a provision for seeing the whole selected table in the grid. Its quiet a good thing for using & even for the users who are not well known with the usage of Access Databases & dealing with the uncertainity tables into it.
Memory monitoring
Grabs your LATT/LONG by zip-code from the US Census zip database.
Further developments are found at: http://groups.yahoo.com/group/cliMgmtSys