Results for "Category: Custom Controls/ Forms/ Menus"
This control lets you have Office XP Style or Rendered Toolbar buttons (useful for skinning forms). The style can be switched dynamically if you like. See the 'SetButtonStyle' procedure on Form1 for details on using the control. The control includes Steve McMahon's excellent vbAccelerator Subclassing module, and some snippets picked up from Planet Source Code - thanks to all! Feel free to use and/or improve the control - comments and suggestions very welcome. Hope you find it useful!
This control is like Windows Task Manager performance scrollers. It's pretty simple, so the lack of comments :-( shouldn't be a problem. The main useful bit is bulding the scroller in a hidden picture box, and using bitblt to move it onto the UserControl (so we don't have to keep adding to the memory required for the display). There are a few properties for the colours and grid settings, and the whole thing's runtime resizeable (though I don't know why you'd want to do that). Feel free to use/modify/improve etc. this for your own stuff - hope you find it useful!
If you are interested to develop any data driven form application. The Important Basic Code to do so... Try it out... Give me your vote ...
A simple ProgressBar, created in pure code VB, not use the use of Api or Ocx and relative dependencies. The ProgressBar has been created with the PictureBox and a timer from the code you can set up the color of the ProgressBar, the font of the text etc... The code super is commented in Italian. Please vote for me!
This small program shows you how to use a label as a command button and how to apply some cool effects to these labels, like lighting up when your mouse pointer hovers over them etc. This example also explains how mouse based events work.
This will center forms and when you maximize the form the Command Button which you click to re-center it will be disabled.
This little code will allow you to change the forms colour using Scroll Bar and Text Boxes, this can be changed to change the colour of a Text Box, etc. Please vote and leave your comments :)
This is my first submission to PSC. I posted this to .NET category by mistake. Hence i am posting it again under Visual Basic category. The Caller ID ocx is an activex control written in pure Visual Basic using TAPI 2.0. This control works with any line device that supports TAPI. The device can be a voice modem or any telephony board like DIalogic etc. The control is able to detect Caller ID and Caller Name provided you have subscribed for Caller ID facility from your local telephone company and the line device also has Caller ID feature. It May not work with voice modems properly. voice modems are often not very stable as far as TAPI is concerned. Make sure the proper driver is installed for the modem and the modem supports Caller ID feature. I tested with D-Link-562E+++ voice/fax modem and Dialogic D4/PCI voice board. It works fine for me. Please use it at your own risk. I am not responsible for any damage done to you.
Displays Numbers. Looks like a real LED display like the one used in Digital Clocks. (Except it offers more colors)
Displays the progress on a cursor. It doesn't seem to work on W95/98 machines, I apologize for that. I have developed this on a Win2K and never tested it on other versions of windows. If anyone gets it to work on 95/98, let me know. :)
Creates a translucent window. No DLL/OCX, No flick, No Static, No headache !! You create a new form, copy and paste into General Declarations section, and [F5]... " Já foi pra conta!" It's done... >
Some articles in web just demonstrate how to set the bgcolor of a listitem with equal space,but some time ,we need set the color with the value of the listitem. the following code demonstrate how can i do it.
I looked on planet source code for an image hover button (a 3 state image button that changes pic when mouse is on it.) Couldn't find any... So I decided to make my own, and since I am so nice, I uploaded it to PSC. Sending comments will motivate to give you more... ;)
What this code does is it subclasses a listbox's parent (in order to trap the listbox's messages), then the listbox (in order to change colors). I have commented the area's that you will need to change in order to change the colors.
Add system date format detection. SunMoonInfo v3.0 Add MoonInfo and name changed in SunMoonInfo. The routines for MoonPhase and MoonPosition are adopted from Thomas A. Swift, Lunar Calculator 2.1 and can be found at: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=66957&lngWId=1 Some little corrections are make. Second Version: Fixed some bugs, add Twilight times (Atronomical, Nautical end Civil) Add sub: SunPosition(Byval IsDate As Date), returns in Event ResultSunPostion the values: IsDate, SunAzimuth, SunZenith and SunElevation. You can also show the times by UTC. Decimal sign bug fixed. SunInfo returns the Sunrise, Suntransit, Sunset, Equation Of Time and Sun Declination of the selected city and date. You can add, change or delete cities. They can be saved in the file CityInfo.dat
Add BorderColor property A simple ProgressBar control. You can set the control horizontal or vertical. Change te bar color, caption alignment. See the control properties for more settings.
Add BarBorder and BarBorderColor properties. A simple round SearchBar control, in LED style. If you use the WebBrowser control and searching for pages you can use this control to show the browser is searching. After a search cycle it returns the number of cycles and bars in the event: Cycle(Cycles As Double, Bars As Integer) Start the control before browsing and stop it after DocumentComplete. You can change the numbers of bars, colors. See the control properties for more settings.
Updated with ReceivedData event and add a demo for receiving data while the app is on the systemtray. Start DemoReceive and DemoSend, place the Receive app on the systemtray and send a message with the Send app. This class module will help you to put your app on the systemtray on the right way. Events supported: - BalloonClick() - BalloonClose() - BalloonHide() - BalloonShow() - BalloonTimeOut() - Click (Button As Integer) - DblClick (Button As Integer) - Mouse Down (Button As Integer) - Mouse Move () - Mouse Up (Button As Integer) - ReceivedData(Data As String) Read the txt file for more info.
Some little chamges are made in de sourcecode Fixed some bugs Add properties so the user can customize the ComboBox button. Update, some bugs fixed. This control subclassed all comboboxes on the parent form and chaged the skin of all in the windows themed skin.
Add UseParentBackColor Property. What determines whether the parent background color can be used as background color. (Only if Windows is not themed or ButtonType is set as OptionButton or CheckBox!)" Fixed some bugs for use the button with the arrowkeys and change some code so the functionality of the OptionButton and CheckBox more looks a like the default controls. Add extra property for the Defaulted state of the user themed CommandButton and fixed bugs for the not themed windows OptionButton and CheckBox. Change the default Value for the OptionButton and CheckBox to Unchecked, same as the VB-controls. Some bugs for the OptionButton and CheckBox are fixed Fixed some bugs, add OptionButton and CheckBox properties (the OptionButton can also be used in a multi selection array) Add single corner roundings for User themed button and fixed some bugs. Update, a little bugs are fixed and add properties so the user can customize the button. Update, some bugs are fixed. This is a Themed CommandButton control. It takes the skin of the selected windows theme, also in Windows Vista.