YES!!! I found out in my arrangemnet GRANDFATHER(MAIN UI MDI)->PARENT->CHILD, as long as I open the PARENT with .show() instead of show dialog, then the GRANDFATHER although I can not click on it, does properly update programically!! This would've been a nightmare if it did not, so thanks...
All processing IS done on a secondary thread. The issue is the main ui form visually changes where current call details are displayed and call status on the main mdi ui.
So processing is done on a Seperate thread, BUT when any form opened on the main ui has a dialog showing it locks the...
The VoIP is being processed on a secondary thread that updates the main thread and updates call status information on the main form and launches secondary forms from main with call information. Neither of which process correctly if there is a dialog open on a grandchild form that was launched...
I want to open all my sub forms in a new thread. I litterally have hundreds, so I was hoping to pass the object type (frmmyform1) then it just creates a new thread of that object using application.run.
Is it possible to pass the object type and have the thread dynamically create the new object...
I have an app that has 1 main form (mdi container) that had Hundreds of menu options each opens a sub form. Due to an issue I needed to recode the opening of these sub forms via creating a new thread for each one. Everything works fine except The main form no longer ownes these sub forms...
I was able to handle properly by using the streamreader.
Dim clientSocket As New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
Dim serverEndPoint As New IPEndPoint(IPAddress.Parse("192.168.5.55"), 5038)
clientSocket.Connect(serverEndPoint)...
Ok, my concern is whether this is the correct approach. I am finally at a computer so maybe I can explain better.
So my socket puts out the following data.
Response: Success
Message: Authentication accepted
Event: FullyBooted
Privilege: system,all
Status: Fully Booted
Response: Error...
Here is basically the code I'm using
Imports System.Net
Imports System.Net.Sockets
Imports System.Text.RegularExpressions
Imports System.Text
Namespace AsteriskPrototype
Class AppConsole
<STAThread> _
Private Shared Sub Main(args As String())
Console.WriteLine("Quick and Dirty Asterisk...
I am using the socket class and using a traditional method of reading the socket by 1024 byte.
This causes an issue as the app I am writing needs to monitor this socket line by line in sequence live to properly work
So for instance I read from the socket
Event:caller
View state:6369...
Here is how is one way i can return the output. Any better?
* * * * Dim oProcess As New Process()
* * * * Dim oStartInfo As New ProcessStartInfo("ApplicationName.exe", "arguments")
* * * * oStartInfo.UseShellExecute = False
* * * * oStartInfo.RedirectStandardOutput = True
* * * *...
Both frameworks I believe are installed, it does run everything fine individually on each project.
My only work around is I can write the 2.0 app as a standalone. console app and call it via a shell, but any good samples or ways to read that output from a console app that was called via a shell...
OK, so I have a project that has the following issues:
Here is the setup
VS 2010
Win 7
64 bit
1. I am using a compiled library that ONLY works win 7 64bit, using a 2.0 framework (Yeah, all others it does not run)
The app runs fine as a console app and everything else as long as I use that...
The issue was in the xml file.
For whatever reason sql could not accept a xml string that had a DOCTYPE in it.
Rather then passing the XML string in VB to a XML Column in sql, I had my stored procedure use a varchar type instead of XML.
Once I had the XML in a varchar from within my procedure...
I have a System.XML.XMLDOCUMENT and I'm looking to pass the xml as a parameter to sql.
I created a dataaccess class, but I am getting invalid cast.
So here's some sample code
dim x as new system.xml.document
x.load("C:\MyXML.xml")
dim adapt as new...
This is not a good practice, but I was able to get it to work by replaceing the namespace prior to loading.
dim result as string = doc.xml
result = Replace(result, " xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema""...
Please see my edited response. It did work, it was a coding error on my part I'm sorry for the confusion.
Is there anyway I can set the default namespace so I can do a
doc.SelectSingleNode("//Contacts/Contact")
and it will return properly?
Your solution works
dim doc as new system.xml.Xmldocument
doc.Load("C:\Myxml.xml")
Dim ns As New Xml.XmlNamespaceManager(doc.NameTable)
ns.AddNamespace("pre", "http://www.serviceobjects.com/")
Dim firstContact As System.Xml.XmlNode =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.