Click here to Skip to main content
16,020,343 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Visual basic Pin
Member 160253289-Jun-23 18:18
Member 160253289-Jun-23 18:18 
GeneralRe: Visual basic Pin
Richard MacCutchan9-Jun-23 22:28
mveRichard MacCutchan9-Jun-23 22:28 
GeneralRe: Visual basic Pin
Member 1602532810-Jun-23 0:13
Member 1602532810-Jun-23 0:13 
GeneralRe: Visual basic Pin
Richard MacCutchan10-Jun-23 1:18
mveRichard MacCutchan10-Jun-23 1:18 
AnswerRe: Visual basic Pin
Gerry Schmitz9-Jun-23 2:51
mveGerry Schmitz9-Jun-23 2:51 
QuestionCrash on converting string to byte Pin
Member Alienoiz8-Jun-23 3:49
Member Alienoiz8-Jun-23 3:49 
AnswerRe: Crash on converting string to byte Pin
Richard MacCutchan8-Jun-23 4:12
mveRichard MacCutchan8-Jun-23 4:12 
GeneralRe: Crash on converting string to byte Pin
Member Alienoiz8-Jun-23 4:27
Member Alienoiz8-Jun-23 4:27 
Hi..sorry..i posted all the code cause i do not know what is happenning at all...
anyway...thanks and i can resume yes...
when i try to save the tags:
Dim bytTrack As Byte
        Dim bytGenre As Byte

the error returns it cannot convert String to Byte..but this is only happenning in new files..if i use a pretagged file all seems good.
im using this method:
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
     If ListBox1.Text = "" Then
         Dim r8 As DialogResult = MessageBox.Show(Me, "No File Selected!",
                                "Select Files", MessageBoxButtons.OK)


     Else

         Dim objMP3V1 As New MP3ID3v1(FolderBrowserDialog1.SelectedPath & "\" & ListBox1.SelectedItem)

         If CheckBox1.Checked = True Then
             objMP3V1.Frame(MP3ID3v1.FrameTypes.Title) = TextBox1.Text
             objMP3V1.Update()
         End If

         If CheckBox2.Checked = True Then
             objMP3V1.Frame(MP3ID3v1.FrameTypes.Artist) = TextBox2.Text
             objMP3V1.Update()
         End If

         If CheckBox3.Checked = True Then
             objMP3V1.Frame(MP3ID3v1.FrameTypes.Album) = TextBox3.Text
             objMP3V1.Update()
         End If

         If CheckBox4.Checked = True Then
             objMP3V1.Frame(MP3ID3v1.FrameTypes.Year) = TextBox4.Text
             objMP3V1.Update()
         End If

         If CheckBox5.Checked = True Then
             objMP3V1.Frame(MP3ID3v1.FrameTypes.Track) = TextBox5.Text
             objMP3V1.Update()
         End If
         If CheckBox6.Checked = True Then
             objMP3V1.Frame(MP3ID3v1.FrameTypes.Comment) = TextBox6.Text
             objMP3V1.Update()
         End If

         If CheckBox7.Checked = True Then
             objMP3V1.Frame(MP3ID3v1.FrameTypes.Genre) = ComboBox1.SelectedValue
             objMP3V1.Update()
         End If
         Dim r9 As DialogResult = MessageBox.Show(Me, "Operation Complete!",
                       "Tagged Files!", MessageBoxButtons.OK)
     End If


 End Sub

GeneralRe: Crash on converting string to byte Pin
Richard MacCutchan8-Jun-23 4:50
mveRichard MacCutchan8-Jun-23 4:50 
GeneralRe: Crash on converting string to byte Pin
Member Alienoiz8-Jun-23 4:58
Member Alienoiz8-Jun-23 4:58 
GeneralRe: Crash on converting string to byte Pin
Richard MacCutchan8-Jun-23 5:05
mveRichard MacCutchan8-Jun-23 5:05 
GeneralRe: Crash on converting string to byte Pin
Member Alienoiz8-Jun-23 5:23
Member Alienoiz8-Jun-23 5:23 
GeneralRe: Crash on converting string to byte Pin
Richard MacCutchan8-Jun-23 5:27
mveRichard MacCutchan8-Jun-23 5:27 
GeneralRe: Crash on converting string to byte Pin
Member Alienoiz8-Jun-23 5:46
Member Alienoiz8-Jun-23 5:46 
GeneralRe: Crash on converting string to byte Pin
Richard MacCutchan8-Jun-23 6:19
mveRichard MacCutchan8-Jun-23 6:19 
GeneralRe: Crash on converting string to byte Pin
Member Alienoiz8-Jun-23 6:00
Member Alienoiz8-Jun-23 6:00 
GeneralRe: Crash on converting string to byte Pin
Richard MacCutchan8-Jun-23 6:19
mveRichard MacCutchan8-Jun-23 6:19 
GeneralRe: Crash on converting string to byte Pin
Member Alienoiz8-Jun-23 7:57
Member Alienoiz8-Jun-23 7:57 
GeneralRe: Crash on converting string to byte Pin
Richard MacCutchan8-Jun-23 8:04
mveRichard MacCutchan8-Jun-23 8:04 
GeneralRe: Crash on converting string to byte Pin
Member Alienoiz8-Jun-23 8:18
Member Alienoiz8-Jun-23 8:18 
GeneralRe: Crash on converting string to byte Pin
Member Alienoiz8-Jun-23 8:43
Member Alienoiz8-Jun-23 8:43 
GeneralRe: Crash on converting string to byte Pin
Richard MacCutchan8-Jun-23 23:12
mveRichard MacCutchan8-Jun-23 23:12 
GeneralRe: Crash on converting string to byte Pin
Member Alienoiz9-Jun-23 6:31
Member Alienoiz9-Jun-23 6:31 
GeneralRe: Crash on converting string to byte Pin
Richard MacCutchan9-Jun-23 22:12
mveRichard MacCutchan9-Jun-23 22:12 
GeneralRe: Crash on converting string to byte Pin
Member Alienoiz10-Jun-23 1:34
Member Alienoiz10-Jun-23 1:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.