|
Not built in, no. Is there a Windows Media Player control for compact framework ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
How to craete an Pivot table object with
ActiveXObject("Excel.PivotTable");
Excel.PivotTable does not work
|
|
|
|
|
I have completed all of the step to get a simple windows service up and running and i can not find it anywhere in the computer managment console.
Here is a pic that shows the process of installing the serive.. and the prompt says all is good.. i just can not locate it to turn it on..
http://afcc1.com/Examples/Images/WindowInstaller_Help.jpg
thanks..
erik.
|
|
|
|
|
necesito una idea o al menos una imlementacion de como limpiar la consola en c# 2003 .net porque las funcionalidades no me sugieren nada
soy nuevo en este tema
|
|
|
|
|
In English please. This is an English speaking board.
I'm assuming you want to clear the console window. A little search on MSDN reveals this[^] article on how to do it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am trying to create a mailbox from a web applicattion that it is not in a domain controller (a webservice) using CDOEXCH. The code works fine when the web service is in the domain controller but no way out of it. If we put the code in a Windows applicattion then everything work fine even in a non domain controller computer. We have try to impersonate the asp, or even the application pool. The security context was ok but there is something wrong with any permission or something like that though the credentials have domain administrator rights.
I have tried to encapsulate the code in a COM+ object and impersonating with administrator rights but I didn´t success. I copy the general idea from our code and the return error. Any idea wolud be really apreciate
DirectoryEntry container, user;
CDOEXM.IMailboxStore mailbox;
//This creates the new user in the "users" container.
//Set the sAMAccountName and the password
container = new DirectoryEntry("LDAP://cn=users," + defaultNC);
user = container.Children.Add("cn=" + fullName, "user");
user.Properties["sAMAccountName"].Add(alias);
user.CommitChanges();
user.Invoke("SetPassword", new object[]{password});
//This enables the new user.
user.Properties["userAccountControl"].Value = 0x200; //ADS_UF_NORMAL_ACCOUNT
user.CommitChanges();
//Obtain the IMailboxStore interface, create the mailbox, and commit the changes.
mailbox = (IMailboxStore)user.NativeObject;
mailbox.CreateMailbox(homeMDB);
user.CommitChanges();
RETURN ERROR:
Unable to create a mailbox for the specified user. Using homeMDB path: LDAP://PRSRVDCCAM1.redcam.local/CN=Mailbox Store (PRSRVDCCAM1),CN=First Storage Group,CN=InformationStore,CN=PRSRVDCCAM1,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=CAM,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=REDCAM,DC=local. Inner exception attached from: mscorlib. Current user context: REDCAM\AdministratorWith error
Facility: LDAP Provider
ID no: 80072020
Microsoft CDO for Exchange Management
|
|
|
|
|
I don't know if this helps, but according to the article ASP.NET Web Application Security[^] from MSDN, ASP.NET has client impersonation set to false. I don't know if this affects your ASP.NET application (I don't do that kind of thing), but I thought it might be a direction for you to look.
(Don't double post.)
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Thanks for your answer. I have tried impersonating so you indicate in several ways but the problem was the same. It looks like the process need to be granted with some special permissions because we have seen that the account used is correct, the impersonation works fine but the web service is not able to create a mailbox. The strange thing is that we have no problems with the same code but running in a windows application.
The other key point is that if we install the web application in a domain controller everything work fine. The problem here is that we do not want to install this web service or web application in a domain controller.
Thanks
|
|
|
|
|
Hi everyone -
I'd like to develop an own browser with the new .net 2.0 framework. With the Browser Control this shouldn't be so hard. I'd just update my registry so far that my program will be the standard browser of windows.
but now i have the following problem: on the start of my browser (for example if a new instance/window is created by a popup-link), how can I get the desired url?
is there an active-x component or something like that and how do I access to that in my .net program?
Thanks for all your answers.
Greetings -
Tom
|
|
|
|
|
Try reading Microsoft's Pluggable Protocol Overview[^]. It briefly explains how Windows finds the correct application for a given protocol (like http) and the arguments that it sends to the specified application.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
|
hi there -
thank you for your answers. i found out, that the new browser control in .net 2.0 does not yet support the event that i need. it can only cancel a newWindow event, but nothing more. there is no newWindow2 or newWindow3 event or a BeforeNavigate2 event. So i decided to use the axWebBrowser. it is not so comfortable then the BrowserControl, but it has more fexible event handlings.
thanks
tom
|
|
|
|
|
How to call a javascript function from c# code behind
|
|
|
|
|
You can't. The javascript function doesn't exist until the page is loaded in the browser.
If you want the function to run as soon as the page loads, you can add a call in the onload property in the body tag, or add a script tag to the page:
Page.RegisterStartupScript("Description", "<script type=\"text/javascript\">theFunction();</script>");
---
b { font-weight: normal; }
|
|
|
|
|
I am learning C# and .net and am using visual studio 2005. I would like to know if there is a way to examine the built in classes (such as 'Object', 'String', 'Array' etc) and to view there methods and how there're implemented.
is this possible or are the built in classes hidden from view?
|
|
|
|
|
Easily done using Lutz Roeder's Reflector for .NET[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
thanx thats just what i needed
|
|
|
|
|
Hi
I have an application where the front end is in ASP and the dll which supports it is written in C#.
I am using 'regasm' command to register it for com inter-operatibility.
C# dll methods are working fine for string type parameters, but not for LONG and INT type parameters. It throws an error saying:
__________________________________________________________________________
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment: 'GetReportsData'
__________________________________________________________________________
I am passing the LONG parameter from ASP. Example:
_________________________
Method in C#
public string takeint(long param)
{
//code
}
________
Call from ASP
var1=object.takeint(Clng("100"))
_________________________
This operation throws above mentioned error.
What are the compatible datatypes for LONG and INT of ASP in C# as I can't change the ASP call, but I can change the C# code?
Thanks.
--------------------------------
From: saurav goel
|
|
|
|
|
I think a classic ASP (vb) Int is a .Net system.int32 and a ASP Long is a .Net system.Int64
Jon
|
|
|
|
|
Please don't cross post.
I was wondering why the &#!%¤"*§ someone deleted my answer to the question, until I realized that I answered it in a different forum.
---
b { font-weight: normal; }
|
|
|
|
|
Hello everyone!! : )
Actually I want to make a program like Inetl UPnP AV Wizard,with a HTTP media streaming server inside,can send the song u selected to the AV Render,I don't know what should I do to make the media server part,can anyone give me a suggestion,10 billions thanks ~
small_snap
hello everyone
|
|
|
|
|
So I'm trying to make a splittable tabcontrol with an infinite amount of splitability. I really want to be able to just store some lists or arrays in order to figure out which tabs are in which splits and go from there. I'm trying to either rewrite the SplitContainer or use the existing one in some configuration that will allow me to do this effectively. My problem for both solutions are as follows:
When I rewrite the splitter functionality I cannot figure out a way to get my OnDragOver event to draw an overlay indicating where the splitter will be moved to. The closest that I've found so far is to possibly draw to the desktop, but that seems like an evil overkill solution to a problem that has already been solved by a very basic control. Is there any way for me to draw over everything or just draw after everything that I already have drawn from within my parent control?
I have a couple problems with using the splitcontainer as is in my control. The biggest one is that it introduces hierarchies that don't need to be there and removes my ability to iterate through the visible forms. Secondly I'm having trouble getting the SplitContainer to even show up. I was able to set the bounds of my tabpage to the appropriate area, the visible property to true and then invalidate my control to get them to show up, but this doesn't seem to work with the splitter at all.
So that's my predicament in a nutshell. Anybody have any suggestions?
|
|
|
|
|
You can use the System.Windows.Forms.Splitter control. It wasn't removed in .NET 2.0, it's just not shown in the toolbox by default.
|
|
|
|
|
Thanks for the response. I haven't worked with those splitters before. Is there a way to get them to chain together with more than just three panels? I can get it to work if I dock one panel to the left, one to fill, and one to right, then have the two splitters be docked to the left and the right. If I add more than that it no longer works. I'm looking to be able to resize the panels in the way that visual studio .net 2005 does when you split the tabs.
|
|
|
|
|
I'm not clear with the difference between Manifest & Metadata.
Is it possible to give a link that explains the difference with example?
It seemed that Manifest is Metadata + MSIL. Where can I find Metadata??
Is metadata same as what we see when we hit CTRL+M on ILDASM?
Thank you & Best Regards,
|
|
|
|