Answer Questions
_aaa_ how to write >, <, &to XML file
Hello, I try to write these characters to an XML file. but in the XML file it shows: > < & instead. how can i write correctly to the XML file or at least read correctly(assign the innertext to a variable) here is my code for writing to XML file: XmlElement title= xmldoc.CreateElement("Title"); title.InnerText = txtName.Text; newBook.AppendChild(title); //Well im still get & ...Show All
Lebowski ConfigurationManager, WebConfigurationManager and class libraries
Hi, I know about the new ConfigurationManager classes, and when to use either one. My question is, if you are writing a class library that can be used in a Web or Windows application, how will the class library know when Manager to use Does anyone know what the 'official' solution from MS is Thanks Andy I agree... from the looks of it though the WebConfigruationManager offers a more granular approach to deal ...Show All
RodrigoRovere How do I temporary override .NET system security configuration?
I have an application installed on my local disk. This application runs with FullTrust privileges. I'm trying to load an assembly giving it FullTrust (same privileges of the loader assembly). My assembly to load is located on a network share. I'm actually using this code but I get a security exception: An exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll and wasn't handled in the appdomain it was thrown from Additional ...Show All
Pyush Kumar .NET Framework 2.0 (x64) Installation and DW20.exe location
After .NET Framework 2.0 (x64) installation, I see DWDC20.dll and Program Files folder in D:\ Drive. To be exact, D:\Program Files\Common Files\Microsoft Shared\DW\ folder has been created along with language subfolders (such as 1028, 1031, and so on). Also, there are DW20.exe DWDCW20.dll, DWTRIG20.exe files in that specific folder. I have my Windows XP Professional x64 edition installed on C:\ driver and I do not have any software installed on ...Show All
vanWeyden An economical way of filling a listbox?
An economical way of filling a listbox I fill an authors listbox using the table adapter. It's one thing with a lookup table with 30 or so rows, but I have hundreds of authors. Above the listbox the user has a choice of adding another author(s). When that form closes the AddAuthors button refills the table adapter. Is there a more economical way of doing this I don't need to move among the authors or delete them. I have ...Show All
BillW COM Interop Permission Problem
Hi I'm trying to wrap up an existing legacy com component in a web service. Below is a simplified example of what I'm trying to do. I have created a ActiveX COM DLL project PJoe with a class CJoe which has the following method Public Sub test2() Dim fn fn = FreeFile Open "C:\temp\joe.txt" For Output As fn Print #fn, "Joe" Close #fn End Sub (T ...Show All
chrisoldfield Short key to my band object
Hi I am developing a special search bar to be placed on the toolbar. It consists of a text box. The thing is that I want to activate it (put the cursor on it) just by pressing Alt + q or something. I've searched but havn't found anything usefull. Please help me and I might share my creation =) Add call to SetForeGroundWindow to activate your application. Now in order to activate your application, you need ...Show All
Thomas Kirk How to use Serialport in VB?
I've search for exemple of how to use Serialport, but all my search ended up with c# examples... Any example in VB Thanks Nico NicoD, Did you ever figure out your problem I'm having the same problem on my application. If you did, can you please pass on the information on how you fixed it. thanks! megadith 'Dear Friends, 'I wrote code and it is working, ...Show All
Ratna Kumar thread question
How uses (Thread) to invoke a function public class ThreadWork { public static void DoWork() { for(int i = 0; i<3;i++) { Console.WriteLine("Working thread..."); Thread.Sleep(100); } } } class ThreadTest { public static void Main() { ThreadStart myThreadDelegate = new ThreadStart(ThreadWork.DoWork); Thread myThread = new Thread(myThreadDelegate); myThread.Start ...Show All
Joe Hanlon Mail Problem with outlook account and IIS SMTP Server
I have developped an application with WWF who send an email to an local outlook account.For this I activated the smtp server of IIS , then I created an outlook account to receive the mail. I set the POP3 and SMTP server as localhost, the problem after sending the mail from the application and when I am trying to synchronize the mail box , operation related with downloading messages failed... I think that I can conclude that the POP3 configur ...Show All
fgabrieli Database won't update a bit field
FOA, Thanks to those who responded to my earlier post. I finally got the update to work only after I deleted a field where the datatype was a bit. Any ideas or suggestions for a work around. Thanks, 3ms Hi diavolo, for bit data type , you have to use 1 or 0 to update/ insert value into it. statement should be like this - insert into empTable(empname,enabled) values('madhu',1) Where "enabled" field is bit ...Show All
happy man Never trust a tickcount
Hi, For those who use tickcount for any calculation on your application... DO NOT USE IT. Simply, for some idiot reason the tickcount returns an integer, so if you have a server that runs all the time or if you have a multiprocessor environment the tickcount overflows and returns 0! But for my surprise if you use Tickcount.ToString() actually returns the string version of a 64bit value, so is not 0!!! Funny when you are trying to debug ...Show All
Sassenfeld High performance sockets and SslStream
Hi guys, I'm involved in a project where we need a high performance comms engine, capable of communicating with several thousands of clients simultaneously. My question is, would using SSLstream for normal channel encryption be fast enough i.e. is it recommended for high performance comms I was thinking of alternatives, one of which being: Use a TCPClient and SSLStream to authenticate the server, perform symmetric key exchange, either with the ...Show All
Arjun Bijanki VS 2005 RC1 problem with BackgroundWorker or threads in general?
Has anyone worked with RC1 and if so, have you encountered any problems with threading and BackgroundWorker specifically. We are seeing about a 10 second delay before the DoWork gets called. Also the painting of the forms is sluggish in general. We have installed this on several machines and have had the same problems on each. Thanks, Thanks for the reply. No this behavior was fixed sometime after RC1 but of course was ...Show All
kempshall TableAdapter Update problem
Hello, i have problem in my application. I create dataset with single table. In MainForm i have 2 texboxes and update button. This is code for update button: [CODE] Klient klient = new Klient(); klient.ShowDialog(); KlientDataSet dataSet = new KlientDataSet(); Serwis.KlientDataSet.KlienciRow klientRow = dataSet.Klienci.NewKlienciRow(); klientRow[0] = Guid.NewGuid(); klientRow[1] = klient.Imie; klientRow[2] = klient.Nazwisko; ...Show All
