|
there is no sound when i run this simple code??what is the problem?
Dim Peedy As AgentObjects.IAgentCtlCharacter
Const PEEDYPATH = "Peedy.acs"
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Peedy.Speak("hi man how are you")
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
AxAgent1.Characters.Load("Peedy", PEEDYPATH)
Peedy = AxAgent1.Characters("Peedy")
Peedy.Show()
'Merlin.Play("GestureLeft")
'Merlin.Hide()
End Sub
|
|
|
|
|
Your problem is not code related.
I have an application that I wrote two to three years ago when I was starting to learn Visual Studio and Visual Basic .NET. The application uses Peedy and I use the "Speak" syntax also.
On my Windows XP development system, all I see are the words display over his head on the screen.
On my Windows 2000 system I see the words, but also hear him say the words.
I've compared my systems and have no idea what is installed on my old system that allows him to talk. My Windows 2000 system is about 7 years old and started out as Windows NT. I've installed many software applications on it and removed many of them over the years.
I have no idea what driver or software is installed that allows him to speak, but I can say one thing. It's not the VB code.
Lost in the vast sea of .NET
<a href="http://www.komputing.com/Pricelist.html">Visit my website at www.komputing.com</a>
-- modified at 12:44 Thursday 26th January, 2006
|
|
|
|
|
hi! here's my problem...i'm using a listbox where i drop objects and they're added into the list...now, i want to implement that, when a selected item is dragged and droped into the form which contains this list, the item is removed from the list...
i've implemented it, but it's not working very well...sometimes when i drop an item into the form from the list, an exception occurs telling me that there was an error with the list's bounds...here's the code:
'this one is for when the drag starts from the list (to the form)
Private Sub lstReglas_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles lstReglas.MouseDown
If lstReglas.SelectedItem <> Nothing Then
lstReglas.DoDragDrop(lstReglas.SelectedItem, DragDropEffects.Move)
End If
End Sub
'here is when i enter the form while dragging the item
Private Sub windows_DragEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles MyBase.DragEnter
If e.Data.GetDataPresent(DataFormats.Text) Then
e.Effect = DragDropEffects.Move
Else
e.Effect = DragDropEffects.None
End If
End Sub
'and this happens when i drop the item into the form
Private Sub windows_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles MyBase.DragDrop
lstReglas.Items.Remove(lstReglas.SelectedItem)
End Sub
|
|
|
|
|
i want a function (or class contains a function) doing this:
function_name(12.154) will return: twelve, one hundred and fifty four
|
|
|
|
|
Hi,
This is a programming forum, we answer questions on programming problems etc. This does not include doing full complete solutions, for this most of us charge.
Perhaps when you have a specific programming question you can come back, or maybe you could try a google search, beacuse I assure you that what you are after has been done in every language at least once
|
|
|
|
|
ok a programming forum!!!
so i need a mechanism solution!!!!!!!!
i want a function like:
function_name(12.521) as string: twelve, five hundred and twenty one
what is the problem with my question,, it is my problem and simply
I need a solution,, if u know answer me,, if u dont know dont reply..!
with my respects
|
|
|
|
|
|
Now i am using Visual studio 2005. in design time all controls displayed in
Xp style, in run time it looks like win 2000 style. what is the problem?
please advice..
|
|
|
|
|
Hi
I recently came accreoss an application that creates a database, complete with data and stored procedures etc. on installation of the application.
Can anyone tell me how to do this? I use VS.NET 2003.
Thanks in advance...
::He who brings joy to the world is raised amongst men than he who conquers the world::
|
|
|
|
|
(For SQL Server..?)
The way I do this is to ship the .mdb file of the database with all the procs, tables, reference data etc in it and use sp_dbattach to attach it to the server.
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Another way to do it is to script the database and it's data in an .SQL script file, then have the SQL server execute it during the installation.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I believe you can script the DB objects, but not the data. I have been wondering myself how to do this with scripting...
The way we handle the problem is to include a script, which is run to create the tables, views, SPs, etc. Then, we also ship an XML file of "base" or "setup" data that we load into a dataset, and then save to the database, right after initial setup.
|
|
|
|
|
There's absolutely no reason why you wouldn't you be able to put a bunch of INSERT INTO statements into a text file and have SQL run that too.
The XML version you have works too.
If you have a TON of data to preload, create a DTS job to import it. If it's a bunch of data, an XML import works too. If it's just a few things, you could drop the appropriate INSERT INTO statements into the SQL script...
The point is it can be automated, it's just a matter of preference how you want to do it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
To create the scritp just right click on the database and try to find the command "Generate to script..." may be in the "All task" sub menu. But it just generate the structure of the database, not all of the record.
|
|
|
|
|
Hi all,
is there another control or a way to ovorcome the timer limitations in VB6? I mean that the standard control can be configured to a maximum of 65535 ms. I'm interested to set it to minutes. Is it possible or is there any other control to do that?
Thanks in advance,
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
There's no way to change the control. Setting a Timer for minutes is also not a real good idea. Usually, people are doing this thinking it can be used as a scheduler to launch some task at a specified time. That's a bad design.
In any case, you're much better off setting the Timer for, say, 60 seconds, then in the Tick event, checking the current time against the scheduled time of the process you want to launch.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi
Does anyone know if there is a way to read the CMOS battery voltage using vb.Net
Cheers
Richard
|
|
|
|
|
Only if the motherboard supplyies such information and you have some software interface to get at it. 99% of them don't.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
IF the motherboard supply information, where does this information is located? In the system information or in device manager dialog?
|
|
|
|
|
You'll have to consult with the motherboard manufacturer. There is no standard to follow, therefore, no way to know how it's going to be exposed.
It's not going to be listed anywhere in the System Properties, Device Manager dialog, or anywhere else for that matter.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thank you very much for your information.
|
|
|
|
|
i have two tables from each table one unique columns values are displayed on two combo box i also have a textbox, i have developed a datagrid which on clicking add button displays thes three values and one value based on a formula as first row of datagid. but when i again select the different values to insert in my datagrid as second row clicking add button replace the old valus with new valus.
how can i add more rows in my datagrid in every click preserving my old selected values?
Dev
|
|
|
|
|
Not sure I understand your question, but you can create a datatable to store your values you want to save, so each time you click your button add a new row to the table. Use the table as the datagrid 'DataSource'
<br />
Public Sub setupTable()<br />
Dim c1 As New DataColumn<br />
Dim c2 As New DataColumn<br />
Dim c3 As New DataColumn<br />
Dim columns() As DataColumn = {c1, c2, c3} 'Array of Datacolumns<br />
dt.Columns.AddRange(columns)<br />
'Use this table as the datasourec for your datagrid<br />
Me.DataGrid1.DataSource = dt<br />
End Sub<br />
<br />
<br />
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged<br />
If Me.ComboBox1.SelectedIndex > -1 And Me.ComboBox2.SelectedIndex > -1 Then<br />
Me.TextBox1.Text = CStr(CInt(Me.ComboBox1.SelectedItem.ToString) * CInt(Me.ComboBox2.SelectedItem.ToString))<br />
End If<br />
End Sub<br />
<br />
<br />
Private Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox2.SelectedIndexChanged<br />
If Me.ComboBox1.SelectedIndex > -1 And Me.ComboBox2.SelectedIndex > -1 Then<br />
Me.TextBox1.Text = CStr(CInt(Me.ComboBox1.SelectedItem.ToString) * CInt(Me.ComboBox2.SelectedItem.ToString))<br />
End If<br />
End Sub<br />
<br />
<br />
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
Dim dr As DataRow<br />
dr = dt.NewRow<br />
dr.Item(0) = CInt(Me.ComboBox1.SelectedItem.ToString)<br />
dr.Item(1) = CInt(Me.ComboBox2.SelectedItem.ToString)<br />
dr.Item(2) = Me.TextBox1.Text<br />
dt.Rows.Add(dr)<br />
End Sub<br />
|
|
|
|
|
Hi guys,
I was wandering, is there any way to open/view a text file using the default/any text editor?
I am creating an application that will generate a report. It would be very nice if there is a button that will open the generated report.
thank you for your time
|
|
|
|
|
Use the Process[^] class to launch the file you want to open in its default application.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|