h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Languages Supported by .NET Framework

Languages from Microsoft : Visual C#.NET,Visual Basic.NET,Visual C++.NET
Languages from other vendors:
VJ#.NET,Python.NET,IronPython.NET,APL.NET,Cobol.NET,Perl.NET,Pascal.NET,Component Pascal.NET,Curriculum.NET,Eiffel.NET,Forth.NET,Fortran.NET,Haskell.NET,Mercury.NET,Mondrian.NET,Oberon.NET,RPG.NET,Scheme.NET,Small Talk.NET,Standard ML.NET

Get Total Quantity from Datagridview in C#.NET

Today , we will see "Get Total from Quantity Column in DataGridView in C#.Net"

Code
private double ADDCoulmnValue(int ColIdx, DataGridView dgv) { for (int idx = 0;idx <dgv.Rows.Count;idx++)
{ tot += Convert.ToDouble(dgv.Rows[idx].Cells[ColIdx].Value);
} }
     

Microsoft Team Foundation Server

Microsoft Team Foundation Server- TFS Source Control System
Its some kind of tool like SVN/GIT etc source version control system.But, version control is only a part of this.Team foundation server(in short, TFS), is a great innovation of Microsoft,that is integrated with Visual Studio and provide a easy/effective way to manage a software development project completely.
Installing:
If you are using visual studio 2008, then you must need to have service pack 1 installed before you can install team foundation client software.
you can download the team system client for vs 2008 from this microsoft download link.
If you are a visual studio 2010 user, then you won’t have to do anything and its already a part of visual studio 2010.
Configuring:
         First we will have to connect to TFS server and setup the initials.
        On visual studio menu, you should see a menu named ‘Team’, which will include only one option titled ‘Connect To Team Foundation Server’.From here, you will get an ‘Connect To Team Project’ dialogue.
This originally contains the listing of team projects on a selected server. As we don’t have any server configured, there will be nothing here at this moment.
Click on the ‘Servers’ button.
         Here, you can provide the url, port, extra uri path,protocol(http/https). However, instead of giving individual details, if you give a complete url that contains all info, will work also. This can be like “http://yourtfsserver.com:8080/uripath”.
           After you have added the server. select it on “Connect to Team Project” dialogue.
Now, select proper ‘Project Collection’ and then select your specific project.Then you should be prompt to select a local pc directory where you wish to save all the files.it will perform a complete ‘checkout’ operation that will download all latest files from the server.
Browse Server Contents:
           There are two windows to get you see the server files.
           First, On ‘View -> Team Explorer’ you will see the team foundation server’s all items like Work       Items,Documents,Reports,Builds and Source Control.The main concern for us at this moment is to use the ‘Source Control’ part.If you click on that option, you will get to another new window, which actually shows you all server files inside your team foundation server project.
Adding/Deleting Files/Directories To Source Control:
            You should be able to see some options on the top bar of source control explorer window.
Similar options will be found if you right click of your mouse inside the area.
To add one/more file(s)(or directories), just use the ‘Add Items To Folder’ option to do so. Here,
I want to add a suggestion that, although you will be able to select files from other directories as well,it will be best to, first add items to your local file system (relatively) where you want them to be placed on server. then add the add option on source control explorer to add them from there.
           After you perform the addition, those files/directories won’t be committed to server yet.
You will then have to perform another operation named ‘Check In Pending Changes’ to add them permanently to tfs server(its similar to the commit option on SVN).
          Similarly you can delete files/folders from server using the ‘delete’ option and then finally checking in the pending changes.Here, just to mention, remove something using the source control explorer will not necessarily remove them from your local file system.You can do it manually.
Edit File:
          To Edit a file, you should first use the option ‘Checkout for edit’ to acknowledge server that you are going to edit this file.This will be notified to other developers also and they will see this in edit mode through source control explorer.Also, until you checkout a file for edit, files will be in ‘read only’ mode.
As a result, you won’t be able to edit it externally(However its still possible to do so from within visual studio).
So, checking out for edit is kind of must for binary files(like doc file etc) at least.
Also, if you edit a file in offline mode(not connected to tfs server), it will detect the edited files and will convert them to ‘edit’ mode after you get to online.
Merging And Branching:
           TFS has merging and branching facility as well.If your local version doesn’t fit with server version, in short, if any conflicts occurs, you can either manually merge them in merge tool or you can command tfs to do auto merge(you will only get this option if TFS thinks that it can be merged automatically).
            If you have to work on several files and all are related to a single feature, its best to create a branch of the project or code file(s) and work on them. After finishing your task. you can again use the TFS merge command with the main branch and it will automatically incorporate those changes itself.Finally, you will have to commit as well.
Shelve Set:
         If you are a earlier SVN user, then you may be new to this term.Team foundation server has this feature, which allows you to save your local edit as a separate item in server,which can be retrieved and reviewed by other developers of your team. After approval suggestions, it can be deleted or check in to the main version control stream.
Refer

Create Constructor in VB.Net

This is code for Constructor in VB.Net
private idx As Integer
    Public Sub Class1(ByVal id As Integer)
        Me.idx = id
    End Sub

.NET Framework Application Essentials


  • Working with Base Types
  • Collections and Data Structures
  • Generics in the .NET Framework
  • Handling and Raising Events
  • Handling and Throwing Exceptions
  • File and Stream I/O
  • Dates, Times, and Time Zones
  • Programming with Application Domains and Assemblies
  • Serialization [from BPUEDev11]
  • Resources in Desktop Apps
  • Globalizing and Localizing .NET Framework Applications
  • Accessibility
  • Extending Metadata Using Attributes
  • 64-bit Applications


Override ToString Method in VB.Net

This is a Example for Override ToString Method in VB.Net

Public Class Class1
    Public idx As Integer
    Public Overrides Function ToString() As String
        Return Me.idx.ToString() + " " + "VB.Net"
    End Function
End Class
Paste this following code in your main form  
        Dim cl As Class1 = New Class1
        cl.idx = 100
        MessageBox.Show(cl.ToString())
Result:
100 VB.Net

Override ToString Method in C#.Net

This is a Example for Override ToString Method in C#.Net

To Create a Class File for Convert a integer into string

        private int idx;
        public Class1(int idxs)
        {
            this.idx = idxs;
        }
        public override string ToString()
        {
            return this.idx.ToString() + " " + "Good";
        }
Paste this following code in your main form
   Class1 cls = new Class1(10);
            MessageBox.Show(cls.ToString());

Output:
10 Good

Aware of the Body Language you should know before your next job interview

Aware of the Body Language you should know before your next job interview
Here are 11 basic facts on body language which might help you a lot while preparing yourself for job interviews.
Most of us aren't aware of our body language, especially when we're in a stressful situation — but interviewers are trained to read it.
It is important to have body awareness before you go into an interview, In fact, there are many actions and habits that we should consider doing or avoid doing to tell the right story during the interview setting.
1. Feel good about your wardrobe and wear clothes that 'show you in your best lighting'.
2. Place your feet on the floor.
3. Sit still or you'll come off as a nervous person.
4. Place your hands on your knees.
5. Sit a bit forward to show that you're interested and serious about the interview.
6. Folding your arms will make you seem unfriendly.
7. Playing with your hair or cracking your knuckles can be extremely distracting to your interviewer.
8. Putting your hands in your pockets makes you look 'messy'
9. Don't invade the interviewer's space and keep your hands and body parts on your side of the desk
10. Use props to help you look more comfortable
11. Staring will make you look too intense and unnatural.
In a conversation, never fully lock eyes with people. Bentley said. We talk, we look people in the eyes, we have a thought, and we look away. We look to the right, and we look to the left. When you start staring at them, you start "to look a little crazy. If you feel like you are looking the person in the eye too long, hold it one more second and break away.
The above are only a few basic tips on body language "Do's and Don'ts" for a job interview. You can easily acquire them if you take a little conscious step ahead.
Hope, you enjoyed reading this post.
Have a great day

From FB.

Add DataGridView Column Value in C#.net

Today, we will discuss about Add DataGridView Column Value in C#.net
private double  ADDCoulmnValue(int ColIdx, DataGridView dgv)
        {
            double d = 0;
            for (int idx = 0;idx <dgv.Rows.Count;idx++)
            {
                tot += Convert.ToDouble(dgv.Rows[idx].Cells[ColIdx].Value);
            }
            return tot;
        }

Add DataGridView Column Value in VB.Net

Today,We will see "How to Add DataGridView Column Value in VB.NET?"
Private Function ADDCoulmnValue(ColIdx As Integer, dgv As DataGridView) As Double Dim d As Double = 0 For idx As Integer = 0 To dgv.Rows.Count - 1 tot += Convert.ToDouble(dgv.Rows(idx).Cells(ColIdx).Value) Next Return tot End Function