|
hi..YES its working like i want...LOTS OF THANKS!!
i have been rumbling around and i cannot find a panorama piece of code!!!
Would you like to help me building the PANS for my sounds? (if its possible)
Thanks : )
I tried some code to insert a way of controlling by a MIDI controller..but i can only go til the part i select a device..i might leave this out of my gadget!! : (
modified 7-Jan-19 21:02pm.
|
|
|
|
|
Of course would I help you ... but I can only help you with the code ... not with your Application.
I'm still not complete understanding what you are doing ... 
|
|
|
|
|
i am doing a drum machine that is controlled by the users keyboard!
The idea is to play drums with the keyboard or MIDI controller(if i was able to insert one) like you were playing piano!
So the user chooses the keyboard keys for each drum (bassdrum, snare, cymbal etc.) and plays like it was a piano but with the keyboard!
I would like to insert also the option of connecting a MIDI Controller and play from the controller..(but thats what i say i might not be able to do it)
--- Now.. i have the sounds and the volume/velocity control...but i also would like to control the "pan" factor for each of the drums!!!
and thats all i want for this gadget!
I will make .ini file to keep the settings (they are not much) and a load/save buttons for them..probably a Master Volume control and that all!!!!
modified 7-Jan-19 21:02pm.
|
|
|
|
|
so..where do i start to make the pans for my sounds?
i am completely blind on it now!!!
modified 7-Jan-19 21:02pm.
|
|
|
|
|
I'm sorry ... but in the Moment I don't know how to help you.
As I allready wrote : I could only help you with the code - not with your application ...
|
|
|
|
|
ok..thanks anyway : ) ... you already helped me!
modified 7-Jan-19 21:02pm.
|
|
|
|
|
well..you might be able..
i was thinking..do you know which code is needed to create a master pan for sound?
I could insert variou values for the master pan..but well...i do not know what happens if the user presses 2 keys at same time?!! : S
modified 7-Jan-19 21:02pm.
|
|
|
|
|
No ... sorry ...
If I have any idea I had told it to you ...
|
|
|
|
|
OK..thank you..you already did a lot : )
modified 7-Jan-19 21:02pm.
|
|
|
|
|
Hii..
I need to know how to get continuous bill numbers, I have a query which gives Bill numbers Continuously for a month but once the month get ends the bill number will start from one again which is not required it should continue with the last bill numbers which was generated in last month...
The Query is...
stQuery = "SELECT MAX(substring(st_bill_no from 9 for 15)) FROM sc_bill WHERE dt_bill_date BETWEEN '" & _
Format(FirstDayOfMonth, "yyyy-MM-dd") & "' AND '" & _
Format(LastDayOfMonth.AddDays(1), "yyyy-MM-dd") & "'"
Thanks In Advance
|
|
|
|
|
Change the constraints so the dates do not cover just one month.
|
|
|
|
|
|
Drop all of the
Annapurna anu wrote: WHERE dt_bill_date BETWEEN '" & _
Format(FirstDayOfMonth, "yyyy-MM-dd") & "' AND '" & _
Format(LastDayOfMonth.AddDays(1), "yyyy-MM-dd") & "'"
and just leave the
Annapurna anu wrote: stQuery = "SELECT MAX(substring(st_bill_no from 9 for 15)) FROM sc_bill"
because you are not interested in the dates.
If you are still at the design stage, I'd have the st_bill_no split into its subcomponents as separate fields (e.g. chars 1 to 8, 9 to 23, and 24 onwards). You can then used the required middle part as a single numeric entity. What is currently st_bill_no could then be built as an expression field in views that use it; this would give you greater flexibility.
|
|
|
|
|
Without using a vb timer control, whats the best way to to get a known computer list of on off machines. (the app im making knows host names and ip's) Im just hoping there is a better solution than making my own service that i need to install and run each time the computer boots to communicate with my app.
Whats the best method of doing this? Do i need to make a service for each machine to communicate with my app? Ive been out of the loop for programming since visual studio 6. (10 yrs xp though) Back at it again...
Thanks for any links/pointers you may provide.
|
|
|
|
|
|
You have a choice to make.
To get a "real time" status, you must have a client on the target machines that checks-in with a central database to give it's status. Obviously, a machine that's off cannot give a status so the client application has to check-in when the user hits Windows Shutdown. It would also check-in with a status of Up when the app starts and possibly even check-in with that status every so often. This gives you a current status and you don't have to wait for a report to be generated.
Pinging every machine on the network will not give you a "real time" status, but the known status the last time the machine was pinged. If you have a small number of machines, this can give you a status of every machine fairly quickly. This status will fall farther and farther behind the larger the number of machines you have to get a status on. This gives the status of all machines but you have to wait for that status to be generated when you want the report.
To prevent this delay, to a point, you would have to have a service running on a server somewhere that just pings the machines all the time and updates the database. This will give a report of the status of the machines the last time it was pinged but you wont have to wait for the report to be generated. Again, even this will fall behind as the number of machines increases.
The problem with pinging machines is that the firewalls on them can be configured to block ICMP packets causing the pings to fail and look like the machine is off.
|
|
|
|
|
I have a Zebra printer that I need to send a character array to, so that it generates a barcode.
I have text and font maping working, by using a RichTextBox and using the Windows PrintDialog.
To send a barcode, I need to send something like this: "^XA^BY8,0^FT124,209^BON,8,N,0,N,1,^FDBase Material^FS^XZ"
The Printer is on a USB port ("USB002") and does not take the SerialPort.Open() command.
Here is my code, which works for other items on USB if I set the SerialPort.PortName = "COM1", just doesn't work for this printer...I'm out of ideas:
Try
SerialPort1.Open()
If Me.SerialPort1.IsOpen() Then
Dim buf(Command.Length) As Byte
For i As Integer = 0 To (Command.Length - 1)
buf(0) = Asc(Mid(Command, 1, 1))
Next
' send to Printer
Me.SerialPort1.ReadExisting()
Me.SerialPort1.Write(buf, 0, Command.Length())
' wait for response
Dim ReturnValue As Integer = -99999
Dim start_time As Integer = My.Computer.Clock.TickCount
Do Until (Me.SerialPort1.BytesToRead >= 8 Or DemoMode = True)
If My.Computer.Clock.TickCount > start_time + 1000 Then
DemoMode = True
MessageBox.Show("Printer Meter Timed Out")
Return ReturnValue
Exit Function
End If
Loop
Dim Results As String = Me.SerialPort1.ReadExisting()
Dim length = Results.Length()
If length < 8 Then
MessageBox.Show("Bad Value Sent To Printer")
Return True
End If
End If
Catch ex As Exception
MessageBox.Show(ex.ToString())
End Try
|
|
|
|
|
USB-Port and Serial-Port is not the same.
But normally, if you install a Driver on your System, you get an emulated Serial-Port for your USB-Device with which you can access it.
Have you took a look at the System-Configuration of your PC-System if there is such a Driver installed ???
|
|
|
|
|
I have taken a look and there is no such driver. I even contacted Zebra to see if I could modify the port name from "USB002" to COM, or even relocate the install, but no-go.
I'll try a different method.
Thank you for the help.
|
|
|
|
|
To print to a Zebra printer, you don't use the port; you just send a raw string directly to the printer.
Here's the C# class I use to do that: Raw printer helper · GitHub[^]
There's also a similar VB.NET version here on CodeProject: Print Direct To Windows Printer (EPOS Receipt)[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Thank you, I will give this a shot, and let you know how it goes.
|
|
|
|
|
please there's this birthday app an developing and i want it to automatically send message to users at there birthday. please i need your help
|
|
|
|
|
|
Sure. How can we help you?
There are two kinds of people in the world: those who can extrapolate from incomplete data.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
In the code block below I am wishing to use a variable in a xxxx.Rows.Count line. Specifically, I'm wanting to take the "R1200s" portion and increment it to R1201s, R1202s, R1203s and so on as the For-Next loop executes.
I, of course, already have the DataTable()'s portion defined... no problem there. The code works fine if I write out every single instance but I'd like to shorten it up into a simpler block of code. I've been able to use "i" in every other control with success but getting hung up on only this portion.
I've tried something like ("R120" & i & "s"), along with many variations of this but, can find no solution that works with the limited experience I have with VbScript. Any help, a code example or a point in the right direction, is greatly appreciated.
For i = 1 To 8
Dim Ai As Label = DirectCast(Page.FindControl("A" & i.ToString()), Label)
Dim Si As Hyperlink = DirectCast(Page.FindControl("S" & i.ToString()), Hyperlink)
If R1200s.Rows.Count < Slots.Rows(0)(Ri).ToString() +1 Then
Ai.Style.Add("background-color","#000000")
Si.ImageUrl = "images/" & i & ".png"
Si.NavigateUrl = "step3.aspx?Time=" & i & "&Date=" & Request.QueryString("Date") & "&Day=" & Request.QueryString("Day") & "&Entry=" & Request.QueryString("Entry")
End If
Next
modified 24-May-17 2:20am.
|
|
|
|