Answer Questions
stevemcisaac OPC Automation
Hello, I'want to create an OPC Client for any OPC Server in VB.NET. I use Visual Basic 2005 Express Edition. So, I add a reference to my OPCDAAUTO.dll. And at this time, there is just this part of Code : Public Class Form1 Dim WithEvents g_OpcServer As OPCAutomation.OPCServer Dim WithEvents g_OpcGroups As OPCAutomation.OPCGroups Private Sub Form1_Load( ByVal sender As System. Object , ByVal e As System.EventAr ...Show All
redbeans .net 2, VS2005, webform, Dropdown List, sometimes not fire event..
selectedIndexchanged Event not fire,,,, autopostback had set to true,, and the page post backed,, but the event never fired,,, i had search about this problem, but looks like no answer,, is there an answer yet here is the similar post.. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=92280&SiteID=1 ...Show All
Hjemser get link layer informations
Hi! I want to write a program which informs me about network changes on my system. I have several network connection (LAN, WLAN, ...) How can i get the events or infos if LAN unplugged or WLAN disconnect .... thanks! hi Durgaprasad, thank you, I tried it with VS express edition and it works fine. So it is possible to port this code to Windows Mobile 5.0 Other question: does win ce provide WM ...Show All
Pazy hi everyone, please help me
i use generic like below to define a class: public class RelaProperty<T> { ... } the type T maybe is class X1, class X2 etc.. so we assume the class X1 has a static method such as XXX() i try to call the method XXX like below in the class RelaProperty: T.XXX(); but i fail to compile it.who can tell how to do i can reach my goal I'm assuming that you know that every version ...Show All
klaya tick start does not start
Interesting one. I have 2 timers on my form. Both work fine. 1 timer clears text on a label after x amount of seconds if there is something in that label. What I am having trouble with is that, I want to be able to stop and start this timer whenever I like. More specifically, from a thread which did not create the timer object/control. I have then created a delegate/method to be able to be called from this other thread from ...Show All
Jishnu Parameterized queries
When using a parameterized query such as: SELECT LocationID, StreetNum, StreetName, rowguid FROM tblLocations WHERE (StreetNum = @StreetNum) AND (StreetName LIKE @StreetName) Is there a way to automatically add % to the beginning and ending of the parameter I've tried the following command: SELECT LocationID, StreetNum, StreetName, rowguid FROM tblLocations WHERE (StreetNum = @StreetNum) AND (StreetName LIKE '%' + @Stre ...Show All
Darren5559 MySql and SqlDataAdapter
I'm tring to use a SqlDataAdapter to access some data in a MySql database. The problem is that the SqlDataAdapter.SelectCommand.Connection.Open() does not like my connection String which is: " DRIVER={MySQL ODBC 3.51 driver};Server=10.10.0.229;port=3306;Database=dbName;Uid=myUserID;Pwd=myPassword; " If you take out DRIVER={MySQL ODBC 3.51 driver}; and port=3306; it runs but then it doesn't find the database. The error reports tha ...Show All
Shyam Palreddy Global Catalog Issue - Please Help
Hello, we have a problem, please help. There exist two domains. They are members of one forest. Each domain has one domain controller. Each domain is a separate tree. In one of the controllers, the global catalog is kept. First, domain1 was created; then, domain2 was created as a new domain for the existing forest where domain1 was present. When browsing the global catalog, in principle, I should see there subfolders like ...Show All
Kui System.Diagnostics.Process.Start(). How do I stop leaking handles?
I am launching an executable using Process.Start() and then closing it with CloseMainWindow. It works quite well, but when I use the winXP Performance Monitor I to track handle usage by the application am using up handles with each invocation of the process start/stop cycle. These handles are not being closed. How do I ensure I don't leak resources I have tested the following code as a reduced version of the problem (using the Win2K calculato ...Show All
gengisangelo Remoting from GINA
Our app needs the services of remote objects during the logon process (say, to log invalid log on attempts). We have a replacement GINA in place and it uses COM to invoke a COM-enabled CLR object. This object in turn does the remoting stuff. All the objects are connected up and working but during initialisation, the CLR object performs a RemotingConfiguration .Configure(...) call which throws an exception (apologies, its a a lengthy one) and ...Show All
Nitin Gupta query about MSMQ?
hi all I hve doubt abt MSMQ, how to create public queue in Remote system. plz send me the c#.net coding (in windows application). while creating public queue in remote server i got error like this "Object owner was invalid. For example, MQCreateQueue failed because the Queue Manager object is invalid." Plz anybody known, give me the solution above of my 2 queries. yours Aravinth k ...Show All
sweetcheeks genrate pdf file using xml file
Hello, Its really helpful for genrating rtf file but i am getting still problem with pdf file. I have complied file at my disk inspectorODetailFO.xsl and InspectorODetail.xml . Dim xslsh As New MSXML2.DOMDocument40 Dim output As New MSXML2.DOMDocument40 Dim xslt As New MSXML2.XSLTemplate40 Dim xslDoc As New MSXML2.FreeThreadedDOMDocument40 Dim OBJxmlDoc As New MSXML2.DOMDocument40 Dim path ...Show All
JohnCP Remoting is Dead?
I have heard that Remoting will no longer be promoted by Microsoft in favor of Web Services. Is this true Should new developers stay away from remoting Vikram, Thanks so much for the info. Do you know if Indigo will be available for the Compact Framework as well That would be sweet! --Adam huh Adam- this is a valid question and one unfortunately that I do not have the answer to- however, I am ...Show All
Anton Bagayev Passing excel and word files to web services.
We need to pass excel and word files to a web service in our application. File sizes range up to 4mb. What is the best way to pass these files to the web service I am aware of the following options. 1. Pass the files as binary data embeded in the xml 2.Use DIME/MTOM support for this. For the file sizes up to 4mb which of the above options works fine. A code snippet on how to convert the excel files to binary data and converting bi ...Show All
Aaron Tan methodBase.GetMethodBody() - not valid due to state of object
hi, when trying to call methodBase.GetMethodBody() i get the following exception: System.InvalidOperationException was unhandled Message="Operation is not valid due to the current state of the object." Source="mscorlib" StackTrace: at System.Reflection.MethodBase.GetMethodBody()... Have checked method is not a Pinvoke method before calling, as it would seem reasonable if asking for the body of a pinvoke method ...Show All
