Home

Response.Write from within a class

In developing websites in ASP.Net I frequently use Response.Write to debug the code behind, but when using classes you cannot directly access Response.Write. The method of performing Respone.Write from within a class is to do the following; HttpContext.Current.Response.Write("Your text")

Read more

Creating multi panel interface easily

So if you’re like me you want to produce applications which look as professional as possible. One way that we do this is to use many different panels to display the different pages of content on one form. In this article I will discuss one method of making this process easier at development time. The method that I am now using is to have a Tab...

Read more

List of really useful Windows command prompt commands

This is a list of command lines for Windows that I have found really useful. I will be updating this list when I find other command lines that I have found useful. If you know of any command lines that you think should be included in this list but I haven’t includeded then please feel free to let me know and I will add them to the list. appwiz...

Read more

How to create a Die in code

Something that people sometimes want to do is create a Die in code, I thought I would supply code on one method of doing this. Public Class Die     Private Shared rndGen As New Random     Private _numFaces As Integer     Private _curValue As Integer #Region "Properties"     Public Property NumberOfFaces() As Integer         Get             Retu...

Read more

Folder/Forum layout system

Recently I was asked to create a web based document repository, where the user wanted to be able to have folders and sub-folders. In this article I’m going to explain the method that I used to allow for there to be folders which can go on theoretically indefinitely, this system can be used for a forum system as well to allow for a forum to have ...

Read more

VB.Net detect Windows shutting down or logging off

If you’ve ever developed an application that minimises the application when the user closes it, you will know that the application can stop Windows from shutting down or you from logging off. There is a bit of nice simple code that stops this from occurring. Private allowClose As Boolean = False Private Sub Form1_Load(ByVal sender As Object, ...

Read more

Generate a password

Something that I found that I frequently come across is the need to generate a random string, so I ended up creating a simple shared function that dealt with that for me. Imports Microsoft.VisualBasic Public Class PasswordFunctions ''' <summary> ''' This function generates a random password allowing for the specification of the c...

Read more