A two year old bump. This has to be a record.
Type: Posts; User: weirddemon
A two year old bump. This has to be a record.
I have a WPF page that I've styled like this:
96103
When I set the source to the WPF page, it looks like it loads. However, the hatched background style disappears.
96105
The button is...
Nick,
I'm having trouble with .GetThreadSafeproperty. Here's the error:
http://i.imgur.com/OGyvK.png
And this is how I'm using it:
foreach (ListViewItem lvi in...
The application I'm making has a finite amount of space. But there are a lot of buttons needed. So to better take advantage of the space I have available, I want a control that I can add buttons to...
I can't change the location of the file to be edited
UAC is OFF
Just in case, the app.manifest has been edited so it runs as admin
Here's the code:
public void...
I didn't say people did try to help. I'm saying people focused on things I said *wasn't* the problem. Mainly referring to security and UAC that I ruled out many, many, many times. I just think if...
You kept going on about permission issues. Which I said many times had nothing to do with this.
I'm not sure why you guys won't listen. It has nothing to do with the permissions of the path.
Also, I just resolved the issue. The MainMethod opens up the XML file to retrieve the data. If a...
Ugh... yeah. It worked if I called the deletion method by itself. Which means that the MainMethod must be locking up the file somewhere. More digging to do.
I think that at this point, it becomes irrelevant where the file is located since it *can* be deleted from the application. However, it's just a folder from the user documents on my PC and the...
Ok. I've done a couple of things. I tried making the method the very first action in Form_Load to rule out any other code screwing it up. That didn't work. Then I tried deleting the file in the first...
I tried Reset, but it did't work.
If your read my reply above, you'd see that I told you that the security permission are fine. I double checked it and my account has access to everything. On...
Security permissions are not an issue. I have full control over everything. This same error occurs on two different machines. Both are running Windows 7 Pro with UAC turned off.
I can delete...
It's a generic file permissions error. I've Googled this error for quite some and came across that document as well. Nothing there applies to this situation.
It just says RunTime Error 70. Permission denied.
http://i.imgur.com/MEsrn.png
The file isn't readonly and it doesn't work on any machine. But they're all Windows 7 and each PC has UAC turned off and are admins.
I checked the path and it's good. I tried sleep like you recommended, I even tried it with 10 seconds, but it didn't help.
I'm using the following code to copy some lines from file into a new file. After all the correct lines are copied, I delete the old file. This was working just fine last week. But suddenly it's not...
Ugh... this whole thing is a mess. For some reason, the line where I compare the string (Instr) was changed from > 0 to = 0. I changed it back so that's working again. But it looks like it is failing...
I was mistaken on when the error occurs. It seems as if it executes Do While Not, Line Input #from_file, one_line, and If InStr(one_line, target) = 0 Then just fine. Then it loops back up to Do While...
I would appreciate it if you could provide any information that is relevant. This has nothing to do with what I'm asking.
UAC is off and it's running from a My Documents. it also worked on Friday.
I get a "permission denied" error while running the following code.
Public Function DeleteLines(ByVal from_name As String, ByVal to_name As String, ByVal target As String) As Long
Dim strlen...
Forgot to come back here. Yeah, that's what's happening.
Thanks
When I select one ListViewItem, the data populates correctly. But after selecting the second, it throws this exception. This exception would normally be thrown if I tried to set the selected item's...
In my loop, I'm adding the property name and the value to a custom class.
foreach (PropertyValueCollection p in ChildObject.Properties)
{
...
Oh. Ok. That should be easy. One more thing, if you don't mind. This is the code I'm using to get the OU/Container attributes and their values.
foreach (PropertyValueCollection p in...
Chris,
Also, is there an easy way to get the attributes for each container? For the attributes you see in ADSI Edit.
EDIT: Never mind. I figure it out. You were already populating this data via...
I got it to work. I pasted something wrong. When I deleted everything and repasted, it worked.
But, it won't work if I leave the password as an empty string. I can't look through your code right...
Chris,
I'm using your code in a C# project. Do you have any idea why I'd be able to load the main now, obtain the distinguished name, but not be able to load the child nodes? When I expand the...
Oh. So declare it at the top. Gotcha. It's compiling now. Thanks, mark.
Err... this is strange. It won't even compile in the main app, but when I put the code in a test app, it runs just fine.
It's in the same module as the other methods. What do you mean by general declarations section?
Thanks, Mark. That looks good. But I'm getting the following error on the provided line.
Public Function GetLineData(ByVal xml As String) As xmlData()
I copied your code as is. I haven't...
Yeah. For the most part. The data for each field will always be different. But the fields will always be in that order. This solution doesn't need to be perfect. It just needs to work. When I convert...
Well, yes and no. There will be more lines, but that's just for additional entries. Each entry will have only one line and only those properties. So it shouldn't be so hard, I think. It's just that...
I can't use any dependencies for the update I'm about to push. The last thing I need to do is read some XML from an XML file.
Here is an example of the XML:
<Car DateEntered="11/14/2012"...
I'm trying to determine if a string contains a specific piece of text. If it does, then I need to change the forecolor of a ListItem to a predefined color. This is how I'm trying to do it, but...
Forgot to mention that I tried that. Didn't work.
I fixed it though. Well, sort of. Changing the frame visible property to false and then to true was crashing it via button press. But that was a...