Results for "Category: Custom Controls/ Forms/ Menus"
This demo code shows how you can put progressbars into a listview control. Same principle works with other controls,too. For example commandbutton, picturebox or combobox. Works with horizontal, vertical and keyboard scrolling. Changing the column size is also no problem. This demo uses subclassing. I used the subclassing control by SoftCircuits. You can get it for free at http://www.softcircuits.com. Or use your own subclassing code. It should be no problem modifying the program to get it to work.
This Common Dialog replaces Microsoft's Common Dialog as using that would just add one more dependancy to your project, where VB already has more than enough of that! Though it is by no means already completed as it doesn't already got colour or font picking abilities, nor does it have a print dialog. It's also not as easy as with the MS Commondialog to use this in your apps. I'll continue on this though as it'd be really great to slowly replace all of that dumb control packages (where you only need one control but got to include the whole file) with single controls, that can be used as usercontrols, not as ocx's which is by my opinion much better as you don't have to take care about the registering and stuff... I dont really trust the setup anymore.
Updated! Very nice command button (ActiveX control) with gradient filling. If client screen color depth is 256 colors or less – looks as regular command button. You can change caption-image order (position) from left to right or top to bottom. When created this control - used two algorithms from www.planet-source-code.com. Want to say personal thank you to: Rocky Clark (Gradient filter algorithm); Manuel Augusto Santos (Emboss filter algorithm). Please rate it! E-mail bugs to SergeyO70@HotMail.com. Feel free to use this control in your application (if you'd like to) as much as you want. If you'll modify it - please leave my name in the About box! Enjoy! PS: (Please rate it)
::UPDATED:: With these procedures, you can make your Delphi forms translucent [see through] using some API that's in Win2k and Windows XP. If you like it, please vote. This is written in the newest Delphi version (6).
Create DOS like Shadows to your form with just one line code
Guys as i promised, here am back with the resizeable and moveable version of Translucency OCX... a Novel method to implement translucency to your VB Forms, with just a single line of code !!!!! You expect it to be more easy ????
Circular Button Control
Create Translucency to your forms.. by a single line of code.....
Example of control that splits another two
This is an enhancement of Dr. C's code submitted today. His code dealt with EASY TO IMPLETEMENT API Based AutoCompletion Class which features an auto-dropdown option for VB Combo Boxes. He should get full credit for the class developed. It is very good work. Further enhancements made to his fine work includes (1) a simple database which loads the combo box with values, (2) a primary module containing useful stuff, (3) Added a Gotfocus and LostFocus to Combo box to manipulate the displayed value, (4) added ENTER key acceptance capability. His original code can be found at http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=34618&lngWId=1. Users can type in some existing value or create a new value "on-the-fly" into the Combobox. Try it and see. I felt many of you would like the changes so I am posting them. Let me know what you think.
This is the source code to a custom control that will give you more power to work with VB forms. Extra properties, functions, and events including FormMoved, SysTray Icon, Form Shape etc. This is a useful tool even if I do say so myself, I use it and you will notice that if you down load my next Upload called System Mage (Wait and see!) WARNING: Terry has pointed out a glaring error in my code that has baffled me. Somewhere along the line I have coded an error into the property page that causes an error and I haven't located it yet. I'm going to warn everyone about it until I fix it but leave it on here so you can still use the example of the functions in the control. If you see my mistake then pls let me know! Cheers.
Making Animated Gradien Label. Changing the background of a label.
Explode the form.Zoom in and Zoom out the form
This is not just a standard DirectoryTree control. It is enhanced over the various submissions here in several ways - firstly, it doesn't use the Dir$() command, or the FSO for two reasons: 1) speed, and 2) filesize (The FSO adds a huge dependancy). Instead, it uses API wherever possible. Secondly, it doesn't use dummy nodes to simulate children, but instead it popuplates each node fully, then uses the scarcely documented ApiSHChangeNotifyRegister API to register for shell change events (When a folder created, renamed, moved, or removed). This produces a control that is well integrated with Explorer. Lastly, it has a right click menu to allow controls over the directories - renaming, creation and deletion. Any action you perform on the control will be performed on the local disk! If you rename your desktop, it will really be renamed! (So don't do it.. :D) It's been tested on several Windows systems, but if you find any bugs, I'd love to know about them. If you like it, vote. Thanks :)
Creating bar and line charts is fairly well documented on the MSDN CD, but 2D XY (what I call XY scatter graphs) are not. This example demonstrates a method to not only create 2D XY graphs, but also plot multiple series on the same chart. The things that need to be done are pretty esoteric, including using multiple DataGrid columns for each series, removing null points from one or more series, etc., which makes this kind of graph very unique. This example also illustrates some other properties and methods that can be useful for other types of charts.
Syntax Highlighter with linenumbers. Also has the ability to load syntax and colors at runtime, which makes it great for multi-language code books. ## EDIT ## I managed to get the tabs to work nicely using Paul Caton's Keyboard Hook (http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=42918&lngWId=1) For the next version I am looking to have Undo/Redo capabilities.
This control allows your users to change the label captions of your fields at run time. I think this is a unique aproach and concept to customized legends. A lot of my customers sometimes don't agree with the captions I use on certain forms (nitty gritty:) so I sat down one afternoon and cooked this activex. Is not very commented but the code is very simple and easy to follow. This is a quicky control, and if you like it then I will try and improve it. This is the very first time I upload a code to planet source and any comments will be highly appreciated and motivate me for more uploads. Thanks !!
Here is mseditor2 greatly updated from mseditor1. I received many emails with a lot of ideas as to what to add to the control. This is the new version. Now you can print WYSIWYG, insert pictures, files and OBJECTS (Like msword Charts, excel, ANYTHING). You can find and replace text without affecting its formatting. There is a status line with current line, column total lines etc. I did remove the databound properties but this is only a couple of lines of code anyway. You can always implement this outside the control. If there is interest I will add more features. The whole idea is the same. Just THROW the control into a form and USE IT. In the examples in the screenshots below there is absolutely no code in the form, JUST the control. It is fully parametric with a lot of exposed ‘methods’ which you can call from your program. There is a technique for a form to call back on the control (in the find replace form). This might be educating to novice programmers. If you don’t want almost instant status refresh then remove the timer and its code. The status gets informed when you change something or click the mouse somewhere. It’s a lean mean word editor and with your help it gets better all the time. Thanks for your feedback, both online and into my mail box.
I needed a simple msword compatible text editor in various parts of my system. So I sat down one night and designed this ActiveX control which you can 'throw' into any form. You can even bind it on a database. No technology breakthroughs here. Just lots of time saving when you want your users to have some control over what they write and you want to save them exactly as they want. It uses the richtextbox encapsulated as an activex and so you dont have to write any code every time you need a simple editor. Just throw it in. You can enable or disable the "New', 'Open', and 'Save' buttons. Some of the code for the richtextbox comes from some other contributors of planet-source, but I dont remember from who. Dont have to vote for it. I just hope that you find it useful.
I always wanted to 'imprison' microsoft word and this is the execution of the sentense. I wanted word to reside inside an activex control and not run by itself. I also wanted full control of it and also use it as a report generator. Of cource you must have microsoft word 2000+ on your computer (Sorry for that, but we are going to IMPRISON it so feel a bit better). I have only tested this with word 2003 and I would like your feedback. First loading can be slow (Microsoft!!). This is the VERY first version (pre-alpha) and any comments will be highly appreciated. Forgive my dirty programming demo program but this is the work of a single day and I put effort on the control and not the demo. The concept is for word to live inside the Webbrowser control. You can create named bookmarks and replace them with values at runtime. This is the backbone for custom reports (or templates like reminding letters etc). You can insert pictures, files etc at will anywhere. You can toggle various things on-off. You can print, load and save documents in various formats (see code for 'Save File'). Click on the 'Load Test file' to test the predefined bookmarks. Also there is a technique to load files from the resource file (see code in the control). Well I hope that somebody out there wanted something like this. I wil keep on improving it as I need it in one of my projects (Radiologist reports with IC10 codes etc) but thought that I get some feedback from you while at it. If you care to vote then please leave a message as some sort of feedback that will help me in this project. Have fun and enjoy VB = Very Beautyful :)