Visual Basic .NET ¶Ç´Â Visual Basic 2005¸¦ »ç¿ëÇÏ¿© ¿Àµð¿À ÆÄÀÏ Àç»ý ¹æ¹ý

±â¼ú ÀÚ·á: 821767 - ÀÌ ¹®¼­°¡ Àû¿ëµÇ´Â Á¦Ç° º¸±â.
¸ðµÎ È®´ë | ¸ðµÎ Ãà¼Ò

ÀÌ ÆäÀÌÁö¿¡¼­

¿ä¾à

ÀÌ ¹®¼­¿¡¼­´Â Microsoft Visual Basic .NET ¶Ç´Â Microsoft Visual Basic 2005¸¦ »ç¿ëÇÏ¿© ¿Àµð¿À ÆÄÀÏÀ» Àç»ýÇÏ´Â ¹æ¹ý¿¡ ´ëÇØ ¼³¸íÇÕ´Ï´Ù. ÀÌ ¹®¼­¿¡¼­´Â ´ÙÀ½ ¹®¼­¿¡¼­ ¼³¸íÇÏ´Â °³³äÀ» ³ªÅ¸³»´Â ¿¹Á¦ Äڵ嵵 Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

¿ä±¸ »çÇ×

´ÙÀ½Àº ±ÇÀåµÇ´Â Çϵå¿þ¾î, ¼ÒÇÁÆ®¿þ¾î, ³×Æ®¿öÅ© ÀÎÇÁ¶ó ¹× ÇÊ¿äÇÑ ¼­ºñ½º ÆÑÀÇ ¸ñ·ÏÀÔ´Ï´Ù.
  • Microsoft Windows Server 2003, Microsoft Windows 2000 Microsoft Windows XPÀÇ °æ¿ì ¶Ç´Â Microsoft Windows XP ¼­ºñ½º ÆÑ 1
  • Visual Basic .NET ¶Ç´Â Visual Basic 2005
Âü°í ÀÌ ¹®¼­¿¡¼­ Á¦°øÇÏ´Â ÄÚµå Microsoft Windows Server 2003¿¡¼­ Áö¿øµÇÁö ¾Ê½À´Ï´Ù.

ÀÌ ¹®¼­¿¡¼­´Â »ç¿ëÀÚ°¡ ´ÙÀ½ Ç׸ñÀ» Àß ¾Ë°í ÀÖ´Ù°í °¡Á¤ÇÕ´Ï´Ù.
  • ½Ã°¢Àû ±âº» .NET ¶Ç´Â Visual Basic 2005 ÇÁ·Î±×·¡¹Ö
  • % ¼ÒÇÁÆ®¿þ¾î °³¹ß (SDK) kit
  • ±¸¼º ¿ä¼Ò °³Ã¼ ¸ðµ¨(COM) »óÈ£ ¿î¿ë¼º Visual Basic .NET¿¡¼­ ¶Ç´Â Visual Basic 2005ÀÇ

Windows ÀÀ¿ë ÇÁ·Î±×·¥ ¸¸µé±â

  1. Microsoft Visual Studio .NET ¶Ç´Â Microsoft Visual Basic 2005 ½ÃÀÛÇϽʽÿÀ.
  2. ÆÄÀÏ ¸Þ´º¿¡¼­ »õ·Î ¸¸µé±â¸¦ °¡¸®Å² ´ÙÀ½ ÇÁ·ÎÁ§Æ® ¸¦ Ŭ¸¯ÇϽʽÿÀ.
  3. ÇÁ·ÎÁ§Æ® Çü½ÄVisual Basic ÇÁ·ÎÁ§Æ® ¸¦ Ŭ¸¯ÇϽʽÿÀ.

    Âü°í Visual Studio 2005¿¡¼­ ÇÁ·ÎÁ§Æ® Çü½Ä ¿¡¼­ Visual Basic À» Ŭ¸¯ÇϽʽÿÀ.
  4. ÅÛÇø´ À» Windows ÀÀ¿ë ÇÁ·Î±×·¥.
  5. À̸§ »óÀÚ¿¡ AudioDemo ¸¦ ÀÔ·ÂÇÑ ´ÙÀ½ È®ÀÎ À» ´©¸¨´Ï´Ù. ±âº»ÀûÀ¸·Î Form1.vbÀÌ ¸¸µé¾îÁý´Ï´Ù.

ÇØ´ç ÀÀ¿ë ÇÁ·Î±×·¥ % ÄÁÆ®·Ñ Ãß°¡

  1. Visual Studio .NET ¶Ç´Â Visual Studio 2005 ½ÃÀÛÇϽʽÿÀ.
  2. µµ±¸ ¸Þ´º¿¡¼­ µµ±¸ »óÀÚ Ç׸ñ Ãß°¡/Á¦°Å¸¦ Ŭ¸¯ÇϽʽÿÀ.

    Âü°í Visual Studio .NET 2002 µµ±¸ ¸Þ´º¿¡¼­ µµ±¸ »óÀÚ »ç¿ëÀÚ ÁöÁ¤ À» ´©¸¨´Ï´Ù.

    Visual Studio 2005 µµ±¸ »óÀÚ Ç׸ñ ¼±Åõµ±¸ ¸¦ Ŭ¸¯ÇÕ´Ï´Ù. ¸Þ´º.
  3. COM ±¸¼º ¿ä¼Ò ÅÇÀ» Ŭ¸¯ÇÑ ´ÙÀ½ ã¾Æº¸±â ¸¦ Ŭ¸¯ÇϽʽÿÀ.
  4. ãÀº ´ÙÀ½ Msdxm.ocx ¸¦ Ŭ¸¯ÇÑ ´ÙÀ½ ¿­±â ¸¦ Ŭ¸¯ÇϽʽÿÀ.

    Âü°í Msdxm.ocx ÀϹÝÀûÀ¸·Î %WINDIR% ¿¡ À§Ä¡ÇÑ/System32 %WINDIR% »ç¿ëÀÚ ÄÄÇ»ÅÍÀÇ Windows µð·ºÅ͸®ÀÇ À§Ä¡¸¦ À§Ä¡.
  5. µµ±¸ »óÀÚ »ç¿ëÀÚ ÁöÁ¤ ¶Ç´Â ¼±Åà µµ±¸ »óÀÚ Ç׸ñ ´ëÈ­ »óÀÚ¿¡¼­ È®ÀÎ À» ´©¸¨´Ï´Ù. Visual Studio .NET 2003 ¹× WindowsMediaPlayer Visual Studio 2005¿¡¼­ ÄÁÆ®·Ñ µµ±¸ »óÀÚ¿¡ Ãß°¡µË´Ï´Ù. Visual Studio .NET 2002¿¡¼­ MediaPlayer ÄÁÆ®·Ñ µµ±¸ »óÀÚ¿¡ Ãß°¡µË´Ï´Ù.
  6. Visual Studio .NET 2003 ¶Ç´Â Visual Studio 2005 WindowsMediaPlayer ÄÁÆ®·ÑÀ» Form1¿¡ Ãß°¡ÇϽʽÿÀ. Visual Studio .NET 2002¿¡¼­ MediaPlayer ÄÁÆ®·ÑÀ» Ãß°¡ÇϽʽÿÀ.
  7. AxMediaPlayer1 Form1¿¡ Ãß°¡ÇÕ´Ï´Ù.

Windows Media Player Á¦¾î ´ÜÃß Ãß°¡

  1. ³× °³ÀÇ ´ÜÃß ÄÁÆ®·ÑÀ» Form1¿¡ Ãß°¡ÇϽʽÿÀ.
  2. Button1 À» Ŭ¸¯ÇϽʽÿÀ.
  3. ÅØ½ºÆ® ¼Ó¼º â¿¡¼­ º¯°æÇÒ ¼Ó¼ºÀ» ·Îµå Button1.
  4. Button2 ¸¦ Ŭ¸¯ÇϽʽÿÀ.
  5. ¼Ó¼º â¿¡¼­ Text º¯°æÇÒ Button2 Àç»ý ÇÏ´Â ¼Ó¼º.
  6. Button3 À» Ŭ¸¯ÇϽʽÿÀ.
  7. ÅØ½ºÆ® ¼Ó¼º â¿¡¼­ º¯°æÇÒ ¼Ó¼ºÀ» Pause Button3.
  8. Button4 ¸¦ Ŭ¸¯ÇϽʽÿÀ.
  9. ÅØ½ºÆ® ¼Ó¼º â¿¡¼­ º¯°æÇÒ ¼Ó¼ºÀ» Stop Button4.

¿Àµð¿À ÆÄÀÏ ·Îµå OpenFileDialog¸¦ ±¸¼º Ãß°¡

Form1¿¡ OpenFileDialog¸¦ ±¸¼º ¿ä¼Ò¸¦ Ãß°¡ÇϽʽÿÀ.

ÃʱâÈ­ ÄÚµå Ãß°¡

  1. º¸±â ¸Þ´º¿¡¼­ ÄÚµå ¸¦ Ŭ¸¯ÇϽʽÿÀ.
  2. ´ÙÀ½ Äڵ带 "Windows Form µðÀÚÀ̳ʿ¡¼­ »ý¼ºÇÑ ÄÚµå" ¿µ¿ª ã½À´Ï´Ù:
    InitializeComponent()
  3. 2´Ü°è¿¡¼­ ãÀº ÄÚµå µÚ¿¡ ´ÙÀ½ Äڵ带 Ãß°¡ÇÏ¿©:
    ' Disable the Play, the Pause, and the Stop buttons.
    Button2.Enabled = False
    Button3.Enabled = False
    Button4.Enabled = False
    
    ' Hide the Windows Media Player.
    AxMediaPlayer1.Visible = False
    

¿Àµð¿À ÆÄÀÏ ·Îµå ÄÚµå Ãß°¡

  1. º¸±â ¸Þ´º¿¡¼­ µðÀÚÀÌ³Ê ¸¦ Ŭ¸¯ÇϽʽÿÀ.
  2. ·Îµå ÄÁÆ®·ÑÀ» µÎ ¹ø Ŭ¸¯ÇÑ ´ÙÀ½ Button1_Click À̺¥Æ®-󸮱⿡ ´ÙÀ½ Äڵ带 Ãß°¡ÇÏ¿©:
    ' Reset the file names for the Open File dialog box and for the Media Player.
    OpenFileDialog1.FileName = ""
    AxMediaPlayer1.FileName = ""
    ' Display the Open File dialog box.
    OpenFileDialog1.ShowDialog()
    ' Verify that Cancel was not clicked.
    If Not OpenFileDialog1.FileName = "" Then
       ' Disable the Load button.
       Button1.Enabled = False
       ' Prevent the Media Player from automatically playing loaded files.
       AxMediaPlayer1.AutoStart = False
       ' Set the Media Player audio file.
       AxMediaPlayer1.FileName = OpenFileDialog1.FileName
       MessageBox.Show("The following file has been loaded in the Media Player control: " + AxMediaPlayer1.FileName)
       ' Enable the Play button.
       Button2.Enabled = True
    Else
       ' Disable the Play button.
       Button2.Enabled = False
    End If

¿Àµð¿À ÆÄÀÏ Àç»ý ÄÚµå Ãß°¡

  1. º¸±â ¸Þ´º¿¡¼­ µðÀÚÀÌ³Ê ¸¦ Ŭ¸¯ÇϽʽÿÀ.
  2. Àç»ý ÄÁÆ®·ÑÀ» µÎ ¹ø Ŭ¸¯ÇÑ ´ÙÀ½ Button2_Click À̺¥Æ®-󸮱⿡ ´ÙÀ½ Äڵ带 Ãß°¡ÇÏ¿©:
    ' Disable the Load and the Play buttons.
    Button1.Enabled = False
    Button2.Enabled = False
    ' Play the audio file.
    AxMediaPlayer1.Play()
    ' Enable the Pause and the Stop buttons.
    Button3.Enabled = True
    Button4.Enabled = True

¿Àµð¿À ÆÄÀÏ ÀϽà ÁßÁö ÄÚµå Ãß°¡

  1. º¸±â ¸Þ´º¿¡¼­ µðÀÚÀÌ³Ê ¸¦ Ŭ¸¯ÇϽʽÿÀ.
  2. ÀϽà ÁßÁö ÄÁÆ®·ÑÀ» µÎ ¹ø Ŭ¸¯ÇÑ ´ÙÀ½ Button3_Click À̺¥Æ®-󸮱⿡ ´ÙÀ½ Äڵ带 Ãß°¡ÇÏ¿©:
    ' Disable the Pause button.
    Button3.Enabled = False
    ' Pause the audio file.
    AxMediaPlayer1.Pause()
    ' Enable the Play button.
    Button2.Enabled = True

¿Àµð¿À ÆÄÀÏ ÁßÁö ÄÚµå Ãß°¡

  1. º¸±â ¸Þ´º¿¡¼­ µðÀÚÀÌ³Ê ¸¦ Ŭ¸¯ÇϽʽÿÀ.
  2. ÁßÁö ÄÁÆ®·ÑÀ» µÎ ¹ø Ŭ¸¯ÇÑ ´ÙÀ½ Button4_Click À̺¥Æ®-󸮱⿡ ´ÙÀ½ Äڵ带 Ãß°¡ÇÏ¿©:
    ' Disable the Pause and the Stop buttons.
    Button3.Enabled = False
    Button4.Enabled = False
    ' Stop playing the audio file, and then reset the next play position to the beginning.
    AxMediaPlayer1.Stop()
    AxMediaPlayer1.CurrentPosition = 0
    ' Enable the Load and the Play buttons.
    Button1.Enabled = True
    Button2.Enabled = True

¿¹Á¦ ÄÚµå (Form1.vb) ¸ñ·Ï

Option Strict On

Public Class Form1
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        ' This call is required by the Windows Form Designer.
      InitializeComponent()

      ' Disable the Play, the Pause, and the Stop buttons.
      Button2.Enabled = False
      Button3.Enabled = False
      Button4.Enabled = False

      ' Hide the Media Player.
      AxMediaPlayer1.Visible = False
      
        ' Add any initialization after the InitializeComponent() call.

    End Sub

    ' Form overrides Dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    ' Required by the Windows Form Designer.
    Private components As System.ComponentModel.IContainer

    ' NOTE: The following procedure is required by the Windows Form Designer
    ' It can be modified using the Windows Form Designer.  
    ' Do not modify it using the code editor.
   Friend WithEvents AxMediaPlayer1 As AxMediaPlayer.AxMediaPlayer
   Friend WithEvents Button1 As System.Windows.Forms.Button
   Friend WithEvents Button2 As System.Windows.Forms.Button
   Friend WithEvents Button3 As System.Windows.Forms.Button
   Friend WithEvents Button4 As System.Windows.Forms.Button
   Friend WithEvents OpenFileDialog1 As System.Windows.Forms.OpenFileDialog
   <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
      Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
      Me.AxMediaPlayer1 = New AxMediaPlayer.AxMediaPlayer
      Me.Button1 = New System.Windows.Forms.Button
      Me.Button2 = New System.Windows.Forms.Button
      Me.Button3 = New System.Windows.Forms.Button
      Me.Button4 = New System.Windows.Forms.Button
      Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog
      CType(Me.AxMediaPlayer1, System.ComponentModel.ISupportInitialize).BeginInit()
      Me.SuspendLayout()
      '
      'AxMediaPlayer1
      '
      Me.AxMediaPlayer1.Location = New System.Drawing.Point(224, 0)
      Me.AxMediaPlayer1.Name = "AxMediaPlayer1"
      Me.AxMediaPlayer1.OcxState = CType(resources.GetObject("AxMediaPlayer1.OcxState"), System.Windows.Forms.AxHost.State)
      Me.AxMediaPlayer1.Size = New System.Drawing.Size(286, 225)
      Me.AxMediaPlayer1.TabIndex = 0
      '
      'Button1
      '
      Me.Button1.Location = New System.Drawing.Point(16, 72)
      Me.Button1.Name = "Button1"
      Me.Button1.TabIndex = 1
      Me.Button1.Text = "Load"
      '
      'Button2
      '
      Me.Button2.Location = New System.Drawing.Point(32, 104)
      Me.Button2.Name = "Button2"
      Me.Button2.TabIndex = 2
      Me.Button2.Text = "Play"
      '
      'Button3
      '
      Me.Button3.Location = New System.Drawing.Point(40, 136)
      Me.Button3.Name = "Button3"
      Me.Button3.TabIndex = 3
      Me.Button3.Text = "Pause"
      '
      'Button4
      '
      Me.Button4.Location = New System.Drawing.Point(56, 192)
      Me.Button4.Name = "Button4"
      Me.Button4.TabIndex = 4
      Me.Button4.Text = "Stop"
      '
      'Form1
      '
      Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
      Me.ClientSize = New System.Drawing.Size(712, 397)
      Me.Controls.Add(Me.Button4)
      Me.Controls.Add(Me.Button3)
      Me.Controls.Add(Me.Button2)
      Me.Controls.Add(Me.Button1)
      Me.Controls.Add(Me.AxMediaPlayer1)
      Me.Name = "Form1"
      Me.Text = "Form1"
      CType(Me.AxMediaPlayer1, System.ComponentModel.ISupportInitialize).EndInit()
      Me.ResumeLayout(False)

   End Sub

#End Region

   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      ' Reset the file names for the Open dialog box and for the Media Player.
      OpenFileDialog1.FileName = ""
      AxMediaPlayer1.FileName = ""
      ' Display the Open File dialog box.
      OpenFileDialog1.ShowDialog()
      ' Verify that Cancel was not clicked.
      If Not OpenFileDialog1.FileName = "" Then
         ' Disable the Load button.
         Button1.Enabled = False
         ' Prevent the Media Player from automatically playing loaded files.
         AxMediaPlayer1.AutoStart = False
         ' Set the Media Player audio file.
         AxMediaPlayer1.FileName = OpenFileDialog1.FileName
         MessageBox.Show("The following file has been loaded in the Media Player control: " + AxMediaPlayer1.FileName)
         ' Enable the Play button.
         Button2.Enabled = True
      Else
         ' Disable the Play button.
         Button2.Enabled = False
      End If
   End Sub

   Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
      ' Disable the Load and the Play buttons.
      Button1.Enabled = False
      Button2.Enabled = False
      ' Play the audio file.
      AxMediaPlayer1.Play()
      ' Enable the Pause and the Stop buttons.
      Button3.Enabled = True
      Button4.Enabled = True
   End Sub

   Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
      ' Disable the Pause button.
      Button3.Enabled = False
      ' Pause the audio file.
      AxMediaPlayer1.Pause()
      ' Enable the Play button.
      Button2.Enabled = True
   End Sub

   Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
      ' Disable the Pause and the Stop buttons.
      Button3.Enabled = False
      Button4.Enabled = False
      ' Stop playing the audio file, and then reset the next play position to the beginning.
      AxMediaPlayer1.Stop()
      AxMediaPlayer1.CurrentPosition = 0
      ' Enable the Load and the Play buttons.
      Button1.Enabled = True
      Button2.Enabled = True
   End Sub
End Class
Âü°í Visual Basic 2005ÀÇ Äڵ带 º¯°æÇØ¾ß ÇÕ´Ï´Ù. Windows Forms ¸¸µé ¶§ ±âº»ÀûÀ¸·Î Visual Basic ÇÁ·ÎÁ§Æ®¿¡ ´ëÇÑ µÎ °³ÀÇ ÆÄÀÏÀ» ¸¸µì´Ï´Ù. ÇÁ·ÎÁ§Æ®. Form1À̶ó´Â ÆûÀÇ °æ¿ì ÆûÀ» ³ªÅ¸³»´Â µÎ °³ÀÇ ÆÄÀÏÀº Form1.vb Form1.Designer.vb À̸§ÀÌ ÁöÁ¤µË´Ï´Ù. Form1.vb ÆÄÀÏÀÇ Äڵ带 ÀÛ¼ºÇÕ´Ï´Ù. Windows Forms µðÀÚÀÌ³Ê ÄÚµå Form1.Designer.vb ÆÄÀÏ¿¡ ¾¹´Ï´Ù. Windows Forms µðÀÚÀÌ³Ê partial Ű¿öµå¸¦ »ç¿ëÇÏ¿© µÎ °³ÀÇ ÆÄÀÏÀÌ Form1ÀÇ ±¸ÇöÀ» ³ª´¯´Ï´Ù. ÀÌ µðÀÚÀ̳ʿ¡¼­ »ý¼ºÇÑ ÄÚµå ÄÚµå¿Í ÇÔ²² »ðÀÔµÇ¾î ¹æÁöµË´Ï´Ù.

»õ·Î¿î Visual Basic 2005 ¾ð¾î Çâ»ó ±â´É¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ ³»¿ëÀº ´ÙÀ½ MSDN) Microsoft °³¹ßÀÚ ³×Æ®¿öÅ© (À¥ »çÀÌÆ®¸¦ ¹æ¹®ÇϽʽÿÀ.
http://msdn2.microsoft.com/en-us/library/ms379584(vs.80).aspx
ÀÚ¼¼ÇÑ ³»¿ëÀº ºÎºÐ Ŭ·¡½º ¹× Windows Forms µðÀÚÀ̳Ê, ´ÙÀ½ MSDN À¥ »çÀÌÆ®¸¦ ¹æ¹®ÇϽʽÿÀ:
http://msdn2.microsoft.com/en-us/library/ms171843.aspx

ÄÚµå ÀÛµ¿ÇÏ´ÂÁö È®ÀÎÇϽʽÿÀ.

  1. ºôµå ¸Þ´º¿¡¼­ ´­·¯ ºôµå ¼Ö·ç¼Ç.
  2. ÀÀ¿ë ÇÁ·Î±×·¥ÀÌ ½ÇÇàµÇµµ·Ï ÇÏ·Á¸é µð¹ö±× ¸Þ´º¿¡¼­ ½ÃÀÛ À» Ŭ¸¯ÇϽʽÿÀ. Form1ÀÌ ³ªÅ¸³³´Ï´Ù.
  3. ·Îµå ¸¦ Ŭ¸¯ÇϽʽÿÀ. ¿­±â ´ëÈ­ »óÀÚ°¡ ³ªÅ¸³³´Ï´Ù.
  4. ãÀº ¹× ¸ðµç À¯È¿ÇÑ ¿Àµð¿À ÆÄÀÏÀ» ¼±ÅÃÇÑ ´ÙÀ½ ¿­±â ¸¦ Ŭ¸¯ÇϽʽÿÀ. Àüü ÆÄÀÏ °æ·Î »ç¿ëÇÏ¿© ¸Þ½ÃÁö »óÀÚ°¡ ³ªÅ¸³³´Ï´Ù.
  5. È®ÀÎ À» ´­·¯ ¸Þ½ÃÁö »óÀÚ¸¦ ´Ý½À´Ï´Ù.
  6. ¿Àµð¿À ÆÄÀÏÀÇ Àç»ýÀ» ½ÃÀÛÇÏ·Á¸é Àç»ý À» Ŭ¸¯ÇϽʽÿÀ. ÇØ´ç ¿Àµð¿À Ãâ·ÂÀ» µéÀ» ¼ö ÀÖ½À´Ï´Ù.

    Âü°í ÄÄÇ»ÅÍ¿¡ »ç¿îµå Ä«µå°¡ ¿Ã¹Ù¸£°Ô ±¸¼ºµÈ °æ¿ì ¹× Ãâ·Â µéÀ» ¼ö, earphones, ½ºÇÇÄ¿³ª ÇìµåÆùÀ» »ç¿ëÇÏ´Â °æ¿ì ¿Àµð¿À Ãâ·ÂÀ» µéÀ» ¼ö ÀÖ½À´Ï´Ù.
  7. ÀϽà ÁßÁö ¶Ç´Â ÁßÁö ÀÀ¿ë ÇÁ·Î±×·¥¿¡¼­ ¿Àµð¿À Ãâ·Â Á¦¾îÇÏ·Á¸é ´©¸¨´Ï´Ù.

¹®Á¦ ÇØ°á

  • ÄÄÇ»ÅÍ¿¡ »ç¿îµå Ä«µå°¡ ¿Ã¹Ù¸£°Ô ±¸¼ºµÈ °æ¿ì ¹× Ãâ·Â µéÀ» ¼ö, earphones, ½ºÇÇÄ¿³ª ÇìµåÆùÀ» »ç¿ëÇÏ´Â °æ¿ì ¿Àµð¿À Ãâ·ÂÀ» µéÀ» ¼ö ÀÖ½À´Ï´Ù.
  • Àç»ý À» Àü¿¡ ¿Àµð¿À Ãâ·ÂÀ» µéÀ» ¼ö ÀÖ½À´Ï´Ù. ¹Ìµð¾î Ç÷¹À̾î ÀÚµ¿ ½ÃÀÛ ¼Ó¼ºÀ» false ·Î ¼³Á¤µÈ °æ¿ì ÀÌ ¹®Á¦°¡ ¹ß»ýÇÕ´Ï´Ù. ±âº»ÀûÀ¸·Î ÀÚµ¿ ½ÃÀÛ ¼Ó¼ºÀº true ·Î ¼³Á¤µË´Ï´Ù. ÀÌ ¹®Á¦¸¦ ÇØ°áÇÒ ¼ö ÀÖ´Â "Windows Form µðÀÚÀ̳ʿ¡¼­ »ý¼ºÇÑ ÄÚµå" ¿µ¿ª ´ÙÀ½ ÁÙÀ» ã½À´Ï´Ù:
    InitializeComponent()
    ´ÙÀ½ À§Ä¡ÇÑ ÀÖ¾î¾ß ÄÚµå µÚ¿¡ ´ÙÀ½ Äڵ带 Ãß°¡ÇÕ´Ï´Ù.
    ' Prevent the Media Player from automatically playing loaded files.
    AxMediaPlayer1.AutoStart = False
  • ÁßÁö ¸¦ ´ÙÀ½ Àç»ý À» ´©¸£¸é ¿Àµð¿À ÆÄÀÏÀ» óÀ½ºÎÅÍ Àç»ýÀ» ½ÃÀÛÇÒ ¼ö ÀÖ½À´Ï´Ù. ´ë½Å, ¿Àµð¿À ÆÄÀÏ À§Ä¡¸¦ ÆÄÀÏ Àç»ýÀ» ÁßÁöÇÒ °ÍÀ» Àç»ýÀ» ½ÃÀÛÇÕ´Ï´Ù. Àç»ý À§Ä¡¸¦ ¿Àµð¿À ÆÄÀÏÀÇ ½ÃÀÛ ºÎºÐ¿¡ ´Ù½Ã ¼³Á¤ÇÒ ¶§ ÀÌ ¹®Á¦°¡ ¹ß»ýÇÕ´Ï´Ù. ÀÌ ¹®Á¦¸¦ ÇØ°áÇÏ·Á¸é ´ÙÀ½ Äڵ带 Button4_Click À̺¥Æ® 󸮱Ⱑ ÀÖ´Â »ç¿ëÇϽʽÿÀ:
    AxMediaPlayer1.CurrentPosition = 0
  • ÀÌ »ùÇÿ¡¼­´Â %¿¡ ÀÇÇØ Áö¿øµÇÁö ¾Ê´Â ¿Àµð¿À Çü½ÄÀÌ Àç»ýµÇÁö ¾ÊÀ» ¼ö ÀÖ½À´Ï´Ù.

ÂüÁ¶

ÀÚ¼¼ÇÑ ³»¿ëÀº ´ÙÀ½ Microsoft °³¹ßÀÚ ³×Æ®¿öÅ© (MSDN) À¥ »çÀÌÆ®¸¦ ¹æ¹®ÇϽʽÿÀ.
Windows Media Player 6.4¿¡¼­ SDK
http://msdn2.microsoft.com/en-us/library/ms984011.aspx
COM Interop
http://msdn2.microsoft.com/en-us/library/6bw51z5z(vs.71).aspx

¼Ó¼º

±â¼ú ÀÚ·á: 821767 - ¸¶Áö¸· °ËÅä: 2007³â 11¿ù 26ÀÏ ¿ù¿äÀÏ - ¼öÁ¤: 2.8
º» ¹®¼­ÀÇ Á¤º¸´Â ´ÙÀ½ÀÇ Á¦Ç°¿¡ Àû¿ëµË´Ï´Ù.
  • Microsoft Visual Basic 2005
  • Microsoft Visual Basic .NET 2003 Standard Edition
  • Microsoft Visual Basic .NET 2002 Standard Edition
Ű¿öµå:?
kbmt kbvs2005applies kbvs2005swept kbwaveaudio kbsdk kbcominterop kbcomctrls kbsound kbinterop kbappdev kbctrl kbcontrol kbprogramming kbsample kbhowtomaster KB821767 KbMtko
±â°è ¹ø¿ªµÈ ¹®¼­
Áß¿ä: º» ¹®¼­´Â Àü¹® ¹ø¿ª°¡°¡ ¹ø¿ªÇÑ °ÍÀÌ ¾Æ´Ï¶ó Microsoft ±â°è ¹ø¿ª ¼ÒÇÁÆ®¿þ¾î·Î ¹ø¿ªÇÑ °ÍÀÔ´Ï´Ù. Microsoft´Â ¹ø¿ª°¡°¡ ¹ø¿ªÇÑ ¹®¼­ ¹× ±â°è ¹ø¿ªµÈ ¹®¼­¸¦ ¸ðµÎ Á¦°øÇϹǷΠMicrosoft ±â¼ú ÀÚ·á¿¡ ÀÖ´Â ¸ðµç ¹®¼­¸¦ Çѱ۷ΠÁ¢ÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×·¯³ª ±â°è ¹ø¿ª ¹®¼­°¡ Ç×»ó ¿Ïº®ÇÑ °ÍÀº ¾Æ´Õ´Ï´Ù. µû¶ó¼­ ±â°è ¹ø¿ª ¹®¼­¿¡´Â ¸¶Ä¡ ¿Ü±¹ÀÎÀÌ Çѱ¹¾î·Î ¸»ÇÒ ¶§ ½Ç¼ö¸¦ ÇÏ´Â °Íó·³ ¾îÈÖ, ±¸¹® ¶Ç´Â ¹®¹ý¿¡ ¿À·ù°¡ ÀÖÀ» ¼ö ÀÖ½À´Ï´Ù. Microsoft´Â ³»¿ë»óÀÇ ¿À¿ª ¶Ç´Â Microsoft °í°´ÀÌ ÀÌ·¯ÇÑ ¿À¿ªÀ» »ç¿ëÇÔÀ¸·Î½á ¹ß»ýÇÏ´Â ºÎ Á¤È®¼º, ¿À·ù ¶Ç´Â ¼ÕÇØ¿¡ ´ëÇØ Ã¥ÀÓÀ» ÁöÁö ¾Ê½À´Ï´Ù. Microsoft´Â ÀÌ·¯ÇÑ ¹®Á¦¸¦ ÇØ°áÇϱâ À§ÇØ ±â°è ¹ø¿ª ¼ÒÇÁÆ®¿þ¾î¸¦ ÀÚÁÖ ¾÷µ¥ÀÌÆ®Çϰí ÀÖ½À´Ï´Ù.

Çǵå¹é º¸³»±â