Ohad's Blog

Lets talk about .net !

Mirror at:
blogs.microsoft.co.il

News

         Ohad Israeli's Facebook profile

Grab this badge here!

C# Code Snippts

Favorite Blogs

Israeli .Net Bloggers

May 2006 - Posts

Office 2007 Beta 2 is public !

Microsoft released beta 2 of Office 2007 to the public !

Check it out over http://www.microsoft.com/office/preview/default.mspx

How to identify a browser refresh event

I’m currently writing a cool BHO ( Browser Helper Object ) and one of the things that I've noticed is that there seems to be missing a way to receive a Refresh event notification from the browser.

Why do I need a refresh event ? well its because the browser doesn’t raises a DocumentComplete event on a page refresh.

So what are the steps to receive a notification of a browser refresh event ?

1. Register to BeforeNavigate2, DocumentComplete, DownloadComplete events. 
2. Declare a global boolean by the name of refresh and give is the value of true.
3. On the BeforeNavigate2 event set the value of the boolean to false.
4. On the DocumentComplete event set the value of the boolean to true.
5. On the DownloadComplete event check the value of the boolean and if its true do whatever you want …

 

 

Posted: May 17 2006, 02:11 AM by Ohad Israeli | with 3 comment(s)
Filed under:
The Beat Box - Arc311 Slides

For anyone who have attended my TechEd Eilat session about building a drum machine using Enterprise Library 2.0 and for the rest of you who are curious to see the slides…  Download the slides

Regarding the demo… i.e. source code … as I wrote some pieces of the code in a POC style i.e. Fast and Dirty I will need to do some refactoring of the code prior to releasing it to the public and i expect it to take 2–3 weeks due to time constraints.

 

Microsoft Support LifeCycle Index

I was looking for public information regarding support & extended support for Microsoft products and I was very happy to find (After some massive searching) the Microsoft Support LifeCycle Index

So if you were curious… mainstream support for xp & 2003 will end two years after the next version of the product will be released and extended support will end five years after the mainstream support ends.

TechEd Eilat 2006 Presentations

TechEd Eilat 2006 Presentations are starting to appear on the official TechEd Eilat Site

My Beat Box presentation have already been submitted and will be on the list soon.

I’ll update with the direct link later on.

ClearType & Graphics.DrawString

I was making some fine tuning to my system prior to my TechEd Beat Box presentation … one of the tuning was to change the vs ide to use Consolas the cool ClearType font.

After applying the ClearType setting I've noticed something very strange…

The fonts of my Pattern – User Control seem to become very ugly…. (see the Bass Drum, Snare Drum & rim font) 

I’ve also seen that the buttons on the right seems fine… and they are actually also drawn the same way…i.e. using DrawString

I’ve started investigating it and it seems that if you are using Graphics.DrawString on transparent background you get the ugly font while if the background is not transparent it looks fine.

After some more deep investigation I found that one line can solve the problem:

Add a rendering hint just prior to the DrawString statement

g.TextRenderingHint = TextRenderingHint.SingleBitPerPixelGridFit;   <— This line solved it !
g.DrawString(text, font, Brushes.Black, new Point(x, 0));

Now everything is back to normal :-)

The Youngest Indigo (WCF) expert in the world !

Lately I had the feeling that someone is reading my books they were just not in the place where I left them …

So I’ve decided to installed a hidden camera in my working room.

Look what I've caught this morning…. The youngest Indigo expert in the world !

It seems that at the age of 10 months Shira is already learning Indigo several hours a day :-)

Posted: May 06 2006, 11:39 AM by Ohad Israeli | with 2 comment(s)
Filed under: ,
9.5 Giga of Mix 2006 Sessions are Online !

Mix 2006 Sessions are available online !

So if you want to learn about Ajax, WPF and other new cool technologies check it out !

Btw the sessions are also available for downalod but be sure to prepare 9.5 Giga free space on your hd and wait a half a day for them to arrive :-)

HomeHomeMix 06Home

Enterprise Library 2.0 Hands On Labs !

Microsoft Patterns & Practices just released the Enterprise Library 2.0 Hands On Labs !!!

It seems like every time I'm doing an Enterprise Library presentation in a big Microsoft convention someone decides to release the Hands of Labs… it happened to me in the past and it just happened again :-)

Its so nice to have something new to announce on my presentation.

Download it over here

6 Days Left For TechEd 2006 & The Beat Box Presentation !

6 Days Left For TechEd Eilat 2006 !

As some of you already know the theme of this year’s TechEd is Feal The BEAT… so for my Enterprise Library 2.0 presentation at the Architecture track I've decided to create a cool Beat Box Sample which is all powered by the Enterprise Library 2.0 !

The look & feel keeps on changing as I'm adding some more last minute features… but as you can see it turned out very cool !

So if you want to hear a sample track of my Beat Box check out these two sample tracks here and here

p.s. The tack was recorded by the Beat Box itself.

If you would like to see how the Beat Box was created and integrated with all the Enterprise Library 2.0 application blocks you are more then welcome to catch me up at TechEd Eilat – ARC311 ( 11/02/2006 08:30 – 09:45 at the King Salomon Hotel )

More Posts Next page »