Skip to main content

Posts

Showing posts with the label Programming

Round your corners

  Many people face a problem when it comes to drawing the controls with rounded corners. So I got down and dirty with some simple drawing and came up with this. All you have to do is to call this Sub Procedure with the parameters passed to it and you are done. Enjoy!   1: Public Sub DrawRoundedRectangle( ByVal objGraphics As Graphics, _ 2: ByVal m_intxAxis As Integer , _ 3: ByVal m_intyAxis As Integer , _ 4: ByVal m_intWidth As Integer , _ 5: ByVal m_intHeight As Integer , _ 6: ByVal m_diameter As Integer , _ 7: ByVal g As Graphics) 8:   9:   10: Dim path As New GraphicsPath() 11: 'Dim g As Graphics 12: Dim BaseRect As New RectangleF(m_intxAxis, m_intyAxis, m_intWidth, 13:

compile Online

  For compiling a C , java or a VB project you need not download and install huge and bulky IDEs or Integrated Development Environments. The Web has everything for you now- nice and easy. All you need to do now is to go to the following site, register and you can create, compile, run and store your projects right on the web. http://compilr.com Languages supported :- PHP C\C++ Ruby Java C# VB The only thing you have to do is to sign up and you will get a 250MB storage space for free. Happy Coding folks!

Another Timer Demo

What this done is simple. When I click on a Button the progress bar will show for 5 seconds and then some other work can be done. Well, here it is. 'Simple Timer demo by Sarthak Ganguly 'Released under GPLv3 Share Alike License.   Public Class MainFrm 'Say 2 seconds is the default timeout 'You can change it from here or make it a 'property with Get and Set statements 'you can increase it to 3,4,5... seconds Dim timeLimit As Integer = 50 * 100 '(milliseconds) Dim temp As Integer = 0 Private Sub clickBUT_Click( ByVal sender As System. Object , ByVal e As System.EventArgs) _ Handles clickBUT.Click 'Start the timer aTmr.Enabled = True End Sub Private Sub aTmr_Tick( ByVal sender As System. Object , ByVal e As System.EventArgs) _ Handles aTmr.Tick 'The timer ticks :) with Step 100ms progBar.Value += OneStep() 'Stop the Timer temp

Enable God Mode in Windows

You can enable “God-Mode,” a term devised by the Microsoft development team, which provides a single place to access all Windows settings without needing to browse options and folders in the Control Panel. To use it: Create a New Folder Rename the folder to God-Mode.{ED7BA470-8E54-465E-825C-99712043E01C} Note that you can change the “God-Mode” text, but the following period and code number are essential. The folder icon will change — double click it to show the God-Mode window: The window shows nearly 50 sections with quick links to configuration options. Strictly speaking, it’s not a God Mode since all the options are available elsewhere. It’s more akin to an “all tasks” list — but you may find it easier than stumbling through Windows numerous screens and panels.   Warning The trick appears to work on both the 32 and 64-bit versions of Windows 7. Vista 32-bit and Windows Server 2008 32-bit should also work. However, it is known to crash 64-bit versions of Vista — and yo

Secrets Revealed Part I

There are many secrets to the world. Many more are there to the world of computers. I will share a really stunning secrets with you. Star Wars If you live on Earth you must have heard of Star Wars if not seen any of the series. It was the dawn of special effects, animation and computer generated simulations. But now you can watch it again on the Internet. The guys at Blinkenlights have gone a step further and made a full Star Wars movie using nothing but ASCII. Ridiculous? Crazy? May be, but it is great. Oh by the way if you were wondering what is the video player, it is the Command Prompt. Seriously. All right so here is how you can watch the film. First make sure you have TELNET installed. If it is installed you can go to Step 2 To install TELNET in Windows Vista and Windows 7 follow the steps: To install Telnet Client Click the Start button , click Control Panel, click Programs, and then click Turn Windows features on or off. If you are prompted for an administrator passwo

Secrets Revealed Part II

or so you thought Google Motion Beta A new way to communicate The mouse and keyboard were invented before the Internet even existed. Since then, countless technological advancements have allowed for much more efficient human computer interaction. Why then do we continue to use outdated technology? Introducing Gmail Motion -- now you can control Gmail with your body. Easy to learn Simple and intuitive gestures Improved productivity In and out of your email up to 12% faster Increased physical activity Get out of that chair and start moving today Try it here http://mail.google.com/mail/help/motion.html