Results for "Category: Custom Controls/ Forms/ Menus"
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.
Quit your application with animation
An example for beginners, showing how to use the MoveToEx and LineTo API calls. Gets the current time, converts it into (x,y) coordinates and draw the "clock"...DON'T FORGET: DON'T EVEN THINK ABOUT VOTING FOR ME!!!
This is a UserControl i did for a recent project. It almost fully emulates Windows taskbar functionality. Written from scratch, uses heavy advanced API and subclassing. Code greatly inspired by submissions to this site and vbAccelerator.com. Everything is done the hard way, the way a VC++ programer would do it. And btw, lots of lame code here. Don't know why people upload so much rubbish. I'm a professional VB coder and maybe my judgement is too harsh :-)) Anyway, don't bother to vote but do comment here. Enjoy,
Render 3D Objects using a inputted list of vertices and polygonal planes on a X, Y, Z environment. Originally an Object loader for a scrapped chess game. Render in wireframe or vector shading. It's not very well remarked, but I'm sure most of you will understand it. I hope you like it.