Click here to Skip to main content
       

Visual Basic

 
GeneralRe: Web interface to access application PinmvpSandeep Mewara26-Feb-13 5:52 
GeneralRe: Web interface to access application Pinmemberwaner michaud26-Feb-13 6:54 
AnswerRe: Web interface to access application PinmvpEddy Vluggen26-Feb-13 9:25 
QuestionListbox String to RichTextbox. Help Please! PinmemberJanko199322-Feb-13 17:14 
AnswerRe: Listbox String to RichTextbox. Help Please! PinmvpRichard MacCutchan22-Feb-13 23:21 
AnswerRe: Listbox String to RichTextbox. Help Please! PinmemberTnTinMN24-Feb-13 13:24 
GeneralRe: Listbox String to RichTextbox. Help Please! PinmemberGray_Ang3l24-Feb-13 13:29 
QuestionActive Directory Users OU Pinmemberdsj4122-Feb-13 8:14 
AnswerRe: Active Directory Users OU PinmvpDave Kreskowiak22-Feb-13 8:45 
GeneralRe: Active Directory Users OU Pinmemberdsj4124-Feb-13 11:20 
GeneralRe: Active Directory Users OU PinmvpDave Kreskowiak25-Feb-13 10:31 
GeneralRe: Active Directory Users OU Pinmemberdsj4126-Feb-13 0:14 
GeneralRe: Active Directory Users OU Pinmemberdsj415-Mar-13 1:43 
QuestionVolume Button in Text to Speech Convertor Pinmembersanju_na21-Feb-13 22:05 
I am making text to speech converter in vb.net. I want a sliding volume button for the volume adjustment, I have tried it but its not working and I want one button which works for both pause/resume together with a timer that shows how much the time is taken in reading text. Please help me with simple and easy codes it would solve my problem because its my project and here is my code for tts:
Public Class FormTTS
Public SAPI = CreateObject("SAPI.spVoice")
Public Paused As Boolean = False
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Integer, ByVal dwExtraInfo As Integer)
Const KEYEVENTF_KEYUP As Long = &H2
 
Private Sub btnread_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnread.Click
SAPI.Speak(TextBox1.Text, 3)
TextBox2.Text = "0"
Timer1.Interval = 500
Timer1.Enabled = True
If TextBox1.Text = "" Then
MessageBox.Show("You didn't fill in the fields!")
End If
End Sub
 
Private Sub btnpause_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnpause.Click
If Paused = False Then
SAPI.Pause()
Paused = True
ElseIf Paused = True Then
SAPI.Pause()
Paused = False
End If
Timer1.Enabled = False
End Sub
 
Private Sub btnstop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnstop.Click
SAPI.Speak(vbNullString, 2)
End Sub
 
Private Sub btnresume_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnresume.Click
SAPI.Resume()
Timer1.Enabled = True
End Sub
 
Private Sub btnexit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnexit.Click
Dim Response As Integer
Response = MsgBox("Are You Sure You Want To Close The Program", vbYesNo, "Exit")
If Response = vbYes Then
Close()
Else
Me.Show()
End If
End Sub
 
Private Sub btnvol_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnvol.Click
Call keybd_event(System.Windows.Forms.Keys.R, 0, 0, 0) 'R down
Call keybd_event(System.Windows.Forms.Keys.R, 0, KEYEVENTF_KEYUP, 0) 'R up
End Sub
 
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
TextBox2.Text = CInt(TextBox2 .Text) + 1
End Sub

End Class
QuestionHttpwebrequest + Socks5 Pinmembermathisderaltefuchs20-Feb-13 21:49 
AnswerRe: Httpwebrequest + Socks5 PinmvpRichard MacCutchan20-Feb-13 23:00 
QuestionHow can we read lengthy datas in Win Forms - more height than 780 in single page by scroll? PinmemberParamu197320-Feb-13 6:19 
AnswerRe: How can we read lengthy datas in Win Forms - more height than 780 in single page by scroll? PinmvpEddy Vluggen20-Feb-13 6:39 
GeneralRe: How can we read lengthy datas in Win Forms - more height than 780 in single page by scroll? PinmemberParamu197320-Feb-13 18:50 
GeneralRe: How can we read lengthy datas in Win Forms - more height than 780 in single page by scroll? PinmvpEddy Vluggen21-Feb-13 7:03 
QuestionMaximize MDIParent and MDIChild control Pinmemberkurja-kurdoh19-Feb-13 6:41 
AnswerRe: Maximize MDIParent and MDIChild control PinmemberSimon_Whale19-Feb-13 21:58 
QuestionDisable local accounts Pinmemberdouglas.s.johnson@l-3com.com19-Feb-13 5:57 
AnswerRe: Disable local accounts PinmvpEddy Vluggen20-Feb-13 0:32 
GeneralRe: Disable local accounts Pinmemberdsj4120-Feb-13 11:22 
QuestionMenuId saved in Mysql DB and how to set Enable Pinmemberpalur198118-Feb-13 1:31 
AnswerRe: MenuId saved in Mysql DB and how to set Enable PinmvpEddy Vluggen18-Feb-13 22:31 
QuestionAnyone have a program where I can enter a username and have it provide info from Active Directory? Pinmemberanoble115-Feb-13 5:45 
AnswerRe: Anyone have a program where I can enter a username and have it provide info from Active Directory? PinmvpDave Kreskowiak15-Feb-13 6:40 
AnswerRe: Anyone have a program where I can enter a username and have it provide info from Active Directory? PinmemberSimon_Whale15-Feb-13 14:17 
Questionmathematical expression with custom user input operand separately Pinmemberarave052114-Feb-13 6:12 
AnswerRe: mathematical expression with custom user input operand separately PinmemberJibesh15-Feb-13 7:57 
AnswerRe: mathematical expression with custom user input operand separately PinmvpEddy Vluggen15-Feb-13 10:17 
QuestionZoom in / Zoom Out functions Pinmembersyllar12-Feb-13 21:55 
AnswerRe: Zoom in / Zoom Out functions PinmvpDave Kreskowiak13-Feb-13 2:07 
AnswerRe: Zoom in / Zoom Out functions PinmemberSimon_Whale13-Feb-13 2:23 
QuestionEditing columns in a CSV File PinmemberMike Prophete12-Feb-13 11:29 
AnswerRe: Editing columns in a CSV File PinmvpEddy Vluggen13-Feb-13 9:13 
AnswerRe: Editing columns in a CSV File PinmvpMichael Haephrati מיכאל האפרתי20-Feb-13 3:57 
QuestionHelp required in grid conditon Pinmembersiddisagar12-Feb-13 4:09 
Questionant colony algorithm Pinmembershowdowngh12-Feb-13 3:20 
AnswerRe: ant colony algorithm PinmemberSimon_Whale12-Feb-13 3:57 
AnswerRe: ant colony algorithm PinmvpDave Kreskowiak12-Feb-13 11:47 
QuestionHow to add Listview subitem with For Loop Pinmemberkurja-kurdoh9-Feb-13 17:58 
AnswerRe: How to add Listview subitem with For Loop PinmvpRichard MacCutchan9-Feb-13 21:44 
GeneralRe: How to add Listview subitem with For Loop Pinmemberkurja-kurdoh19-Feb-13 6:38 
GeneralRe: How to add Listview subitem with For Loop PinmvpRichard MacCutchan19-Feb-13 6:59 
GeneralRe: How to add Listview subitem with For Loop Pinmemberkurja-kurdoh19-Feb-13 18:02 
GeneralRe: How to add Listview subitem with For Loop PinmvpRichard MacCutchan19-Feb-13 21:50 
Questionvb6 code for grow island or grow valley game PinmemberShiela Alvarez7-Feb-13 14:25 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.140926.1 | Last Updated 1 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid