Answer Questions
Devi Vara Prasad strongly typed dataset
Hi, The following line populates a datagrid using a strongly typed dataset. dsEmps is the .xsd file in the foreach line I would like to loop through each record I get an error on the foreach line and it says: specified cast is not valid I think this line has to be somehow casted employeeDetailsData.Employees.Rows EmpBusRule.EmpService.dsEmps employeeDetailsData; EmpBusRule.Employees br = new EmpBusRule.Employees(); employeeDetailsData = ...Show All
Bjorn Smith Problem: How to draw text into bitmap?
Hi, I need to draw text into the bitmap. Resulting text should be "smooth" (antialiased) and international scripts should be handled properly. In addition, it should be fast. You might think, "That is simple, isn't it " Well, it is not! There are at least two ways to do it: 1. Graphics.DrawString and 2. TextRenderer.DrawText. Problem is that I cannot reach my targets with these two guys (who wou ...Show All
MoonKoot SOAP serizlization cause datetime property wrong?
Hi, Our project is using Remoting, and we need return a MembershipUser from server side, we found the CreationDate property returns a wrong date on client side, it's a UTC date. If we change the fomat to binary, the value is correct. Is there anything wrong with us Thanks. Check http://msdn.microsoft.com/library/default.asp url=/library/en-us/dndotnet/html/datetimecode.asp . H ...Show All
Bespike AppDomain.AppendPrivatePath Depricated
I get a CS0618 that AppDomain.AppendPrivatePath is obsolete. The suggestion is to use AppDomainSetup.PrivateBinPath instead, but no matter how I set it, PrivateBinPath remains null. I am trying to update AppDomain.CurrentDomain after the domain is started. Is AppDomainSetup the correct way to go It seems this would only apply at creation of the domain, and I need to make this modification after the AppDomain has started. Thanks ...Show All
sholodak System.IO.Compression namespace
Hi! I'm thinking of redisigning the an automatic updater application I wrote some time ago. Until now I used the SharpZipLibrary to decompress ZIP, GZip, BZip2, and Tar archives. Can I now replace the SharpZipLibrary with the System.IO.Compression namespace or is it only capable of handling GZip archives Thanks already in advance! OK thanks for the information. Great idea to post it at the Product Feedback Center! Hi, here is it ...Show All
PaulvZyl SQL Connection Problem
Hi, I have an ASP.NET 1.1 and MSSQL 2000 installation hosted with the same provider. Normally, I have no trouble connecting to the database, but roughly once per day, I get an exception train that starts with a 'General network error'. Mysteriously, this usually seems to happen at roughly the same time each day. My connection string and the code causing the exception are given below (values replaced by 'X'). I am sure you will agree, they are ...Show All
Scott Lezberg Connection not Alive
Sorry to post again, I think the other one has been forgotton I have a Windows Form, (Application). On that I have a TextBox called txtIdNum, a Button, and a TextBox called TxtNombre What i want to happen is when someone types into the txtbox txtIdNum, and press the button, the code will search the MSQL table, and select all the fields where FIELD IDNum is = txtIdNum.Text Straight forward, easy to say. My code is the following System.Dat ...Show All
Yaroslav58211 NullReferenceException: object Reference not set to an instance of an object
Hi, I am using Vb.Net and XMl.My application works like this:I have to connect to a remote server(not on my network)thru a username and password given and check for login credentials. Once, the credentials are verified, I should be able to proceed. When I compile the program, I get a warning that the fn SendXMLRequest doesn't return a value on all code paths. NullReference exception could occur at runtime. I appreciate yr quick resp ...Show All
mirko03 Pause a thread using Monitor
Hello, How can i use Monitor to set a thread to pause for i nfinite amount of time. Same as the Thread.Suspend() method Monitor.Enter(MyThreadObject) Monitor.Wait(MyThreadObject, T imeout.) Monitor.Exit(MyThreadObject) This will set MyThreadObject into a infinite pause (suspended state) so that i later on can resume it by using Monitor to awaken the thread (Not Interrupt) Pausing the thread must not interfer with the app ...Show All
Joe Clifford Reusing an open FileStream with multiple BinaryWriter objects
Hi all, a quick question: Part of my application (Windows Forms / C# / .NET 2.0) deals with different objects which all have Serialize / Deserialize methods (custom ones, not implementations of ISerializable). At some point, I create a FileStream for writing, and then need to call those objects in turn, passing the FileStream object to the Serialze method. Each object should then append some binary data to that stream (and the revers ...Show All
mehim updating DBF table from DataSet Error
Dear all, I am able to view DBF table through OLEDB Provider and also able to add a column to that table. I have added a UID column with incremental values But currently ,I want to update my DBF table or Save my table from Dataset i.e.( in the actual database) Plz Let me know any solution regarding this strConnect="User ID=;DSN=;Collating Sequence=MACHINE;Data Source= '" + frmViewer.lay + "' ;Provider=VFPOLEDB. ...Show All
Regis Brid SerialPort class bug?
hi, Anyone encountered this behaviour using the serial port class Altering ReceivedBytesThreshold causes them application to intermittantly hang. In the IDE when i pause execution at a hang, the line: RS232Port.ReceivedBytesThreshold = &H1 is highlighted with the text "This code has called into another function. When that function is finished, this is the next statement that will be executed". I'm wondering if this is the result ...Show All
Robert Wang Writing XML to a socket
Can anyone tell me why code block 1 (below) writes an XMLDocument successfully to a network socket, whereas example 2 using the XmlWriter (which would be my preferred method of doing it) does not 1: Dim tcpClient As New System.Net.Sockets.TcpClient() tcpClient.Connect( "127.0.0.1" , 5000) Dim networkStream As NetworkStream = tcpClient.GetStream() Try If networkStream.CanWrite ...Show All
mccloed How to send E-mail to multiple users but only 1 email visible to reciever
Hi, I'm trying to send an e-mail using smtp. I only want to create one mail object and I want to send to multiple Users. I do not want the user's to be able to see who else is receiving th mail. Currently I'm only sending to one person at the moment. Here is what I have so far. btw, I'm using 2.0 protected void SendMail( string To, string Subject, string Body) { MailMessage message = new MailMes ...Show All
NJCLC Using Web Services with C++ ?
Forgive what may seem an obvious question, but how do I go about using WSE2 (web services extensions) with Visual C++ I have tried a #import on Microsoft.Web.Services2.dll but that does not work, so I am rather confused as how I can use the WSE2 features with C++. The reason for C++ by the way, is that our web server engine is built using C++ and it needs to talk to another web servers using secure SOAP. I can create a HTTPS soap link but I real ...Show All
