Recover Your Password From System.

Thursday 30 June 2011
This Post Will Show You How To Create A Application That Will Recover Your Password From The Database Using The Secret Question..
Steps To create:
Step 1:
  • Create Login Page As In Image Below.
  •   Code For Above Page.
Declaration: 

     Dim provider As String = "Provider=Microsoft.jet.OLEDB.4.0;"
     Dim path As String = "Data Source=" & Application.StartupPath & "\login.mdb;"
     Public con As New OleDbConnection(provider & path)

Login Button:

        Dim cmd As New OleDbCommand
        cmd = New OleDbCommand("select  * from Login", con)
        Try
            cn.Open()
            Dim dr As OleDbDataReader
            Dim user, pass, ut As String
            ut = "Administrator"
            dr = cmd.ExecuteReader
            While dr.Read
                   user = dr("Username")
                   pass = dr("password")
                   If TextBox1.Text = user And TextBox2.Text = pass Then
                     MsgBox("Login Successful By Username : '" & TextBox1.Text & "' As '" & ut & "'")
                   Else
                     MsgBox("User name or password is wrong")
                   End If
            End While
            dr.Close()
            con.Close()
        Catch ex As Exception
        End Try
ForgotPassword Button:
        forgot.Show()
        Me.Hide()

Step 2:
  • When You Click On ForgotPassword Button It Will Open Following Form.

  •  Code For Above Page.
Declaration:
Dim cn As OleDbConnection = login.con
ValidateUsername Button:
         Try
            If flag = 0 Then
                If txtusername.Text = "" Then
                    MsgBox("please enter username")
                Else
                    flag = 1
                    btnvalshow.Text = "Show Password"
                    Dim cmd As New OleDbCommand
                    cmd = New OleDbCommand("select  que from secured WHERE Username='" & txtusername.Text & "'", cn)
                    con.Open()
                    Dim dr As OleDbDataReader
                    Dim q As String
                    'ut = "Administrator"
                    dr = cmd.ExecuteReader
                    While dr.Read
                        q = dr(0)
                        Label4.Text = q
                    End While
                    con.Close()
                End If
            End If

            If flag = 1 Then
                If txtanswer.Text = "" Then
                    MsgBox("Enter Answer")
                Else
                    Dim cmd As New OleDbCommand
                    cmd = New OleDbCommand("select  * from secured ", con)
                    con.Open()
                    Dim dr As OleDbDataReader
                    Dim user, pass, a, q As String
                    'ut = "Administrator"
                    dr = cmd.ExecuteReader
                    While dr.Read
                        user = dr(0)
                        pass = dr(1)
                        q = dr(2)
                        a = dr(3)
If txtusername.Text = user And txtanswer.Text = a Then
MsgBox("Password for Username : '" & txtusername.Text & "' PASSWORD :  '" & pass & "'")
                        Else
MsgBox("User name is not found")
                        End If
                    End While
                    dr.Close()
                    con.Close()
                End If
            End If
        Catch ex As Exception
            MsgBox(ex.ToString)
            con.Close()
        End Try
  • Set flag=0 on FormLoad Of Second Form....

List Of Colleges

Here Are The List Of BSc(I.T) College In Mumbai

How To Show and Hide Windows Form in System Tray



1. Add NotifyIcon class in your project (System.Windows.Forms.NotifyIcon) and drag it into form.


 2. Change NotifyIcon properties.
BalloonTipIcon = Info
BalloonTipText = Running
Change Icon
Text = Running Your Program
Visible = True

 3. Add code in Event Form1_Resize.
Private Sub Form1_Resize(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles MyBase.Resize
' If minimize form that will show in system tray.
If System.Windows.Forms.FormWindowState.Minimized = WindowState Then
NotifyIcon1.ShowBalloonTip(5, "Running", "Running Your Program", ToolTipIcon.Info)
Me.Hide()
End If
End Sub

4. Add code in Event NotifyIcon_Click to hide and show form.
Private Sub NotifyIcon1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles NotifyIcon1.Click

If Me.Visible Then
Me.Hide()
Else
Me.Show()
Me.ShowInTaskbar = True
Me.WindowState = FormWindowState.Normal
Me.StartPosition = FormStartPosition.CenterScreen
End If
End Sub

How To Start And Kill Process On A Click Of Button.

Process Class

Provides access to local and remote processes and enables you to start and stop local system processes.

Sample Code

1. Start notepad
System.Diagnostics.Process.Start("notepad")

2. Start winword
System.Diagnostics.Process.Start("WINWORD")

3. Start excel
System.Diagnostics.Process.Start("Excel")

4. Start ie and parameter
System.Diagnostics.Process.Start("IExplore.exe", "http://dotnetfuncorner.blogspot.com/")

5. Kill It!!
' Kill all notepad process
Dim pProcess() As Process = System.Diagnostics.Process.GetProcessesByName("notepad")
For Each p As Process In pProcess
p.Kill()
Next

How To Make Picture Box In Oval Shape

Wednesday 29 June 2011
 
Some points in the rar file are listed below:
  • It Will Show You How To Make The PictureBox In Oval Shape.
  • Import "Imports System.Drawing.Drawing2D"
Click to Download Project File:
PictureBox In Oval Shape

How To Get List Of Software Installed On Your Machine


Some points in the rar file are listed below:
  • It Will Get You A List Of Software Installed On Your Machine.
  • You Can Also Change The Control in Which You Want To Show List As Per You
  • In My Case I Have Used ListView
Click to Download Project File:
Installed Softwares

PrimeNumbers In C#.Net


Some points in the rar file are listed below:
  • Finding Prime Numbers
  • Which All Prime Numbers Are Found In That Range
  • How Many Prime Numbers Are There In That Range
Click to Download Project File:
 
Prime Numbers

Add,Delete,and Update Records


Some points in the rar file are listed below:
  • How To Save Data Into DataBase
  • How To Delete Data From DataBase 
  • How To Update Data From DataBase 
  • How To Bind Data To ListBox 
Click to Download Project File:
 
Add, Delete, Update Data

HOW TO SEARCH TEXT FROM THE .doc FILE

Tuesday 28 June 2011
This project has been developed using Visual Studio 2010. It also the user to open the .doc file and also have a textbox which allows user to enter the word or phrase he want to search. and accordingly the word is searched in the doc file..

Click to Download Project File:

SearchText from .doc file VS2010

WHY VS2010 IS DIFFERENT FROM PREVIOUS VERSIONS AND FROM YOU CAN DOWNLOAD VS2010 FREELY

Monday 27 June 2011

FIRST OF ALL DOWNLOAD VISUAL STUDIO 2010 BY CLICKING HERE


The Visual Studio 2010 user experience is noticeably different than with previous versions. Some of the changes are cosmetic - gone is the decades-old red and orange color scheme, having been replaced with blues and purples - while others are more substantial. For instance, the Visual Studio 2010 shell was rewritten from the ground up to use Microsoft's Windows Presentation Foundation (WPF).
In addition to an updated user experience, Visual Studio introduces an array of new features designed to improve developer productivity. There are new tools for searching for files, types, and class members; it's now easier than ever to use IntelliSense; the Toolbox can be searched using the keyboard; and you can use a single editor - Visual Studio 2010 - to work on.

Improved IntelliSense

I've often wondered how many man hours have been saved due to IntelliSense. IntelliSense, as every developer who has used Visual Studio knows, is that wonderful little drop-down list that lists matching type or member names while you type. IntelliSense lets you quickly see the available types and member names and saves countless keystrokes, as selecting a type or member from the list completes the type name or member name you were typing in.
Microsoft has made some changes to IntelliSense's behavior in Visual Studio 2010. In previous versions, the IntelliSense drop-down listed only those member names that startedRequest object, but unsure of the property name, you enter Request.Ur, presuming that the property would be named Url or would start with the letters Url. With Visual Studio 2008, entering Request.Ur shows all members in the Request object, but sorts them to show those that start with Url first, such as Url and UrlReferrer (see the screen shot below). The downside is that Visual Studio 2008's IntelliSense drop-down leaves you in the dark of the other URL-related Request property, RawUrl, simply because this property does not start with the letters Ur. with the characters you had typed in. For example, imagine that you needed to determine information about the currently requested URL. Knowing that such information would be in the Request object, but unsure of the property name, you enter Request.Ur, presuming that the property would be named Url or would start with the letters Url. With Visual Studio 2008, entering Request.Ur shows all members in the Request object, but sorts them to show those that start with Url first, such as Url and UrlReferrer (see the screen shot below). The downside is that Visual Studio 2008's IntelliSense drop-down leaves you in the dark of the other URL-related Request property, RawUrl, simply because this property does not start with the letters Ur.

Visual Studio 2010's IntelliSense works a bit differently. Instead of showing all members it shows only those that contain the letters you type in. As the screen shot below shows, typing in Request.Ur displays the three matching members: Url, UrlReferrer, and RawUrl.

What's more, Visual Studio 2010 supports Pascal casing IntelliSense searches. (All of the public types and members in the .NET Framework follow Pascal casing standards, which capitalizes the first letter of the type or member along with each new successive word. Moreover, any acronyms, like HTTP or URL, have only the first letter capitalized and the rest lower cased.) Pascal casing IntelliSense searches allow you to list types and members by entering just the capital letters in the type or member name. For example, typing Request.QSRequest object's QueryString member in the IntelliSense drop-down; entering Server.MP shows the Server object's MapPath member in the drop-down. shows the

A Faster Add Reference Dialog Box

Each project in Visual Studio includes a list of assemblies which the project has access to. When creating a new project in Visual Studio, the most common references are automatically added, but it's not uncommon to need to add additional assemblies to a project when using less common parts of the .NET Framework, when dividing an application into separate projects, or when using third-party components. To add a new assembly to a project, go to the Solution Explorer, right-click on the project, and choose Add Reference. This launches the Add Reference dialog box, which has tabs like .NET, COM, Projects, and Browse. The .NET tab lists assemblies in the Global Assembly Cache (GAC), while the COM tab lists unmanaged COM objects found in the registry. The Projects tabs lists the other projects in your Visual Studio Solution, while the Browse tab is useful for adding an assembly by selecting it from the file system.
In Visual Studio 2008, the Add Reference dialog box opened on the .NET tab and used a single thread to scan the GAC. This would cause the Visual Studio user interface to "hang" while the GAC was being scanned and the .NET tab populated. Visual Studio 2010 improves this annoyance in two ways: first, the Add Reference dialog box opens to the Projects tab; second, going to the .NET tab spawns a new thread that scans the GAC in the background and populating the list asynchronously, meaning that if you accidentally opened the .NET tab you can close the Add Reference dialog box and get back to work without having to wait for the entire GAC to be scanned.

Finding Items in the Toolbox is Easier

With each new version of Visual Studio the number of items in the Toolbox seems to increase exponentially. Visual Studio has long used collapsible sections in the Toolbox to partition controls into various groups - Standard, Data, Validation, and so on. Visual Studio 2010 continues this tradition, but also allows developers to search the Toolbox using the keyboard. Simply click on the Toolbox to bring it into focus and then start typing.
As the screen shot to the right shows, the characters you type in are displayed in the bottom of Visual Studio's main window. (In the screen shot I have typed in the characters "tex".) Visual Studio highlights the first Toolbox item it finds that starts with the characters you've entered. If there are multiple matches, hit the Tab key to see the next result. Once the desired item is selected, hit Enter and the item will be added to the opened ASP.NET page's markup portion. 

Improved Searching

Visual Studio has long supported various search features, but all have felt a little clunky to me. In short, the search features in versions past limited you to searching for particular strings in files. You could search the current document, all open documents, or all files in a project or Solution, but at the end of the day the search was just searching the selected files for the string you entered.
Visual Studio still has these same search features built-in, but has added a new search window named Navigate To. (To bring up the Navigate To window, go to the Edit menu and choose the Navigate To menu item.) From the Navigate To menu you can type in the name of a class, a method, a property, an event, or a file name. The Navigate To window will search all of the types in your Solution and display any matches. When searching, the Navigate To window uses the same enhancements added to IntelliSense. Namely, it searches for types that contain the text you enter and also supports Pascal cased searches.
The screen shot below shows the Navigate To window when searching through an ASP.NET MVC project of mine. Note that my search term, "Controller", returns a variety of results. It returns those classes that contain the word "Controller" in their name: AccountController, BaseController, CategoriesController, HomeController, and ProductsController. It contains the methods that have the word "Controller" in their name, in this case just one - the BaseController class's constructor. And it returns any files whose name contains the text "Controller": AccountController.cs, CategoriesController.cs, HomeController.cs, and ProductsController.cs. Each different type of result displays a different icon, and selecting a result displays its details. For instance, selecting the BaseController constructor reports that the constructor is found in the PR.Web project in the BaseController.cs file on line 25. Double-clicking a result opens the corresponding file on the appropriate line number.


Position Windows Anywhere!

Studies have found that having multiple monitors hooked up to a single computer can increase worker productivity up to 50%. Having gone to a multiple monitor setup several years ago, I cannot imagine going back to a single monitor. Previous versions of Visual Studio offered developers the ability to float certain windows and move them outside of the top-level window and to place them elsewhere (such as on another monitor). However, code and designer windows were locked into the top-level window.
The good news is that Visual Studio 2010's shell allows for any window to be floated and moved outside of the top-level window, including code and designer windows. This means you can have multiple code files lined up side-by-side across one or more monitors. You can move the debugging-related windows like Watch, Intermediate, and Call Stack off to a secondary monitor, and so on.

Multi-Targeting

Traditionally, there has been a tight correspondence between the .NET Framework version you were working with and the version of Visual Studio you needed to use. For example, to develop ASP.NET 1.0 applications you needed to use Visual Studio .NET 2002. To work on ASP.NET 1.1 applications, you used Visual Studio .NET 2003. And for ASP.NET 2.0 applications you used Visual Studio 2005.
Visual Studio 2008 was the first version to offer multi-targeting, which allowed developers to develop against the .NET Framework 2.0, the .NET Framework 3.0, or the .NET Framework 3.5. Unfortunately, Visual Studio 2008 didn't actually implement true multi-targeting support. Rather, it took advantage of the fact that the .NET Framework versions 2.0, 3.0, and 3.5 all use the same core base class library.
"[Visual Studio 2008's] multi-targeting experience worked – although it wasn't perfect. IntelliSense within VS 2008 always shows the types and members for the .NET 3.5 version of a framework library (even if you are targeting .NET 2.0). This means that you can sometimes inadvertently end up using a method that is only in ASP.NET 3.5 even when you are working on a ASP.NET 2.0 project."
Visual Studio 2010 implements true multi-targeting support. When you create a new project in Visual Studio you can choose the target framework, which includes 2.0, 3.0, 3.5, and 4.0 (see the screen shot below). Based on the version you choose, Visual Studio shows the appropriate properties in the Properties window, the appropriate controls in the Toolbox, and the appropriate types and members in the IntelliSense drop-down list. (Note: Multi-targeting is not supported in the Express Edition.)

With this multi-targeting support you can use Visual Studio 2010 to work on ASP.NET 3.5 or ASP.NET 2.0 applications. One thing to keep in mind, however, is that the project files used in Visual Studio 2008 and Visual Studio 2010 differ, so you'll run into some friction if you have some developers working on an ASP.NET 3.5 site using Visual Studio 2008 and others working on the same site using Visual Studio 2010.