top of page

General Questions

This section of the website will contain the general questions related to the programming, some general tricks where the people faces the problems.

 

1. How to make the start button in windows 8 stylish and similar to the Windows 7?

Ans. we need to install a small software Classic Shell which will make the start button stylish like windows 7. You can download the Classic Shell from the link provided below:

Classic Shell Download 

Once download, we need to install it and your start button will be converted automatically. it will have 3 options to choose like classic mode.

 

 

 

2. How to print the whole windows form in C#.Net windows application?

Ans. In general, it is quite difficult to print the form as we need to use some graphics related library and then use them for the whole form content. Bu tthere is an easy way to do this. We can use Visual Basic Power Packs Tools which contains the control PrintForm to print the whole form of C# windows application.

To download the Visual Basic Power Packs tools, Please go through the link: Visual Basic Power Packs

Once it is downloaded, execute it and a new tab will be added to the toolbox. After that just include the Microsoft.VisualBasic.PowerPacks.Vs.dll to your application as refernce and then drag the PrintForm control to the form which you want to print.

Include the reference to yourform and write the below code:

 

 

 

 

 

 

 

 

 

 

 

 

 

3. Generate a random number using Cryptography (RNGCryptoServiceProvider) with C#?

Ans. To generate the random number using Cryptography, we can use the RNGCryptoServiceProvider

 algoritm. This algorithm returns the bytes as the result which can be converted to the number to get the original value of the random number.

The below program will show the code which will take the input as the Minimum vlaue, Maximum value and the total number of bytes and generate the random number as the output.

 

bottom of page