Showing posts with label Tips and Tricks. Show all posts
Showing posts with label Tips and Tricks. Show all posts

Tuesday, June 22, 2010

Customize Setup wizard with your Company Logo

  1. Download Windows Installer SDK.
  2. In it you will find a Orca.msi. install it.
  3. With explorer browse to C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\Deployment\VsdDialogs.
  4. There you will find a subfolder for most cultures.
  5. Go to the culture subfolder you're using.
  6. Open VsdUserInterface.wim with Orca. (or download here)
  7. In the binary table you'll find a row with name DefBannerBitmap.
  8. 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.
  9. Store the VsdUserInterface.wim.
  10. Build the setup projects again with having the BannerBitmap property refering to Default.

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:

List of Software you need as .NET developer:

List of software you need as web developer:

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:

Handy Stuff you would like:

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

Here is an overview what i did when you install 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)
  1. Right-click the Security Center icon in the notification tray, select Open Security Center.


  2. In the Security Center window, click on the "Change the way Security Center alerts me"


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