|
Ah ha! Now I understand. The Visual Studio designers do not support controls with unbound generic parameters. You can't create your FilterControl<T> : UserControl and then use the forms designer to drag it onto a panel or form.
You might be able to adapt a TypeDescriptor for the user control for your forms, though I've never seen this done. There's an article on Urban Potato that does this for controls with abstract base classes: Using Visual Studio Whidbey to Design Abstract Forms[^].
|
|
|
|
|
thanks a lot I will read this article ( in sha'a allah)
and I hope to find what I want
Thanks very match
You have To Search About The Truth Of Your Life
Why Are you Here In Life ?
|
|
|
|
|
If you find or develop something interesting, then don't forget to come back and post a solution so that we all can learn!
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Okay my friend
You have To Search About The Truth Of Your Life
Why Are you Here In Life ?
|
|
|
|
|
Hi all,
I have the following problem:
We have a Sharepoint system which is being used to present Reporting Server content from a Cube based MSQL Database. All works fine so long as we use Kerberos authentication for both the Sharepoint login and for the Report Data Source. The problem is that the database contains not only data, but also the access rights to the content. It is therefore important that the content be collected as the user logged in (and not using a general admin account).
OK - so where is the problem?
We will be using Form Based Authentication for Sharepoint. In detail we are using a Single Sign-On product (Entrust GetAccess) which provides Sharepoint with the username of the user. The password is however not provided (company policy etc. and for PKI and Grid card based logins this is also not available). Our problem is how to authenticate to the Cube Database with a user but not having their credentials (just their username).
My idea was to create a new "Custom Data Processing Extension" which inherits from the standard "Microsoft SQL Server Analysis Services" passing through all of the standard functions. The connect method I would overwrite with my own code which then "magically" logs the user into the Database using their username and a secret password known only to the Extension and the Database.
Ok - That is the theory, but to be honest with you - I have not been able to find much help on how to exactly go about this.
My questions:
1: I am going about this the write way - or is their an easier way to do this?
2: Is there a way to "impersonate" the user? Login as an administrator and then "switch" to the users context in the DB? This would save me setting all of the users passwords to a secret value.
3: Does anyone have any code examples or links which would help me to get startet?
Hope someone can help,
Simon
PS: The Form Based Login to Sharepoint was not difficult to solve which gives me hope that we will find a solution for the next problem .
|
|
|
|
|
I am using Microsoft Visual Studion 2008 and is coding in C++. We are using threads where two threads are waiting for another thread to setevent. One of the thread which waits is an RPC thread. Now the interesting situation is wen the third thread sets the event. If its the the RPC thread which comes out of the wait first, the other thread never comes out of wait. Is it some problem with RPC threads ? Plz update me on the same..
thanks & Regards,
skmc
|
|
|
|
|
skmckkie wrote: Is it some problem with RPC threads ?
I never heard about RPC thread. Do you mean your thread does RPC? Your question is not clear. Please post relevant code and explain your issues clearly.
|
|
|
|
|
I guess the threads are waiting on an auto-reset event.
Try it with a manual reset event.
«_Superman_»
|
|
|
|
|
I am developing multilingual application.
Font size for fields is 9.
It gives preview & print perfectly.
But, when i am exporting report to word. it resets font size to 12(for Hindi & Gujarati Font).
Also, when i am exporting report to PDF, it doesn't show Hindi & Gujarati Data.
I have checked same issue with 8,10,11 size font also, it always resets to 12.
|
|
|
|
|
I am also having the similar issue. in PDF, Hindi characters are not printed correctly.
And even when I print, it generates the PDF itself so I am having the same issue in print also. I tried to change print type to ActiveX but no success, it still printed in PDF format.
Have you found any solution to it?
Lalit.
|
|
|
|
|
This question maybe VB.Net specific, as I've never written interfaces using C#.
I have created an interface, IMine . When I create a class and add Implements IMine , the IDE automatically generates and inserts stubs to implement the interface.
I would like to add XML comments and DescriptionAttribute s to the interface code to document what the various items are for, and have those comments and attributes auto-generated in the implementing class along with the stubs. Is there any way to do this?
|
|
|
|
|
They write that they have only "experimental" support for VB.NET, but you might want to look at GhostDoc[^]. GhostDoc will copy the comments on base classes and interfaces to the new child class.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Whenever I call Directory.Exists, it returns false, so I try and create it, and get an Access Denied. If it doesn't exist, the create works. I believe this is due to permissions, but I can delete, populate, and create directories, I just can't check if they exist. This is most puzzling.
|
|
|
|
|
Works for me running a C# Console app. under my domain account which of course has access to the location I was checking.
|
|
|
|
|
Hi,
from the symptoms you described, this could well be a bug in your code, failing to check existence
properly, and failing to create a directory that already exists (and was created by someone considered different from yourself).
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Hello everybody in this forum , i would like to ask one question
i am developing a .Net remoting task , in which there is a server to publish a remote object that is registered on a definite port and a client which calls that remote object based on the remote uri of the remote object from the server .
now , in my task , when i run the server and the client , everything goes very well but i would like to run multiple client instances on the same machine .
when i do that it tells me "http channel is already registered" because in the client program i register an http channel but i would like to run multiple clients here is the code in the server.
<br />
HttpChannel channel = new HttpChannel(6064);<br />
<br />
ChannelServices.RegisterChannel(channel);<br />
<br />
RemotingConfiguration.RegisterWellKnownServiceType(typeof(RemotingManager), "RemotingManager.soap", WellKnownObjectMode.Singleton);<br />
and in the client side
<br />
<br />
HttpChannel mychannel = new HttpChannel();<br />
ChannelServices.RegisterChannel(mychannel);<br />
IRemotingManager mgr = (IRemotingManager)Activator.GetObjcet(typeof(IRemotingManager),"http://localhost:6064/RemotingManager.soap");<br />
......................<br />
.......................<br />
so when i run the client program it works so well and it fetches the remote object and everything goes well , but when i run multiple instances of the client program it tells me "the http channel is already registered" is there any way around that ?????
please help , i need to run multiple instances of the same client program on the same machine without having this port conflict ....
Thanks in advance.
Human knowledge belongs to the world.
|
|
|
|
|
snouto wrote: but when i run multiple instances of the client program it tells me "the http channel is already registered"
What happens if you try to Activate the second instance after that error?
Also, it's not a good idea to post code that doesn't compile unless you are asking about a compiler error.
snouto wrote: Activator.GetObjcet
This tells us you did not post your actual code that executes since that won't even compile. Therefore we can't trust anything we are looking at.
|
|
|
|
|
sorry mike , it is activator.GetObject(...) , but you still didn't reply to me about the core problem not mistypo ....
Look Deeper inside the core not the pheriphery
thanks
Human knowledge belongs to the world.
|
|
|
|
|
snouto wrote: but you still didn't reply to me about the core problem
Yes I did
led mike wrote: What happens if you try to Activate the second instance after that error?
|
|
|
|
|
if you think so , so your place is not here in code project
Human knowledge belongs to the world.
|
|
|
|
|
|
snouto wrote: your place is not here in code project
The gold triangle says it is. He did answer your question - he asked you what happened if you tried to open the second object anyway. It is possible for multiple instances to talk to the same port - it is not possible for the same port to be opened up many times. Work your way round that issue and you will find the answer.
|
|
|
|
|
can you explain more please your answer . how can i open multiple instances to talk to the same port , you mean to create a tcpchannel and give it a specific port like
TCPChannel mychannel = new TcpChannel(3030);
for example .
or put a port in the httpchannel constructor , can you clarify using a demo line of code for that port section , thanks for you
Human knowledge belongs to the world.
|
|
|
|
|
Nice Post Pete O! Surely you have solved his problem! Let me look at his reply..
Oh dear, what a shame.
Look at the time! It flies by when you're, ummm doing whatever this is.
Have a great weekend dude!
|
|
|
|
|
I need a XML parser which uses XML schema.Plz help.
|
|
|
|