Results for "Category: Custom Controls/ Forms/ Menus"
This template form allows programmers to let their programs have the new look of Windows XP without coding a new user interface.
Version 2 This is a response to Jorge who asked how to save the picture including the frame. Uses code from 'Screen Capture Class Module' http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=24651&lngWId=1 . The class code has been merged into the UserControl. I also added UniqueName routine which creates numbered file names to simplify saving files, it simply adds bracketed numbers to a preset filename. I semi-hard coded it to App.Path & "\PicFrameCapture.bmp" you could edit it in VB or add a property that allows you to specify the name(be careful to include a default filename in case users don't supply a name. Version 1 This is a response to Ralnautikuus upload 'BackBorders' txtCodeId=55728. Still not perfect but cute. You can create a decorative form which conceals additional controls behind the decorations, by modifying the menu on the UserControl you can extend or limit the end-users ability to interact with the control. ----------------------------------------- Suggestions, bugs gratefully accepted.
Ver 4 Update on ClsPictureLoader. NEW Crop images before pasteing to RichTExtBox. OLD (But improved)Load picture to RichTextBox with resizing (width, height or proportional). Flip image Left-Right and Top-Bottom. Re-size inserted pictures proportionally with the class (better than doing it by the built-in RichTextBox behaviour). Export RTF document images to BMP. Improved interface with toolbars. Apologies to VER3 downloaders, I forgot that SavePicture is only BMP.
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.