Started to do a lot more Umbraco work recently so inevitably I will be looking for loads ot shortcuts, tips etc along the way – feel free to let me know of any I can include here.
The most recent one I came across was I needed to add external redirects in the main menu. The menu was built using XSLT for the main site pages which was fine although I needed to link to other pages off-site.
After a little searching, I found the following package that worked a treat – simply added a macor to my text page, add the redirect URL and bobs your uncle, it works great!
I’m working on a client/server application that uses touch screens for user input. The app uses the NotifyIcon class to minimise the app to the tray when not required with a ContextMenuStrip to handle right click operations, herin lies the problem – touch screens are using touch, not mice to interface with the application hence you cannot right click!
Solution is the code below, it allows you to left click (or touch) the trayicon and still display the ContextMenu. What a PIA it was to find this!
private void notifyIcon1_MouseUp(object sender, MouseEventArgs e)
if (e.Button == MouseButtons.Left)
MethodInfo mi = typeof(NotifyIcon).GetMethod(“ShowContextMenu”, BindingFlags.Instance | BindingFlags.NonPublic);