- Download Windows Installer SDK.
- In it you will find a Orca.msi. install it.
- With explorer browse to C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\Deployment\VsdDialogs.
- There you will find a subfolder for most cultures.
- Go to the culture subfolder you're using.
- Open VsdUserInterface.wim with Orca. (or download here)
- In the binary table you'll find a row with name DefBannerBitmap.
- Double click [Binary Data] to select your own banner image file (jpg or bmp, not gif). It has to have a width of 500 pixels and a height of 70 pixels.
- Store the VsdUserInterface.wim.
- Build the setup projects again with having the BannerBitmap property refering to Default.
Tuesday, June 22, 2010
Customize Setup wizard with your Company Logo
Sunday, January 25, 2009
Change dot "." to Comma "," with javascript
Here is the syntax to change your dot to comma.
Very handy because your hand stays in the nummeric area of your keyboard.
<html>
<head>
<script type="text/javascript">
function DotToComma(that) {
if (that.value.indexOf(".") >= 0) {
that.value = that.value.replace(".",",");
}
}
</script>
</head>
<body>
<input type="text" name="txt" onkeyup="DotToComma(this);">
</body>
</html>
On a .ASPX page you would have something inside like this:
<asp:textbox id="TextBox1" runat="server" text="Sample Text"
onkeyup="DotToComma(this);" />
Wednesday, July 9, 2008
Export Gridview to Excel with ASP.NET (workaround)
Today I had to create a grid in ASP.Net. But i had this problem when i created the export to Excel:
'GridView' must be placed inside a form tag with runat=server
My gridview was inside the form ???
So this is the workaround i found:
This is the normal function for the export to Excel:
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=filename.xls");
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = "application/vnd.xls";
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
GridView1.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End();
/* Confirms that an HtmlForm control is rendered for the specified ASP.NET server control at run time. */
public override void VerifyRenderingInServerForm(Control control){}
Just insert this inside your code behind:
More info you can find here @ microsoft (Microsoft has accepted it as bug)
Saturday, March 22, 2008
List of software to install on Clean OS
List of default items to Install:
- Notepad++
- Silverlight 2 RTW (2.0.31005.0)
- ASP.NET AJAX 1.0
- Flash player
- Dot Net framework (comes with Microsoft update 2)
- Version 1.0 (SP3)
- Version 1.1 (SP1)
- Version 2.0 x86 (SP1 x86)
- Version 3.0 (SP1)
- Version 3.5
- Firefox Browser
Addons for Firefox:- IE Tab
- Customize google (Enhance Google search results, Remove advertizing, ...)
- Del.ico.us bookmarks (Access and manage your bookmarks wherever you are)
- Download Statusbar (View and manage downloads from a tidy statusbar - without the download window getting in the way of your web browsing.)
- Email This! (Send URL in 1 click)
- Greasemonkey (Allows you to customize the way a webpage displays using small bits of JavaScript.)
Userscripts for Greasmonkey
- GoogleMonkeyR
- Live Hotmail Companion (remove advertise on top)
- GreaseFire Automatically find Greasemonkey scripts on Userscripts.org (requires Greasemonkey)
- Google Kladblok
- Access Me (Access vulnerabilities in an application can allow an attacker to access resources without being authenticated.)
- SQL Inject Me (SQL Injection vulnerabilites can cause a lot of damage to a web application.)
- Unlocker (Unlock locked files) very handy !
- Winsnap (Utility for taking and editing screenshots NOT Free anymore)
- Google Talk (Chat tool)
- MSN Messenger (Chat tool) + Mess Messenger (Remove advertising, ... Tweak tool)
- Winrar (Compress and decompress tool)
- Paint.net
- Adobe Pdf reader
- Copy path to clipboard
- Deamon Tools (DAEMON Tools enabling you to use your CD/DVD images as if they were already burned to CD/DVD.)
List of Software you need as .NET developer:
- SQL Server 2005 Express Edition SP2 (Database)
- Subversion (Version control system)
- TortoiseSVN (easy to use Revision control / version control / source control software for Windows. It is based on.)
- Reflector (Reflector is the class browser, explorer, analyzer and documentation viewer for .NET)
- Cool Commands for Visual Studio 2008 plugin or Coolcommands for Visual studio 2005
- Resharper (Visual Studio Add-In NOT Free)
- Winmerge (Comparer for directorys or files)
- Process Explorer (More advanced process explorer)
- LLBLGen Pro (ORM mapper)
- RightHand.DataSet.Visualizer
Advanced quickwatch dataset vizualizer
List of software you need as web developer:
- Colorpic (grab the color from 1 pixel)
- Fiddler (Fiddler is a HTTP Debugging Proxy which logs all HTTP traffic between your computer and the Internet)
- Addons for Firefox:
- Web Developer (Adds a menu and a toolbar in Firefox with various web developer tools.)
- Internet Explorer Developer tool bar
- Window Resizer
- Firebug
- DOM Inspector
- MeasureIt (Draw out a ruler to get the pixel width and height of any elements on a webpage.)
List of software that is handy:
- Virtual PC (Run other OS in Virtual mode)
- Windows Live Writer (Tool for writing blogposts)
- MP3TAG Edit your Metadata of common audio formats. Add Pciture, full song info, ...
List working with Silverlight:
- Silverlight SDK 1.0
- Silverlight SDK 1.1
- Silverlight SDK 2.0
- Microsoft Silverlight Tools for Visual Studio 2008 SP1 (for Silverlight 2)
- Microsoft Expression Blend™ 2 Service Pack 1
Handy Stuff you would like:
- XP Royal Theme (nice theme for XP)
- Bulk rename tool (fast and very nice rename tool)
- Auto Shut down
- Zoomit (nice zoom tool for presentations)
- Powertoys for Windows XP
- Visual Task Tips (Show tiny screenshot)
- Windows Live Writer (Blog tool)
- Filezilla (FTP tool)
- Terracopy (copy past tool where you can change the buffersize)
- DScaler Deinterlacer/Scaler (Play DVD's with Windows Real player)
- Media player plugins
If you have a handy ore better tool please let me now. :-)
Kris Nobels
-- = Last updated 19-03-2009 = --
Sunday, February 3, 2008
Customize or tweak your Vista
STEP 1 : Create partition --> Use BootIt to create my partition and choose type NTFS (walkthrough for using BootIt)
STEP 2 : Boot from Disk --> Easy, just put the DVD in boot drive and restart computer
STEP 3 : Disable UAC --> (you can do this in 4 ways) See this post on how to disable UAC.
STEP 4 : Disable the Warning Icon (now that UAC is turned off)
- Right-click the Security Center icon in the notification tray, select Open Security Center.
- In the Security Center window, click on the "Change the way Security Center alerts me"
- In the "Do you want to be notified of security issues" window click on "Don't notify me and don't display the icon (not recommended)".
STEP 5 : Install Anti-virus --> for example Avast it's free :-)
STEP 6 (optional) : Startup without logging in.
When using the PC @ home, and it is difficult to login each time. You can open Start and enter in the Searchbox "netplwiz".
You will see a window useraccounts. Select the box and it will be turned off. (confirm by entering 2 times your password to be sure)
Tip: If you have a program that stops working in vista, you can run that program in XP mode.