So why can't I write back a new value? Regards using DAO - I am using Interop to connect to the Access COM interface. So if you use accessObject.Application.DBEngine want is returned is a DAO.Engine. Is there a way of returning a ADODB Engine instead?
You have asked this in the Q&A forum as well. Don't do that! It is called cross-posting and is very rude.
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
I wouldn't let CG touch my Abacus!
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
i'm trying to use the DomainController class to access the metadata of an OU, but i keep getting:
"'System.DirectoryServices.ActiveDirectory.DomainController.DomainController()' is inaccessible due to its protection level"
any ideas on how i can change this access level?
i can access the classes with the DirectoryServices namespace, it just seems to be the ActiveDirectory namespace in struggling with!
DirectoryContext dCon = new DirectoryContext(DirectoryContextType.Domain);
DomainController dc = DomainController.FindOne(dCon);
ActiveDirectoryReplicationMetadata adMeta = dc.GetReplicationMetadata(name);
foreach (AttributeMetadata a in adMeta.Values)
i am beginner in c#, i need tour help, i want two break textbox text in two part
textbox1.text = "ABT-001"
ABT-001 break into "ABT-00" and "1"
textbox2.text = "ABT-00" and textbox3.text="1"
You are looking for the String.Substring method[^]
What it does it returns a new string, cut down from the original. You just have to specify the start position of the new string (in characters from the beginning of the original) and the length of the new string, in characters:
int len = textBox1.Text.Length;
textbox2.Text = textBox1.Text.Substring(0, len - 1);
textbox3.text = textbox1.Text.Substring(len - 1);
(if you don't specify the length, you get the whole remaining string).
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
A trend that seems to be increasingly common. There are obviously a (I hope small) number of people whose only contribution to CodeProject is to down vote those questions they deem unworthy. I guess in a population this size there will always be a percentage of morons.
What pattern do you want to use to break the text apart? Do you want to break it based on the length? Is it based on a particular string pattern, e.g. XXX-NN representing the first part? Before anybody can offer you a definitive answer, you need to explain the problem fully.
I'm not a stalker, I just know things. Oh by the way, you're out of milk.
Without knowing exactly what criteria you want to use to split the string it is a bit difficult to give a definite answer.
Something you could look at and that is really powerful is Regular Expressions (RegEx)
welcome to CodeProject. You managed to ask a clear question with a readable code snippet, using PRE tags. Very good. You did fail to provide details on the failure though, if there is a compile-time or run-time error message/exception, you should report it.
It so happens I think I know what is going on: when sending messages to another process, if a pointer is involved, then that pointer must be valid in the destination process, not the originating process. So you need a buffer in the destination process, then request the data gets put into that buffer, and then you can go and read from that buffer. This takes several Win32 functions, I have an example (and an LP_Process class) here: LP#TrayIconBuster[^]. I suggest you study it there.