|
Let's see the code your using to launch this command line process and interact with it. Usually, something like this doesn't block your interface, unless your doing a WaitForExit on the Process object.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
This is the code I am using to launch the command
Dim command As String
command = "C:\readcd dev=1,0,0 f=c:\johntest2.iso"
Shell(command, AppWinStyle.Hide)
I am also hoping to display a message when the command has finnished.
-- modified at 7:23 Wednesday 10th January, 2007
|
|
|
|
|
Are you using VB.NET or VB6??
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Sorry Dave. I am using VB.net 2003.
|
|
|
|
|
OK. The code you posted is old VB6 stuff. But, in either case, Shell isn't a blocking call, so... There's something else that's hanging up your app. Is it possible that the app you launched is taking up 100% of the CPU??
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi
The app probably would be using most of the cpu time. I came across the process.start which seems to help. Would this be the best thing to use.
|
|
|
|
|
Yep. Launching a new process automatically give it it's own thread. It's not dependant on the threads of your app, so launching another thread won't help.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
My textbox is bound to a datatable field. The field length is 50. I set the maxlength of the textbox to 50 also. When I run the form I cannot modify the textbox until I delete the trailing spaces. Can the trailing spaces automatically be removed so the user does not have to do it when modifing the textbox?
|
|
|
|
|
.Trim()
|
|
|
|
|
dptalt wrote: Can the trailing spaces automatically be removed so the user does not have to do it when modifing the textbox?
If you are able, you should tackle the root cause.
If you use a varchar in the database instead of a char then you won't get trailing spaces in the first place and you'll probably make more efficient use of your database.
In general you should only use char for interaction with legacy code that doesn't understand variable length columns or if you know that the data in the column will always be a fixed length.
|
|
|
|
|
|
Hi all,
Please help!
I have created a program which i am deploying with clickonce from a file share on our server,
it installed on 2 clients no problem, but on the third a got the error:
Unable to connect to the remote server
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
and on the forth machine a got the error:
Unable to connect to the remote server
No connection good be made because the target machine actively refused it
On the forth machine i copied the installation folder to the desktop and started it from there without any problem.
Any help would be greatly appriciated.
Many thanks in advance.
|
|
|
|
|
Hello,
Can anyone please help me to write code (language: any .Net platform) to append text to a WAV file?
Thank you in anticipation.
Regards,
Amit
|
|
|
|
|
Why on earth would you want to do this? I can't think of a single good reason.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I need to send these amalgamated WAV files to a third party software which expects some demographics information at the end of each WAV file.
Thank you.
|
|
|
|
|
Amit D wrote: which expects some demographics information at the end of each WAV file.
OK. There's an example of appending text to a file here[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks Dave for link but it wasnt helpful in this case as I know the basic file I/O all I need is to know how to write proper header information in the WAV file along with the proper byte count which includes the actual WAV file and newly appended text at the end.
Found this link: http://www.codeproject.com/useritems/Concatenation_Wave_Files.asp
But in this example the program amalgamates 2 WAV files as in my case its 1 WAV file + 1 text file = 1 WAV file with all information in it.
Many Thanks.
Amit D
|
|
|
|
|
Amit D wrote: but it wasnt helpful in this case as I know the basic file I/O all I need is to know how to write proper header information in the WAV file along with the proper byte count which includes the actual WAV file and newly appended text at the end.
That's not what you originally asked.
Amit D wrote: Found this link: http://www.codeproject.com/useritems/Concatenation_Wave_Files.asp
But in this example the program amalgamates 2 WAV files as in my case its 1 WAV file + 1 text file = 1 WAV file with all information in it.
That's about the only article I know of that demonstrates who to manipulate the headers of a WAV file.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hey can anyone help me by telling me any info regarding tcp port sniffing or monitoring...i want to monitor a certain port on my computer for incoming and outgoing data, how can i do that?
thanks
obi-wan
|
|
|
|
|
You'll need a 3rd party library just to get started. Something like WinPcap[^]. Get the latest Development Pack, under the Development tab on the left, and it'll come with the documentation for the library.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Sir/Madam,
Can I programically find out whether the particular table exist in the database or not.
Thanks abd Regards
|
|
|
|
|
i think u can try it by just using try-catch and query like
select * from tablename
if u end up in catch then u are sure table not present else table may be present.
i think this helps
enjoy..
|
|
|
|
|
Use the following query to get the list of all User tables in SQL Server connecting to a particular DB
select * from dbo.sysobjects where OBJECTPROPERTY(id, N'IsUserTable') = 1
Mubashir
Every job is a self portrait of the person who did it.
|
|
|
|
|
Yes, you can programmatically find out whether the table exists or not, but, you need to provide more details:
what type of database?
what type of table?
|
|
|
|
|
Sir/Madam,
Can I programically find out whether the particular table exist in the database or not.
Thanks abd Regards
|
|
|
|