Im using two listboxes and the second one fills upon SelectedIndexChanged from the first. when I set the datasource to either their respective SelectedIndexChanged event gets fired for each item that is contained in the listbox.
I was able to add all the items I need to the listbox via forloop and listbox.Items.Add, using a collection class for ValueMember and DisplayMember
but its pretty ugly compared to one line of code setting the datasource property.
is this supposed to happen when using the datasource property ?
I have a small problem here, but I am new to C# or .NET for that matter. I have a table row which I will put below, that needs to appear different when being viewed by Netscape. In IE it needs to display this:
Then in Netscape it needs to display this:
The only difference is, I took out the "Bookmark this page link" because it doesn't work in Netscape. Can anyone help me, I really need to get this working. Again this is a user control in C#. Thanks.
I have written a proxy based web ad blocker in C#. The idea behind this is to route all HTTP traffic thru my program, so that banner ads can be blocked.
Browser's proxy settings are set to localhost and the port to the listening port, eg. localhost:8888
I am using a Tcplistener to listen to requests, and Httpwebrequest & webresponse to handle http traffic. everything seems fine. however, lately i notice that although the proxy is running, settings are correct, and browsers are configured to forward the requests to my proxy server, the requests are NOT sent to my proxy. I know this becoz i have a listview that will list all incoming traffic to the proxy, Browser windows just give me the "page cannot be displayed" message and the like.
At times after nemurous retries, the thing finnally worked and i can surf to almost anywhere with any browser. But when i shut down my proxy and load it again, i will get the same problem.
this proxy app is my degree project and it's gonna due in 14 days. i dunno wut's wrong. can some1 pls help me out?
I have a problem with remoting. In my remoting component I have a custom defined exception handling class. This class derives from the ApplicationException class. Now i need to send my custom exception to the client via remoting. As i have already inherited the ApplicationException class i cannot inherit the marshalbyrefobject which is required for remoting.
So how can i send my custome exception object to the client via remoting?
I have tried sending the exception object by using another class which inherits remoting and then creates an instance of the custom exception class. Still it throws some errors (remoting based or serialization based). If I try to use the [serializable] attribute it throws a deserialization error when I run the application.
Please Please help as my work is stuck unless i solve this one.
we developed a object persistent framework for .net and posted it at sourceforge as GPL (Url: http://www.sourceforge.net/projects/opfnet/). I don't know if somebody out there wants to check out our library in his own applications. You are welcome to use it in your open source projects and to give us a feedback - if you want!
We posted also a tutorial on the page. As it is not so easy to understand a thing never used before without tutorial.
Perhaps somebody likes it. It would be cool to get feedbacks.
Thanks and bye bye.
codeproject - i like it! i guess the best page for .net sources thanks a lot to the authors of the articles on this page. They ARE very helpful!
I have a weird problem to solve -- is there a way to turn an already compiled MDI application into SDI. It doesn't have to be a perfect solution -- it can be a manual process. For example, if I can get a list of MDI child winodws in the MDI, then have a button for me to manually make a MDI child window into a SDI window, that will be enough for me.
Hi. I am transferring an XML file to another PC's shared folder. I tried to use a File.Copy method but the XML file that has been transferred to the other pc becomes garbage. Is there another way of transferring the file that it won't become garbage?
I used the ff code:
File.Copy("\\\Data\\" + FileName, true);
Where Data is a shared folder. The file got there alright but the content is just garbage. Please help.
I would suspect that something else is going on since that code should work. It's not as if the operating system treats XML files differently than other files when copying them. I'd play around a little to try and discover what's occurring.
Program Manager, C#
This posting is provided "AS IS" with no warranties, and confers no rights.
Last Visit: 31-Dec-99 18:00 Last Update: 30-Sep-23 9:33