Posts Tagged ‘Windows’

Windows: Enable Ctrl+Alt+Delete Logon

Saturday, January 9th, 2010

Explanation (As per Microsoft):

This security setting determines whether pressing CTRL+ALT+DEL is required before a user can log on.

If this policy is enabled on a computer, a user is not required to press CTRL+ALT+DEL to log on. Not having to press CTRL+ALT+DEL leaves users susceptible to attacks that attempt to intercept the users’ passwords. Requiring CTRL+ALT+DEL before users log on ensures that users are communicating by means of a trusted path when entering their passwords.

If this policy is disabled, any user is required to press CTRL+ALT+DEL before logging on to Windows (unless they are using a smart card for Windows logon).

Default:
Disabled on workstations and servers that are joined to a domain.
Enabled on stand-alone workstations.

Steps:

1- Go to Administrative Tools

2- Open Local Security Settings

3- Choose Security Options under Local Policies

4- Double Click on Interactive logon: Do not require CTRL+ALT+DEL

5- Choose Disabled to make CTRL+ALT+DEL logon screen appears by default.

VN:F [1.8.3_1051]
Rating: 0.0/5 (0 votes cast)
VN:F [1.8.3_1051]
Rating: 0 (from 0 votes)

Post to Twitter Post to Delicious Post to Facebook

C#: Opens Office Documents in Web Browser Control

Monday, January 4th, 2010

This post is related to/same as a previous post VB: Opens Office Documents in Web Browser Control

Use the following steps to create a C# application that opens Office documents:

  1. Start Visual Studio and create a new C# project.  Form1 created by default.
  2. From the Components toolbox, Add an instance of the WebBrowser control, CommonDialog control, and a CommandButton to Form1.
  3. Next, add the following code into the Code window for Form1:
object oDocument;
 
private void button1_Click(object sender, EventArgs e)
 {
 string sFileName;
 openFileDialog1.FileName = "";
 openFileDialog1.ShowDialog();
 sFileName = openFileDialog1.FileName;
 
 if (sFileName.Length!=0)
 {
 oDocument = null;
 webBrowser1.Navigate(sFileName);
 }
 }
 
 private void Form1_Load(object sender, EventArgs e)
 {
 openFileDialog1.Filter = "Office Documents " + " " + "(*.doc, *.xls, *.ppt)|*.doc;*.xls;*.ppt";
 openFileDialog1.FilterIndex = 1;
 
 }
 
 private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
 {
 oDocument = webBrowser1.Document;
 
 }
  1. Press F5 to run the project. When you select the Browse button, the Open dialog box appears allowing you to navigate to a Word, Excel or PowerPoint file.
  2. Choose Open and the document should open inside the WebBrowser control.
VN:F [1.8.3_1051]
Rating: 0.0/5 (0 votes cast)
VN:F [1.8.3_1051]
Rating: +1 (from 1 vote)

Post to Twitter Post to Delicious Post to Facebook

VB: Opens Office Documents in Web Browser Control

Wednesday, December 2nd, 2009

Use the following steps to create a Visual Basic application that opens Office documents:

  1. Start Visual Basic and create a new Standard project. Form1 is created by default.
  2. From the Project menu, select Components to open the Components dialog box.
  3. In the Components dialog box, add references to the Microsoft Common Dialog Control and the Microsoft Internet Controls.
  4. Click OK to add the items to the toolbox.
  5. Add an instance of the WebBrowser control, CommonDialog control, and a CommandButton to Form1.
  6. Next, add the following code into the Code window for Form1:
    Option Explicit
     
    Dim oDocument As Object
     
    Private Sub Command1_Click()
       Dim sFileName As String
     
     ' Find an Office file...
       With CommonDialog1
          .FileName = ""
          .ShowOpen
          sFileName = .FileName
       End With
     
     ' If the user didn't cancel, open the file...
       If Len(sFileName) Then
          Set oDocument = Nothing
          WebBrowser1.Navigate sFileName
       End If
    End Sub
     
    Private Sub Form_Load()
       Command1.Caption = "Browse"
       ' For the 2007 Microsoft Office documents, change the .Filter parameter of the
       ' With CommonDialog1 statement to:
       ' .Filter = "Office Documents " & _
       '      "(*.docx, *.xlsx, *.pptx)|*.docx;*.xlsx;*.pptx"
       With CommonDialog1
          .Filter = "Office Documents " & _
          "(*.doc, *.xls, *.ppt)|*.doc;*.xls;*.ppt"
          .FilterIndex = 1
          .Flags = cdlOFNFileMustExist Or cdlOFNHideReadOnly
       End With
    End Sub
     
    Private Sub Form_Unload(Cancel As Integer)
       Set oDocument = Nothing
    End Sub
     
    Private Sub WebBrowser1_NavigateComplete2(ByVal pDisp As Object, _
    URL As Variant)
       On Error Resume Next
       Set oDocument = pDisp.Document
     
       MsgBox "File opened by: " & oDocument.Application.Name
    End Sub
  7. Press F5 to run the project. When you select the Browse button, the Open dialog box appears allowing you to navigate to a Word, Excel or PowerPoint file.
  8. Choose Open and the document should open inside the WebBrowser control.
  9. A message box then appears that displays the name of the Office application that opened the file.
VN:F [1.8.3_1051]
Rating: 0.0/5 (0 votes cast)
VN:F [1.8.3_1051]
Rating: 0 (from 0 votes)

Post to Twitter Post to Delicious Post to Facebook

How To: Enable hibernate option in Windows Vista

Thursday, August 6th, 2009
  1. Go to All Programs Menu >>> Accessories
  2. Right click on Command Prompt
  3. Run As Administrator
  4. Type:  powercfg /hibernate on
  5. Press Enter

If you got no messages then its working now !!!!!!!!!!!!! this is how Microsoft works, no success messages just FAILURE ones are displayed ;)

VN:F [1.8.3_1051]
Rating: 4.5/5 (1 vote cast)
VN:F [1.8.3_1051]
Rating: 0 (from 0 votes)

Post to Twitter Post to Delicious Post to Facebook

Windows Low Disk Space Solutions

Thursday, November 6th, 2008

Do you feel that the free space on your hard-disk is too little ? Does it seem that something fishy is going on which is eating your hard-disk space? If your answer is yes, read on till end to uncover the secrets of this type of behavior.

Reasons for consumption of free space

1.Some of the key reasons are:
2.Temp files on C drive
3.Temporary Internet files
4.Backup files created during installation
5.Windows system restore data
6.Duplicate copies of large files like movies, songs etc.
7.Deleting Uninstall files for windows updates.

There are some more reasons as well, but these are most common reasons which can be observed. Now the important question, how to fix it ?ok read on for the solution.

Fix:

1. Deleting Temp files:

Temp files are the files which are created for some temporary purpose by many softwares. Go to Start > Run type “%temp” (without quotes) and press enter. This will open a Temp folder, at this folder,select and delete all files at this location. After this empty your windows recycle bin.

Note: You may not be able to delete certain files as they might be in use, but delete as many as you can.

2. Deleting Temporary Internet files and backup files:

There are several ways to do it, but we will tell you the most convenient way. Open My computer, right click on the disk drive , go to properties and click on Disk Cleanup.

Select the temporary Internet files,recycle bin,setup log files, temporary files, office setup files, and any other option which is not very important for you and Click OK. This will start the cleanup process and will delete the un-necessary files thus increasing the disk space.

Note:
Above two methods deals with removal of junk and temporary internet files which can also be removed automatically using a software called CCleaner which can be downloaded from here.

What is CCleaner?

CCleaner removes unused and temporary files from your system – allowing it to run faster, more efficiently and giving you more HDD space.

3. Deleting old restoration data:

As a part of system restore utility, windows creates some check-points and saves corresponding data on each disk having restore feature. These files also consume significant space. You can delete all of them except the most recent restore point data if you feel that your computer is running stable for a long time and you may not need very old restore points. To delete it, open disk cleanup window as mentioned in previous step and click on More Options tab

Click on System restore clean up button as i have Placed my Cursor on the above Screenshot. This will give a warning message, click yes to it. This will delete all old restoration points except the most recent one.

4 .Delete duplicate copies of large files:

Sometimes we have several copies of same documents, songs and even videos which consume lots of space un-necessarily. Finding them manually and deleting them is a real pain. But this work has been made very easy by double-killer. Its an intelligent utility which scans your drives for duplicate copies of files and gives you and option to delete them. You can download it from here for free.

5. Deleting Uninstall files for windows updates:

You can also delete some folders whose name starts with “$NtUninstall.” in the windows directory (for example C:\Windows ) if C drive is the primary partition.

However, They are referring to prior hot fixes, so they should be safe to delete if your system is stable with the fixes applied after windows update, and you have no intention of uninstalling them.

VN:F [1.8.3_1051]
Rating: 0.0/5 (0 votes cast)
VN:F [1.8.3_1051]
Rating: 0 (from 0 votes)

Post to Twitter Post to Delicious Post to Facebook

Get Adobe Flash playerPlugin by wpburn.com wordpress themes