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 .. .. ..

Created By : adrevol

Strip HTML tags ,Script blocks,Forms, style blocks using Regex in C#.net

many times in many cases we may come across this problem how to strip html tags, how to remove script blocks ? how to remove form blocks and how to remove style sheet blocks ? for those questions here is the simple and best answer read the rest of this entry .. .. ..

Created 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 .. .. ..

Created 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; .. .. ..

Created By : adrevol

Using Cookies in PHP

using cookies in php cookie is a piece of information stored on to the users computer.we can set timestamp for cookie which will stores the data till the date of expiry until and unless user clear off the cookies. in php we can create, reset, clear the cookies <br> creating cookie by using setcookie function we can create cookie setcookie(name,value,expires,include_path,domain) except .. .. ..

Created 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  .. .. ..

Created By : adrevol