Advertisement

Results for "Category: Miscellaneous"

ASP_Volume2 #35054
Is Form Loaded?

This function will tell you if your form is loaded (instantiated) or not. If you use the form's "Visible" property to determine this, the form is instantiated if it's not already loaded. This results in the form's "Load" event being executed unnecessarily. This function has none of the above overheads...

ASP_Volume2 #35072
ListView SubImages

This code show how to place images in the subitems of a listview. It also has a function for placing the direction arrow in a column header to indicate the sort direction while compensating for existing header icons.

ASP_Volume2 #35083
Auto Show/Hide Vertical Scroll Bar in TextBox

Auto-show/hide vertical scroll bar in a multi-line TextBox control. If you set the ScrollBars property of a multi-line TextBox control to 2-Vertical, the vertical scrollbar will be displayed whether or not there's any text in the TextBox, or the length of the text exceeds the visible area of the TextBox. So, if there's more text than the TextBox can display in its client area, then the vertical bar will be enabled, if not, it will still be displayed but disabled. This code subclasses a TextBox to intercept WM_KEYUP and WM_SIZE messages, and compares the height of the text to the height of the client area of the control. If the height of the text is greater than that of the client area, the vertical scroll bar will be displayed. Otherwise it will be hidden. So you don't have to see the disabled scroll bar when there's no need for it. I resorted to subclassing particularly to watch for the resizing of the TextBox. In this sample, the TextBox's size changes when the form is resized. Therefore subclassing may not be necessary as the Form_Resize event is perfectly suitable for doing whatever's needed. Yet the TextBox's size does not always change because of the form being resized. For example; there may be a splitter on the form, and the TextBox may be resized by that splitter. Or for some reason, the size of the TextBox may be programmatically changed. In such cases, I can't think of any way but subclassing to catch the TextBox's resizing. The portions of the code pertaining to subclassing are, of course, nothing new as they are right out of Bruce McKinney's well-known "Hardcore Visual Basic", though a bit simplified. But for the rest of the code, I'd appreciate all feedback.

ASP_Volume2 #35105
Understanding Hex, Binary and Decimal Conversions *Update*

Never quite understood how Hex, Binary and Decimal worked? Neither did I until about 2 hours ago. This will go through and explain How it works. Even if your not a VB programmer this could be useful. also contains 5 easy to use functions to show you how to do the conversions effortlessly in vb. Functions include: HexToBinary, BinaryToHex, AsciiToHex, HexToAscii, AsciiToDec. Now saved in html format. Please Comment and Vote!

ASP_Volume2 #35115
sending sms over handy Version 2

This code now encodes a text in a 7-bit-pdu string and send it over your datacable to your siemens mobile phone and send it away as an sms

ASP_Volume2 #35117
simple - powerfull - one line code commands

In this article i don't try to explain complicated code,but i will just tell you some simple but very usefull commands.I wrote this for beginners but i think many people who are not beginners can learn some usefull tips

ASP_Volume2 #35129
How To Create Types and Enums

Here I am with another useless tutorial. This will explain How to create and use Types and Enums. Dont know what I am talking about? Download it and read it then. Anyways, please Vote and Comment! (Pictures Now Fixed)

ASP_Volume2 #35137
A few things you may not have known

Just a few things about vb that will probably be helpful to you once in a while.

ASP_Volume2 #35155
IE PopUp Killer

Expanding on Nate Strandberg's excellent code, I have added a few features such as the ability to open a new window by right clicking and also the ability to click a link which normally opens in a new window. I have also added a flashing icon when a popup is killed so you know. If you want to hear the popup being killed, just uncomment the sndPlaySound code ;-) Also added code to run the program at window start. Original Code Available here : http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=28914&lngWId=1

ASP_Volume2 #35158
multiple arguments

Do you want to pass multiple arguments to your function/method? There are two ways to do this using unbound array or you can use 'ParamArray'. ParamArray is really a professional way to proceed. Here is the sample code to make sum of numbers to make you clear how to pass multiple argument to a function.

ASP_Volume2 #35168
Technobot (Msn Messenger bot)

A simple messenger bot, cointains an email bomber, plenty of basic messenger enhancements features, a great flooder with pictures instead of random rubbish text. A great picture generator with saving facilities. Makes good use of registry and saving. Take a look and give us a vote if you like it ;).

ASP_Volume2 #35188
CUSS Word Filter OCX Plus Source

Word Filter OCX + Source..I made this for a chat program to watch and replace cuss words for ppl who choose to block them..Its Pretty EZ to understand. Dont forget to vote!!!

ASP_Volume2 #35212
Combination Key Presses

This is another example of using Key Combinations to trigger code. It's pretty well commented to help beginners. Hope you like it.

ASP_Volume2 #35224
Non-Repeating Random Number Generator

A few days ago, TimeStink uploaded a piece of code called The Best Randomizer Ever. I just uploaded this to show TimeStink a much faster way to do the exact same thing.

ASP_Volume2 #35229
Animated Cursor for Beginners

This is just a simple way on how you can manipulate icons to simulate animated cursors in VB. This is just for beginners and I hope this will help. Coming up! The ultimate winsock tutorial for newbies

ASP_Volume2 #35230
Skinable Form (2nd Release)

This is an Update of my Skinable form. This version allows you to load/Save the location of everything on the form form a textfile, it even hold values to textboxes, captions, checkboxes, option Buttons. It also Comes With 10 More skins to choose from. Please Post Comments and Vote if you think its needed!!

ASP_Volume2 #35231
ImageBrowser

Effortlessly browse through image files in directories with thumbnails being displayed for each picture in the directory. The thumbnails are put into a listview and the file name's are included.

ASP_Volume2 #35255
Treeview MouseMove

When a user moves the mouse over a node in the treeview, the node is highlighted and the node text value can be passed. In the example, I pass the value to a text box.

ASP_Volume2 #35263
Web Messenger

Web Messenger is a simple TCP/IP messenger application just like MSN Messenger.

ASP_Volume2 #35280
Show all Domains and Computers in LAN

After searching for this without results for about a year, I put all little bits of code I have found together and created these two Class Modules. One Class Module handles the enumeration of the Domains / Workgroups in your LAN, the other handles the enumeration of the Computers available in a specific domain. Included is a small demonstration program (as shown in the screenshot). Because of the Class Modules, you can easily add this functionality to any other program. This has only been tested on Win98 SE (so it does work on Win98, not like most other examples I have found, they only worked on WinNT). If anyone has problems with the enumeration on certain systems, please let me know so I can work it out. As usual, please leave comments, and vote if you like.

Languages
Top Categories
Global Discovery