Not to sure, but I think the property grid relies on the existance of a System.ComponentModel.Design.IEventBindingService service. To do that u need to:
1. Implement the interface yourself.
2. Add it to the IServiceProvider
NOTE: if u doing this at runtime, then you will likely need to provide all the design time services yourself.
I want to make a program that can create and unpack a encoded '.rar' or '.zip' document.
I have found a dll to download from rarlab.com, but it will not allow to unrar files with password.
Does anyone know where an good article about using the encoded '.rar' and '.zip' documents, or does anyone know where to get a freeware dll which already contain the functions with pack and unpack files with password.
I am using Microsoft.Web.UI.WebControls.TreeView control in my application.
I am able to add new nodes and child nodes to it, but the problem i am facing is that i always get the selected node id as 0, i.e the id of the first Node.
All events have been written for it, autopostback property set to true, but am not able to access the selected node id. Even the event for the selectedindexcgange does not fire.
Due to this i am able to add child nodes only to the first parent node.
I am using a right context menu, and on right click on a particular Parent or child node, different operations like Add child node, rename and delete can be performed on it.
All this can be accomplished once i get the selected node id.
Can anyone please tell me as to how to proceed with this?
I have a progressbar showing the progress of background operation , when i browse through other application and return to mine , the form takes time to redraw itself infact it is redrawn only when the progress is completed.
I went through various sites and found that this problem in delphi can be solved by using..Application.ProcessMessages...Any ideas do it in c#.
yeh with backgroundworker everything is fine....
wat I m trying is just a "for" loop whose value goes to progressbar.value using thread..then thru invoke function of threads...showing the progress in progressbar but while progressbar is working and u browse other application the windows form of mine take time redraw it self (it does not response from user)..want to make form responsive even if progressbar is functioning
If the operation is really done in a separate thread and the GUI thread isn't blocked otherwise this shouldn't occur. You should first check if you are really using your threads correctly and if the main thread is working on something.
Other than that (as already suggested) you can use Application.DoEvents() to make your form redraw. But be careful not to call this too often (with 'often' I mean many times per second) as it might reduce performance.
ASP.NET code is not run using your user acount (why would it), but a special account. The name of the accound depends on the version of IIS, but it's normally ASPNET or IIS_WPG. You have to grant permission to the file for this account.
Thanks all of you for the replies. Thought to post the solution if anyone needs it. Access a remote file through Asp.Net is different from doing it thro a console or win appl as Guffa rightly pointed out. So to do this there is a class WebClient which can be used
Here's the code snippet
WebClient myclient= new WebClient();
StreamReader sr=new StreamReader(st)
Then startreading the file using the streamReader.
That method is fetching the file using the HTTP protocol via IIS, instead of using the file system. That means that the file has to be publicly available (which is not always good), it adds a lot of overhead, and it increases the traffic through IIS.
The call will try to establish a Tcp connection to the specified url and port. The url is used to know to which host (computer) the connection should be established. The Url can be a normal adress (like http://www.codeproject.com) or like in your case an ip adress (actually the first one will be resolved to an ip adress on the fly). The ip "127.0.01" is always the local machine - thus the connection will be established to yourself. As every host can have multiple connections open the port number differentiates these connections.
Probably this description is a bit too simple (I'm no real expert on this) but it should give you a rough idea.
Personally I wouldn't use the scheduler. You have more control when doing it yourself.
You could even avoid having your own thread by using a System.Threading.Timer[^] class which manages this internally.
Last Visit: 31-Dec-99 18:00 Last Update: 30-Sep-23 17:29