A Friend in Need is a Friend in Deed.
Become a Member at ITTreats.com !! Share Your invaluable Experience to Fellow Programmers. Signup, Start Blogging and support fellow Techies.

Calculate Page Execution time in PHP

for those people who want to give users that in how many seconds actually your web page loaded completely. this script will be useful for you. there are so many ways to do this ( as usual ) but the classic approach would be step 1 : make a note of  the time when your page get starts step 2: make a note of  the time  at the end of your total page execution step 3 : step 2 – .. .. ..

Written By : adrevol

Adding Sub MenuItems to the Context Menu Item Dynamically

you can’t add sub menuitems to a context menu item programatically for more than one time. if you try to add first sub menu item it will add up into the list then again if you try to add then the sub menu items wont be displayed, but if you debug it you will find the submenu items will still there . this is bug in .net to over come this problem , toggle the visiblity of the .. .. ..

Written By : adrevol

Processing Web Request from c#.net/vb.net

to process  web request from c#.net/vb.net windows application we have  webrequest class. import  system.net,system.io name spaces  for requesting and processing the result here is the example code 1. create a uri with the required url   uri wsn=new uri(\”http://www.ittreats.com\”); 2.next  create a webrequest class and pass the above uri object to it   webrequest .. .. ..

Written By : adrevol

How to Hide when form is minimized

to hide a form when minimize button is pressed, we have to write a event for form sized changed event in that, add this condition if (this.windowstate == system.windows.forms.formwindowstate.minimized) { this.visible = false; .. .. ..

Written By : adrevol

working with Notify Icon and Context menu

working with  notify icon and context menu is simple please follow the  steps 1. drag and drop the notifyicon, context menu from the tool box 2. change the names and text of the controls 3. now, create the required menu  for the context menu for eg: add the cut,copy,paste,delete  menuitems to the  context menu 4. now  attach this context menu to the notify icon ,  by  selecing the  .. .. ..

Written By : adrevol