|
I am developing an application for an inbound call center to enter orders. They need to be able to record each call automatically from within the web application. (I want this to be invisible to the user if possible). I want to launch sound recorder when a user clicks a button, have it start recording, and then stop recording when they click another button, save the file with the order ID in the filename, and copy it to a server on the network. Is this even possible? Any help would be greatly appreciated.
|
|
|
|
|
Sorry, but recording isn't possible in VB.
|
|
|
|
|
Hi,
I have an image control to be printed in a Crystal report in Visual Studio 2005, VB.Net. If there is data for the image to print, there is no problem, I get the image on the report. If there is no data, I get a border printed on the report.
How to avoid the print of this border?
Thanks in advance,
With warm regards,
Chandru.
|
|
|
|
|
Can anyonyone help me out how to draw an curve,polygon on a picture box on mouse movement...I had a problem of curve starting from (0,0) rather than the coordinate i passed..
Vijayalaya
|
|
|
|
|
Well, first of all, don't use a picture box, just draw the picture.
you need to post your code for us to see why it's drawing in the wrong place.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I wonder if anyone can help me. I heard that via VB you can run a program to display all the field names within a database. I have tried using schema but have got stuck due to lack of knowledge.
Question is, can this be done and am I going in the correct direction?
I have a sample of my code, which does not work.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click
Dim rs1 As ADODB.Recordset
Dim Cn As New ADODB.Connection
cn = New ADODB.Connection
Cn.Open("Provider= Microsoft.Jet.OLEDB.4.0; Data Source = C:\nwind.mdb; Persist Security Info = False")
rs1 = Cn.OpenSchema(ADODB.SchemaEnum.adSchemaColumns)
Do While Not rs1.EOF
If (rs1!COLUMN_NAME) <> "" Then
'Debug.Print(rs1!COLUMN_NAME) <=== HOW I DISPLAY THIS IN VB.Net ******
rs1.MoveNext()
Else
''display error
Exit Do
End If
Loop
End Sub
|
|
|
|
|
i m a beginner programmer and
i want to get the information of the architecture and family and even the name of the manufacturer using vb.net
i know the api also
it is win32_processor and the property is "family","architecture " and "manufacturer" but don know to access
please guide me
|
|
|
|
|
The Family property of Win32_Process is not 100% trustable. It can, at times, return a number that means a processor family very different from what the Name property is telling you.
The Architecture property will always return 0, which means "x86".
Private Sub GetJobList()
Dim query As New ObjectQuery("SELECT * FROM Win32_Processor")
Dim searcher As New ManagementObjectSearcher(query)
Dim objectCollection As ManagementObjectCollection = searcher.Get()
For Each obj As ManagementObject In objectCollection
Debug.WriteLine(CStr(obj("Manufacturer"), CStr(obj("Name"))
Next
objectCollection.Dispose()
searcher.Dispose()
End Sub
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hi,
i made 3 forms in vb.net 2005 , form3 set as startup form in which a combobox that contain 2 items ,1st for show form1 and 2nd for show form2.
i want form3 should ask that which form will be the startup form(form1 or form2)
can someone know how to do this?;)
|
|
|
|
|
You can't change the startup object once your app is compiled. Perhaps you need to take a different approach to explaining what you want this stuff to do?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
|
You could do this... I'm not sure this is exactly what you're after but it's a way to set a "startup" form on first run.
What you need to do is have an XML config file with a startup form setting that you read. You can then show the required form, after launching a blank, invisible startup form.
The thing is, you're not actually changing the "startup" form though. You are however changing the visible form to the required, which is all the user really knows about.
So what you want to do, is possible - but not in a pure sense.
|
|
|
|
|
yeah good idea, i will check
|
|
|
|
|
Hi
From project properties from project menu, Select current form3 as startup form in vb.net 2003
In Vb.net 2005 from Project->Properties-> Resources-> Form3 as startup form
|
|
|
|
|
yeah i know this , i want to change it at runtime
|
|
|
|
|
Hello,
I have a main form with a datagrid.
When I add I click a add button and another form (customer form) will open. I enter in the new data and click add customer button. The customer is saved in the database. After the another function will be called to get the new customer and fill a dataset for the datagrid datasource. However, the datagrid form does not show the new customer. I have to close the main form first and then re-open it.
This is the code i am using code for the add customer form.
I am using visual basic 2005 and sql server 2005.
Windows application
The datagrid is an ultragrid form infragisitics. But still functions the same way as a normal windows datagrid.
<br />
Private Sub btnAddNewContact_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddNewContact.Click<br />
<br />
Dim objInsertNewContact As New BL_Contacts()<br />
clientID = objInsertNewContact.InsertNewContact(clientID, txtContactName.Text, txtPhoneNumber.Text, txtExtensionNumber.Text, txtAdditionalNumber.Text, txtEmail.Text, txtPosition.Text)<br />
<br />
Me.BindDataGrid()<br />
<br />
End Sub<br />
Public Sub BindDataGrid()<br />
Dim objNewCustomer As New NewCustomer()<br />
Dim displayClientDetails As New BL_Clients()<br />
Dim ds As New DataSet()<br />
<br />
ds = displayClientDetails.getClients<br />
objNewCustomer.ultGrdNewContacts.DataSource = ds.Tables(0).DefaultView<br />
<br />
objNewCustomer.ultGrdNewContacts.DataBind()<br />
objNewCustomer.ultGrdNewContacts.Refresh()<br />
<br />
End Sub<br />
Many thanks in advance,
Steve
-- modified at 8:11 Thursday 12th October, 2006
|
|
|
|
|
Hi,
I have a Text File(note pad) in that i have 3 columns,read 3 columns data into dataset and place the 3 colimns in 3 excel sheets.How to do it from VB.Net
Thanks......
|
|
|
|
|
hi,
i'm doing a project with MDI form as startup with menus categorized for various departments. I want to display the respective menu only when a user from a specific dept logges in. the problem is that new departments can be added later, so how can i manage their menus also in MDI
|
|
|
|
|
I'd create a class that builds the menus programatically from scratch & add call that class from the form. I'd use a function in the class to build the menus according to the logged on users department. The information regarding departments would be held separately in a datasource of some kind. I may even add values to the datasource to control menu item properties on the fly.
But that's just me. Your project may require something different.
|
|
|
|
|
I gt a line of data which i intend to display in CSV file as below,
"A12435625" "b" "b2" "c44566"
"A12435625" "b" "b2" "c44566"
however with my coding, it only displayed as
"A12435625" "b" "b2" "c44566" "A12435625" "b" "b2" "c44566"
What is my mistake and how to display my desire answer? Below is my coding, pls kindly help!
FileOpen(2, sFilename, OpenMode.Output)
For b = 0 To CreatePP.Counter - 1
For a = 0 To 4
c = CStr(CreatePP.Data(a))
If c.Length <= 1 Then
c = c.PadRight(2, CChar(" "))
ElseIf c.Length <= 2 Then
c = c.PadRight(3, CChar(" "))
ElseIf c.Length > 2 And c.Length <= 4 Then
c = c.PadRight(5, CChar(" "))
ElseIf c.Length > 4 And c.Length <= 6 Then
c = c.PadRight(7, CChar(" "))
ElseIf c.Length > 6 And c.Length <= 11 Then
c = c.PadRight(12, CChar(" "))
End If
Write(2, c)
Next a
Next b
FileClose(2)
-- modified at 0:27 Thursday 12th October, 2006
|
|
|
|
|
I think if you add either vbCrLf or ControlChars.NewLine to where you want the string to be written on a new line that may work.
|
|
|
|
|
Thanx for help although it didn't work. As a result,it ony return
"aaaaaaaa",blank line,"b",blank line,"b2". Do you have another tricks or idea?
|
|
|
|
|
We need to see your code so we can figure out what you did wrong.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
It is almost the same,i highlighted the change the below.
I gt a line of data which i intend to display in CSV file as below,
"A12435625" "b" "b2" "c44566"
"A12435625" "b" "b2" "c44566"
however with my coding, it only displayed as
"A12435625" "b" "b2" "c44566" "A12435625" "b" "b2" "c44566"
What is my mistake and how to display my desire answer? Below is my coding, pls kindly help!
FileOpen(2, sFilename, OpenMode.Output)
For b = 0 To CreatePP.Counter - 1
For a = 0 To 4
c = CStr(CreatePP.Data(a))
If c.Length <= 1 Then
c = c.PadRight(2, CChar(" "))
ElseIf c.Length <= 2 Then
c = c.PadRight(3, CChar(" "))
ElseIf c.Length > 2 And c.Length <= 4 Then
c = c.PadRight(5, CChar(" "))
ElseIf c.Length > 4 And c.Length <= 6 Then
c = c.PadRight(7, CChar(" "))
ElseIf c.Length > 6 And c.Length <= 11 Then
c = c.PadRight(12, CChar(" "))
End If
Write(2, c) Write(2,c,ControlChars.Newline)
<br />
<br />
Next a<br />
<br />
Next b<br />
<br />
FileClose(2)<br />
<br />
I appreciate so much for help!Thanx!
|
|
|
|
|
First, copy and paste your ACTUAL code, not something that's "alomst the same". I very small difference in your code can make all the difference in your output.
Next, don't use ControlChars.NewLine. If you want a complete new line, which is TWO characters in Windows (CR and LF), use Environment.NewLine instead.
TeiUKei wrote: If c.Length <= 1 Then
c = c.PadRight(2, CChar(" "))
ElseIf c.Length <= 2 Then
c = c.PadRight(3, CChar(" "))
ElseIf c.Length > 2 And c.Length <= 4 Then
c = c.PadRight(5, CChar(" "))
ElseIf c.Length > 4 And c.Length <= 6 Then
c = c.PadRight(7, CChar(" "))
ElseIf c.Length > 6 And c.Length <= 11 Then
c = c.PadRight(12, CChar(" "))
End If
What on earth is this doing?? You realize that c is being evaluated for length in every one of those if statements, including after each new change you make by padding it with spaces?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|