Programming for Everybody

Codes load, play, pause and stop windows media player vb.net 2010

Code Load :
AxWindowsMediaPlayer1.URL = "a.mp3"
Code play :
AxWindowsMediaPlayer1.Ctlcontrols.play()
Code pause :
AxWindowsMediaPlayer1.Ctlcontrols.pause()
Code stop :

AxWindowsMediaPlayer1.Ctlcontrols.stop()

message box exit button Vb.net

 Dim Response As Integer

        Response = MessageBox.Show("Do you really want to Exit?", "", _
        MessageBoxButtons.YesNo, MessageBoxIcon.Question)

        If Response = vbYes Then

            End

Visual Studio 2010 How to Create Setup Project




  1.  Open visual studio 2010.
  2.   New>> project
  3.  Visual Basic >>other project types>>Setup and deployment>>Visual studio Installer
  4.   Choose Setup wizard
  5.  
  6.   Next
  7.  Choose Files


  8.   Next
  9.   Finish
  10. 10.                         
                   Click in  Application folder
                Copy 2 copies from File exe
                 Change icon in 2 copies
     Drag and drop copy to user’s Desktop Folder
           Drag and drop copy to user’s program menu
                    
                   Right click  videos setup

                Properties
                  Prerequisites
       Download from same location
       Build>> Build Solution


لنشر روابط في جوجل

لنشر روابط في جوجل لزيادة ارشفتها ورؤيتها  على الانترنت  هناك موقع يتبع جوجل ويتم في اضافة الروابط  حتى يزيد من زحف جوجل عليها مما يشهر موقعك ويجعله أكثر فعالية على الانترنت.
الرابط

How to sum gridview column values dynamically in vb.net?

Protected Sub GridView1_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.DataBound
        Dim Volume As Decimal = 0
        For Each r As GridViewRow In GridView1.Rows
            If r.RowType = DataControlRowType.DataRow Then
                Volume += Convert.ToDecimal(r.Cells(1).Text)
            End If
        Next
        total1.Text = Math.Round(Volume, 0).ToString()
    End Sub

How to count the rows in a gridview asp.net vb.net

Solution
 Dim aa As Integer = GridView1.Rows.Count
            Label44.Text = aa

Auto Generate Row Number in GridView asp.net

Solution

 <asp:TemplateField HeaderText="No.">
                        <ItemTemplate>
                            <%# Container.DataItemIndex + 1 %>
                        </ItemTemplate>
                        <ItemStyle Width="25px" />
                    </asp:TemplateField>