Answer Questions
Luke Hartsuyker (407) Proxy Authentication Required.
Hi, I am trying to write a winform application that needs to access internet with or without proxy. the code is: string rssURL = "http://msdn.microsoft.com/rss.xml" ; // Begin the WebRequest to the desired RSS Feed System.Net. WebRequest myRequest = System.Net. WebRequest .Create(rssURL); System.Net. WebResponse myResponse = myRequest.GetResponse(); Resuts: 1. without proxy like home, the above works wel ...Show All
Sarah Camsell Why couldnot I modify the value of item from Generic Collections(Net Framework 2.0) ?
I have a class defined: class test{ public int m,n; } int my application I defined a list as : publuc List<test> TestList; and I add some instances of test to the TestList; then I want to modify some item as following, TestList[ i ]. m = 123; TestList[ i ].n = 456; the compiler gave the following error: Error 5 Cannot modify the return value of 'System.Collections.Generic.Lis ...Show All
Jimmy Xiong How do I write to a file on a shared drive on a another server on the same network.
Hello, I'm having trouble finding a way to write to a file on a shared drive on a different server from where my console application is running. I would also like to pass the credentials to access the shared drive as I don't want to have to set up the application in some group or have it added to the folders security permissions. I thought about mapping the drive to the machine manually and then accessing the file that way ...Show All
PabloSmith Are there any good samples on Text Editors?
Are there any good text editor samples Mateusz Rajca Check out this links: http://www.c-sharpcorner.com/Code/2004/April/AdvancedNotepad.asp http://www.codeproject.com/csharp/notepad.asp ...Show All
Glynnder Black out the screen & lock the mouse
Hi guys. I am writing this anti-workaholic software. All it does is displaying message and playing a sound. I want to include few more "force" options, like blacking out the screen and locking the mouse Any ideas! About the mouse I tried setting a new point every time a separate timer ticks, but i am still able to move the mouse little. And I want it to stay still :). right now i am thinking about 2 ...Show All
Mike Driest Translating C++ code, syntax question
I have a point class (much like the MFC::CPoint, but double precision) in C++ that allows me to do a lot of geometry calculations quickly. I often use an expression like: CdPoint A = CdPoint( dX1, dY1 ) + CdPoint( dR*Math.Cos(dAng), dR*Math.Sin(dAng) ); However, I find that C# doesn't seem to like that type of expression. Neither does C++/CLR. I have been able to get the following to compile: CdPoint B = new CdPoint( dX1, dY1 ) ...Show All
sendi Problems with the Formdesigner when using Singleton-classes.
Hi. I have just migrated from Java to C# and i ran in to some problems using Visual C# 2005 Express edition. I have managed to create singleton-classes and they are functioning well, but when i add them to my form, the designer stops working.and I get the Warning message: "The variable 'myCalendar1' is either undeclared or was never assigned." myCalendar1 is the singleton-class instanciated trough MyCalendar.getInstance-met ...Show All
quinthar lpt port
hi; how i can controll lpt port with c# hi have a looksie on this site http://www.codeproject.com/csharp/control_e_appliances.asp hope it helps. thank you very much sy_mbm mark the answer as reply plz ...Show All
Xanfere BroadcastEventWindow Error
Hi, I am having some trouble in C# 2005. I have an application that import some functions from a Delphi 6 DLL, Written by Me, This DLL Imports functions from DLL, NOT Written by Me. The reason for this, is that .Net cannot connect to the Dll that I did not write, but Delphi 6 can. So I use C# to connect to Delphi to Connect to the other Dll. Believe it or not, this works and is fully functional, the only problem is tha ...Show All
Wawan K. assign value to datetimepicker (windows form)?
i have a datetimepicker in a window form. how should the coding be if i read a date from the database and the datatimepicker will show the date that i get from database something like if i read a data from database and assign the data to the textbox, i would write SqlDataReader myReader; myReader = cmd3.ExecuteReader(); if (myReader.Read()) { txtunit.Text=myReader["P_UNITS"].ToString(); //textbox } wat is the codin ...Show All
Mehdi Moshtaghi Removing elements during iteration through a Dictionary
I'm trying to iterate through a Dictionary and remove some of the elements according to some criterion. I get an InvalidOperationException that says: "Collection was modified; enumeration operation may not execute." IDictionary<IPAddress, DateTime> peers = new Dictionary<IPAddress, DateTime>(); foreach (KeyValuePair<IPAddress, DateTime> peer in peers) ...Show All
Boris Vidolov MSFT how to run one project from another project which are in a single solution!!!
i have two projects(proja and projb) in a single solution. both projects has got an entry point. i have made proja as a startup project. how can i run another project from proja. or how can i cann Main() function of projb from proja. Both the proj are within different namespace. i am using .net framework 1.1 System.Diagnostics.Process.Start("MyOtherProject.exe"); What are ...Show All
Eyfel Where is the C# API?
I can't for the life of me find the C# API. Does it exist I'm looking for something like the Java API at: http://java.sun.com/j2se/1.5.0/docs/api/index.html Any help would be appreciated! Thanks. ok, there's no list of ALL classes, you can get only hierechy of packages with classes. You can find a specific class only through a search mask. There's also an offline version of MSDN library (not fo ...Show All
Jigar acharya Why IDE remove my custome controls from form often?
I have suffered a lot (really alot!) from losing code and the very slow speed of design mode form drawing in VS2003 IDE. I have lost so many times window code whenever I used subclassed control in design mode. Most of time I create my own driven control and use it in design mode after register it into toolbox. IDE removes my custome controls from the window form when I open the form in design mode. It drives me crazy....!!! It is not limit ...Show All
Fiona Fung MSFT How to convert a big project from VS2003 to VS2005?
I try to convert a small project. I open the sln file of VS2003 by using VS2005.and it told me the only one file was successfully converted that is the sln file, Is it right The another question is that:could VS2005 reference to the dll file of the VS2003 or could it use the methods and properties of the dll of VS2003 Thanks. If anybody can give me some help,email me: uumlwy@126.com ...Show All
