Results for "Category: Custom Controls/ Forms/ Menus"
Hi Make 3d Text In Your Form With Small line Of Code 'Give Me Your vote !!!!!
Shows a good way to make a form a child of another form without the jumpyness of using just SetParent alone.
That code was created by Brad Martinez from http://www.mvps.org (Copyright © 1997-1999) i just compiled it to VB6 Sp4 and made a little adjustment. This code use a listview to simulate a control with a treeview and listview like this one we see on Kazaa or Morpheus. Enjoy.
BAS module that allows you to print PostNet (aka 3 of 5) barcodes used by the US Postal Service. Can output to printer or screen (i.e. form, picturebox, etc.) No DLL/OCX/TTF used. All code.
this coding simply is for beginners and allows you to move your form without a titlebar, or with you own custom titlebar!!!
Learn how to make ur own screen saver lookalike with this simple code!!!! please comment and vote!!!
This isnt the best example for using a tabstrip... but i felt i needed to submit something... i hope it helps someone out... email me with comments... and as always... VOTE!!!
This submission uses APIs from ComCtl32.dll to create a drag list box (a list box that enables the user to drag items from one position to another). It includes a class that will do all work for you (after having been initialized with three lines of code) and a sample showing how to do that. Please note: You'll have to register the file SSubTmr.dll included in order to make it work properly.
We were trying to create an application in a COM enabled programming envoriment, and needed the weeks shown in a calendar. We came across a bug in ALL of Microsoft's calendars (including Outlook) that will list the wrong week number on certain years. E.G. December 2003/2004. We made a custom VB OCX that does the trick, even thou it's not as pretty as the Microsoft one.
This code is the simplest form of Scrolling Text. It uses a Timer controle to make a label scroll. No consideration is required for screen cordinates or size or any other thing. Have a look at this simple scroll text application and Please do rate it :) I am watching from sachinweb@hotmail.com
I wanted to share what i have learned about supporting XP themes in your existing apps. Note that the themes will only be visible if you are running Windows XP. Any other OS and they will look as they did before. First, make a manifest file for your app. This is fairly simple and samples can be searched for at PSC (go to http://www.planet-source-code.com/xq/ASP/txtCodeId.27928/lngWId.1/qx/vb/scripts/ShowCode.htm and that code will generate one for you). The second thing i learned is that certain controls, especially the option button, will not show up correctly in a frame(ie ugly black box around the option control). This can be resolved by putting your control in a picture box inside the frame. Second, a command button that is set to graphical style will not show up themed. The button has to be a standard style. Note that this property cannot be set through code, it has to de done via the properties in the IDE. Hope this helps.
Wow.. talk about cool replicas. I used KR's Awards winning Gradient control for this code. A Custom Control that when placed on your form mimics the red swooshing light on the front of KITT, the car from Knight Rider. You can change the BackColor, ForeColor and the speed at which it swooshes.
Choose the point from where this laser will write your text , draw a picture , or both. You can choose any kind of picture ,and laser will perform this cool effect while drawing her. Here , I used , a real picture + *.gif + text + www. banner at once . Have you ever seen , how it looks like while laser writing on the night sky. Don't wait for that , you can simulate it here. I will appreciated any further work with this effect , and if you like it , than Vote !! Enjoy !
Recently a person calling himself Dustin Tinsley submitted source code for a UserControl to emulate the vertical graphical menu style popularised by MS Outlook. When I pointed out to him the amazing similarities between his code and one which had been written by one Robert L. Kubelka, and made available on other sites about three years ago - the similarities extended to such things as identically worded comments, spelling mistakes and even typos - he immediately removed my comments and any other subsequent postings. Ian Ippolito has since then deleted the code and I offered to upload the original. Should you feel this code is worthy of a vote, please do not vote for me - it is not my code (either!) - I'm sure the original author would appreciate a note of thanks. Thanks also to Ian Ippolito for keeping PSC honest.
I had always found it frustrating when I needed to convert a bitmap into an icon because popular software such as MSPaint or paint shop pro does not do it. Here is a small VB program that converts a bitmap to icon. Alessandro wanted to know if he can display the image before converting it. (Done)
menu system
This code will minimize, maximize and send keystrokes from within your program to any application.
This code creates a horizontal or vertical line with a 3D look. You can see it almost in any Windows Application. This is dead simple code to understand. I saw the other 3d Line OCX in a code of the day, and it didn'y include source code. I hate including OCX's so I made my own. If you like this code, vote for me!
When this OCX is dropped onto the form, it makes it EXTREMELY easy to set the WHOLE FROM Transparent (well everything except the controls). It can also just set the container transparent (everthing except the controls and the title bar). Please give this a go and give m some feedback as i'm new to this stuff. NB: The original code is not mine i've just downloaded it from somewhere and made it alot better (well, i thinks so anyway). This zip comes with an example app and a compiled OCX.
This code example will append a separator and a new MenuItem 'Always on Top' to the system menu of any form. The menu is affected weather left clicked from the control box on the form or right clicked from the taskbar. Subclassing is used to trap when the 'Always on Top' item is clicked. The custom message handler uses the SetWindowPos function to keep window on top or reset it to normal. Also on a lark I traped out the close menu item to prompt before closing. If you say yes then the close message it passed otherwise the close message is traped out and the form stays open.