dcsimg

Search:

Type: Posts; User: Ginolard

Page 1 of 13 1 2 3 4

Search: Search took 0.19 seconds.

  1. VS 2012 Casting problem with extended principal class

    I have the following piece of code. It's fired when a user double-clicks a Listview entry that could be either a user or a group.

    If it's a user it calls GetUserInfo which receives my...
  2. VS 2010 [RESOLVED] Paralell.ForEach with a Sortedlist(of string,string)

    I'm still messing around with (i.e. trying to learn) some more about parallel programming and have hit a snag.

    I have a SortedList(of string,string). I then create a subcollection of it that I...
  3. VS 2010 Re: Best/simplest method for implementing multi-threaded file copy?

    Thanks JMC, clear and concise help as always. I'll push through the change for using .NET4 ;) I'd prefer to keep as simple as possible and the TPL seems the best way.

    To log when a thread has...
  4. VS 2010 Re: Best/simplest method for implementing multi-threaded file copy?

    Yeah I kind of figured the TPL would be the best option. I was trying to avoid that as it would mean jumping through Change Management hoops to get them to approve installation of the .NET4...
  5. VS 2010 Re: Best/simplest method for implementing multi-threaded file copy?

    I disagree. I've tested multiple multi-threaded file copy tools and they all provide a significant improvement. Robocopy being a prime example and I suppose I could just a start a process to run...
  6. VS 2010 Best/simplest method for implementing multi-threaded file copy?

    I have the following method in my console application which takes a list of files in SortedList (VMsPerDisk) and then copies them from their source to a remote share.

    The files are usually fairly...
  7. Replies
    0
    Views
    2,111

    VS 2010 Converting Powershell WMI query to VB.NET

    I've found the following Powershell script to extract information from Hyper-V machines. I'm trying to convert it to VB.NET but I'm having trouble figuring out the WQL syntax



    $HyperVParent =...
  8. VS 2010 Re: Reducing class coupling/complexity in this method

    Thanks guys. I think I am probably getting a little too distracted by the Code Analysis results. The code works well and is performant enough for me and the people who use it. So there's no...
  9. VS 2010 [RESOLVED] Reducing class coupling/complexity in this method

    I'm trying to streamline my project a little bit today and the Code Analysis shows that this method has a maintainability index of 30 and Class Coupling of 37. From what I've read, that's pretty...
  10. VS 2010 Re: Implementing a Refresh method on my own custom UserPrincipal class

    Aaaaanddd...yet again it's a lot more simple than I was imagining to be.

    I really need to stop over-thinking things ;) Thanks
  11. VS 2010 Re: Implementing a Refresh method on my own custom UserPrincipal class

    Yeah, I guess that logically makes more sense. It would just be simpler to have a method in the main form that does this



    Private Sub RefreshSelectedPrincipal(ByRef p As...
  12. VS 2010 Re: Implementing a Refresh method on my own custom UserPrincipal class

    Hmm. Not used extension methods before. That seems quite a cool solution
  13. VS 2010 [RESOLVED] Implementing a Refresh method on my own custom UserPrincipal class

    Hi,

    I have a class called ExtendedUserPrincipal which inherits from UserPrincipal and exposes a few extra properties not exposed in the default UserPrincipal class. In my main form I define an...
  14. VS 2010 Re: Trying to learn some LINQ. Not succeeding......

    Ah, never mind, got it. It has to be cast to a List (of Principal) instead
  15. VS 2010 [RESOLVED] Trying to learn some LINQ. Not succeeding......

    I thought I'd smarten up some my code a bit by trying to remove clumsy If/Then loops in place of LINQ Queries. Specifically, I'm trying to filter a list of groups from a PrincipalSearchResult. I...
  16. VS 2010 Could someone explain LinkDemand warnings? I'm confused

    I'm running through the various warnings from Code Analysis and it's throwing up loads of warnings about functions that have LinkDemands. I'm a little unclear on

    a) What they are
    b) How to...
  17. VS 2010 Re: Reducing class coupling recommendations - pretty basic stuff I imagine

    Sorry, I should have been clearer. Some functions in Form1 also need to use the LogonServer variable hence the reason it's declared there. I suppose there's no reason why it cannot also be declared...
  18. VS 2010 Reducing class coupling recommendations - pretty basic stuff I imagine

    Hi again,

    I'd like some advice on the best approach to reducing class coupling in my application. It's not terribly big (one main form and a few subforms).

    On the mainform (Form1) I have a...
  19. Replies
    15
    Views
    1,441

    VS 2010 Re: A little unclear on exception handling

    JMC, always good to get your take on things! I do expect there to be errors when trying to translate certain SIDs as they are linked to BuiltiIn Domain groups and always generate a "Could not...
  20. Replies
    15
    Views
    1,441

    VS 2010 Re: A little unclear on exception handling

    Thanks Shaggy, that's comforting!

    Given that I know where the Principal I'm looking for should be in AD I guess I could just try and run each SID through a FindByIdentity loop until I hit the...
  21. Replies
    15
    Views
    1,441

    VS 2010 A little unclear on exception handling

    I'm running my assembly through FXCOP and it tells me I shouldn't throw General Exceptions.

    I'm a little unclear on how I should handle exception handling here. In the try block inside the...
  22. VS 2010 [RESOLVED] ContextMenuStrip opening in "wrong" place

    I'm guessing this is glaring oversight on my part but I'm a bit stumped.

    I have a ContextMenuStrip bound to a ListView. I also set the DropDown property of a DropDownButton (called ACTIONS) to be...
  23. VS 2010 Reading remote registry with WMI returns no results

    I am trying to read the HKEY_USERS hive of a remote machine with this Class



    Imports System.Management
    Imports System.Management.Instrumentation


    Public Enum RegHive As UInteger
    ...
  24. Replies
    7
    Views
    4,722

    VS 2010 Re: Email hyperlink in ListView?

    Very nice, that seems to work well enough though I changed the HitTest to


    If myHitTestInfo.SubItem IsNot Nothing AndAlso
    myHitTestInfo.Item.Text = "Email address" Then
    ...
  25. Replies
    7
    Views
    4,722

    VS 2010 Re: Email hyperlink in ListView?

    The grouping does allow me present the data nicely (i.e. AD group membership, user details, Managed Users etc).

    I'll think about it ;)
  26. Replies
    7
    Views
    4,722

    VS 2010 Re: Email hyperlink in ListView?

    Yeah, I thought that might be the preferred option. I don't think I really can be bothered to redesign the UI and code just to implement that tiny improvement ;)
  27. Replies
    7
    Views
    4,722

    VS 2010 [RESOLVED] Email hyperlink in ListView?

    I have ListView that displays information about users. One of the fields it displays is the email address.

    I am wondering if it's possible to have the email address as a clickable "mailto:"...
  28. VS 2010 Re: Creating folders with alternate credentials (impersonation?)

    Thanks. That's a nice little class. Perhaps a little overkill for my needs. I went with the Process.Start option taking the credentials from the UserCredentialsDialog custom object I'm using as it...
  29. VS 2010 [RESOLVED] Creating folders with alternate credentials (impersonation?)

    I am developing a small tool to allow our Windows admins to do stuff like create/delete users, mailboxes and other useful stuff.

    The current version has to be launched with RunAs as it requires...
  30. Re: Creating shared folders and specifying share permissions

    Ah...well, I may have to use that WMI version because it's designed to use SIDs and not domain accounts.
  31. Re: Creating shared folders and specifying share permissions

    Also...seen this?

    http://blogs.msdn.com/b/helloworld/archive/2008/06/06/programmatically-configuring-permissions-on-a-share-in-c.aspx
  32. Re: Creating shared folders and specifying share permissions

    Hi,

    I think I was the original "inspiration" for this lovely piece of code as I was trying to figure out how to do it myself ;)

    Anyway, I've finally had time to go back to the application I was...
  33. Replies
    4
    Views
    1,740

    VS 2010 Re: Struggling with OrderBy Lambda expression

    No, I meant why does the function have to return an array? Originally I was trying to return a PrincipalSearchResult collection which, obviously, wasn't working.

    LinQ is confusing :(
  34. Replies
    4
    Views
    1,740

    VS 2010 Re: Struggling with OrderBy Lambda expression

    Right, after some trial and error it's working. I had to cast it to an array



    Private Function GetSortedGroups(ByVal psp As PrincipalSearchResult(Of Principal)) As Principal()
    ...
  35. Replies
    4
    Views
    1,740

    VS 2010 Struggling with OrderBy Lambda expression

    I'm getting my feet wet with Lambda expressions and it's rather overwhelming.

    I have a UserPrincipal object called SelectedUser. I wish to get a sorted list of the user's groups

    This is what I...
  36. VS 2010 Re: Unable to use Interop. Probably being stupid

    Yes, I think that's what I'll have to do. It seems a little clunky but I guess I don't have much choice.
  37. VS 2010 Re: Unable to use Interop. Probably being stupid

    Ah. Now I think I know why. The associated DLL has to be registered on the target machine too. Damn, that's annoying. Now I need to find out how to have my application register a certain DLL...
  38. VS 2010 Unable to use Interop. Probably being stupid

    I am trying to use a 3rd-party Interop assembly called SmartWIM.

    I have added it as a reference and added an Import statement

    Imports SmartWIMLib

    I then initilalise it with

    Dim...
  39. VS 2010 Re: Storing backup history in Application Settings?

    I've absolutely zero knowledge of binary serialization and this tool is merely a stop-gap until we buy and implement Microsoft Data Protection Manager. Given that, I think an XML file may be the...
  40. VS 2010 Storing backup history in Application Settings?

    I'm creating a small tool for our team that performs backups of our servers. The plan is to put the tool in a central location so that anyone can use it.

    I'd like to store, somewhere, the date of...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width