Archive for the ‘.net’ Category

SlideToUnlock.me

It’s been a while since I have published software, but here is my latest project.
http://www.slideToUnlock.me
SlideToUnlock.me is a touch/mouse screensaver for Windows Vista and Windows 7 that shows photos from Flickr or your Harddisk. And yes, it is free.
Download install and have fun, but don’t forget to become a fan on Facebook
Just in case you are [...]

Comments (3)

BugAttack Free Online Multiplayer Game

Hi,
you should check out http://www.bugattack.net
It’s a great online stratgie game, where you can play against your friends, fighting their bugs. You ll get addicted, thats for sure.

Leave a Comment

Call Managed C# Method from JavaScript Code

After searching quite long to find a way to call a C# Method from any JavaScript Code which is hostet in a WinForms Webbrowser Control, I found this one here:

C# Code
[ComVisible(true)]
public class ScriptManager
{
Form mForm;
public ScriptManager(Form form)
{
mForm= form;
public void MethodToCallFromScript()
{
mForm.DoSomething()
}
}
}
public class MyForm : Form
{
private Webbrowser mBrowserCtrl;
public MyForm()
{
mBrowserCtrl = new Webbrowser();
mBrowserCtrl.ObjectForScripting= new ScriptManager(this);
}
public void DoSomething(){}
}
JavaScript Code
function HandleSomething()
{
window.external.MethodToCallFromScript();
}

Comments (6)

Playing Sounds in Windows Mobile

After working a bit with the new Windows Mobile 6 SDK i tried to play sounds located on the device. Since there are a few tricky steps, here is the code (C#):

using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace SoundMachine
{
public class Sound
{
[DllImport("CoreDll.dll", EntryPoint = "PlaySound", SetLastError = true)]
private extern static int PlaySound(string szSound, IntPtr hMod, int flags);
private [...]

Comments (1)