Search:

Type: Posts; User: christopherpm

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. VS 2010 Getting the list of attributes from Active Directory

    Although I can read information from Active Directory, is there a way to list all of the available attribute names from the schema that is on the active directory that I am logged in to?
  2. VS 2010 Converting my Forms based application to a service

    I have an application that I created a while ago. It's a forms based application that runs on one of our servers at work. The app works well, BUT at the moment, requires someone to manually run it,...
  3. VS 2010 Re: Conversion from "String" to type "Double" is not VALID

    Another thing, at the moment, your error box ONLY comes up if box A B and C are ALL empty, but do you want to show the error if ANY of the 3 are empty?

    If so, you could also try using:-


    If...
  4. VS 2010 Re: Conversion from "String" to type "Double" is not VALID

    Also look at this post which tells you how to limit the text boxes to numerical input only:-

    http://www.vbforums.com/showpost.php?p=3001438&postcount=8
  5. VS 2010 Re: Conversion from "String" to type "Double" is not VALID

    I think you're getting an error because you have set a, b and c as type DOUBLE, and then you are trying to say that they should take the values from txtA.text, txtB.text and txtC.text - all of which...
  6. VS 2008 Re: Stopping a Service using VB.Net

    Here are the 2 subroutines I use. You call them with StopService("servicename") and StartService("servicename")


    Imports System.ServiceProcess

    Public Sub StopService(ByVal...
  7. Re: Changing information in Active Directory

    Thanks for all of your help. I still haven't got it to work as I want on a remote network, but I'll try and sort that at a later date. For now, what I wanted to achieve has been done.

    Thank you.
  8. Re: Changing information in Active Directory

    adding "SelectContainerDialog.DomainController = xx.xx.xx.xx" gives me the following error in VB:-


    'DomainController' is not a member of 'Cjwdev.ActiveDirectory.Dialogs.SelectAdContainerDialog'.
  9. Re: Changing information in Active Directory

    I am, but the firewall is configured only to allow external LDAP traffic from 2 static IP addresses. However, for some reason, the code doesn't want to work for me.

    I get a dialog box which...
  10. Re: Changing information in Active Directory

    Hi Chris,

    I've got your dialog working no problem, BUT how do I specify not to include child OUs below the one selected?

    Also, another couple of related questions. How could I pre-populate the...
  11. Re: Changing information in Active Directory

    A wee update. I'm writing back to AD now. I've added the following before the "Count += 1" :-


    UserDE.Properties("telephoneNumber").Value = new_telephoneNumber
    ...
  12. Re: Changing information in Active Directory

    Well, so far using code from this thread, I've cobbled together the following, which populates a DataGridView with the cn of the user, their existing telephoneNumber (if they have one), and the new...
  13. [RESOLVED] Changing information in Active Directory

    I wonder if anyone can help. I've trawled through a lot of posts, but am lost.

    I currently have need to modify the Active Directory information for all of my users. At the moment, they have phone...
  14. Re: Populating array with values from unknown registry keys

    Yes I can...
  15. Populating array with values from unknown registry keys

    First of all, I have searched for information on enumerating registry keys and values, and I'm now drowning in information, and have gotten myself into a complete mess.

    I'm hoping that if I...
  16. VS 2010 Re: Populate textbox with list of all values within a specified registry key?

    If the value is a multi line string, then the code execution fails at the line:-

    readvalue = Registry.GetValue(keyname, value, Nothing)
  17. VS 2010 Re: Populate textbox with list of all values within a specified registry key?

    That works, but another question, what about entries that are set as REG_MULTI_SZ (i.e. multi line strings) - the code falls over when reading a value.

    Thanks.
  18. VS 2010 Populate textbox with list of all values within a specified registry key?

    I want to enumerate all of the values within a given registry subkey (for example 'HKLM\Software\Microsoft\Windows\CurrentVersion\Run')

    Does anyone have any code samples for this?

    Thanks
  19. VS 2010 Re: Code to run on remote server as administrator?

    Thanks - I managed to find this which worked great:-

    http://williamfaulkner.co.uk/2009/04/vbnet-run-as-administrator-impersonate-a-user-2008/
  20. VS 2010 [RESOLVED] Code to run on remote server as administrator?

    I need to write an app that will stop and restart a service on a domain controller. The app needs to be usable by all domain users without making them run as.

    Therefore, I want to have the...
  21. VS 2010 Storing / Reading / Updating an XML file

    I have an application that gathers data from a SQL database that is used by a 3rd party helpdesk application.

    My application is pulling out information of the number of hours worked by each...
  22. VS 2010 Re: Connect to Server SQL and run query

    Yes - in SQL Management Studio, it connects with RC\networkadmin.

    I've since changed and used the sa account and it now connects OK...
  23. VS 2010 [RESOLVED] Connect to Server SQL and run query

    Hi all,

    I'm trying to write a small app that will connect to our SQL database and run a small query.

    However, my first stumbling block is the connection to SQL.

    The SQL is on a server called...
  24. Replies
    1
    Views
    2,052

    VS 2010 Creating Excel addins

    Does anyone know of any good tutorials for creating Excel Addins?

    Thanks
  25. VS 2010 How do I Connect to, and reading from Access

    I have searched and found a fair few pages but they all relate to VS 2005 and VS 2008 only.

    What I need to do, using VS 2010, is connect to an Access 2000 (mdb) database.

    I then need to access...
  26. Replies
    0
    Views
    2,344

    Search for text in process memory

    I have a routine to find the PID of a running application. What I need to do, is search the memory in use by that process for a text string.

    How can I do this?

    Thanks
  27. Accessing file on parition with no letter?

    Is there any way of accessing a file on a partition that has no drive letter (such as a hidden or recovery partition)?
  28. Replies
    6
    Views
    1,661

    VS 2010 Re: RAS / VPN "On the fly"?

    The whole point is that I don't want to use CONNECTION_NAME because that assumes that a VPN connection has already been created AND that it matches CONNECTION_NAME - I want to avoid this scenario.
  29. Replies
    6
    Views
    1,661

    VS 2010 RAS / VPN "On the fly"?

    Rather than use an Entry name of an existing VPN connection, is it possible to connect to a remote network by creating a temporary connection on the fly by using the remote IP/Host name, username and...
  30. Re: How to copy Streamreader files into an Array

    Here's how I do it from a comma delimited text file:-


    Dim Array1(-1) as string, Array2(-1) as string, Array3(-1) as string

    Dim sr As New System.IO.StreamReader("C:\Test.txt")...
  31. Replies
    0
    Views
    470

    Multiple "locks" on a file?

    If I use a routine to open a file in read/write mode, but don't close it again until my code exits, then that file will be locked.

    Is there any way, that I can run multiple instance of my app, and...
  32. VS 2010 Re: Crypt32.dll CryptProtectData / CryptUnProtectData

    Yes - because I am creating RDP files and these are the API calls that the TS Client software uses to decrypt the password hashes.
  33. VS 2010 Crypt32.dll CryptProtectData / CryptUnProtectData

    Could anyone tell me how to use the CryptProtectData and CryptUnProtectData functions of crypt32.dll in a VB 2010 application?

    Thanks
  34. [2008] Is it possible to get list of usernames on Vista / XP

    Is it possible to get a list of usernames (as shown in Control Panel->Users) on the PC that my app is running on? If so, is it then possible to determine the type of account (i.e. Admin, Standard AND...
  35. Re: [2008] Setting button texts from array?

    I can't do that because FileToolStripMenuItem is obtained from s(0) so what I need to say is:-

    s(0).Text=s(1)

    But that doesn't work...
  36. Re: [2008] Setting button texts from array?

    Thanks for the reply. Is there a way to get this to work for Menu items as well?

    I can add
    FileToolStripMenuItem.Text="File" but if I use the code in the post above to set the text, I get an...
  37. [2008] Setting button texts from array?

    I have an array - call it test() for arguments sake.

    The contents of the array are:-

    test(1)="button1"
    test(2)="OK"
    test(3)="button2"
    test(4)="Cancel"

    What I want to do is take the first...
  38. Re: [2008] Localization from external file...

    I have NO idea on how to do that - I've never done anything with localization before...
  39. [2008] Localization from external file...

    I have an application that I have developed in English only. I have been asked by several users of this application if I can add some functionality for localization (basically, some of the users are...
  40. Re: [2008] Which is the best way to dynamically create a menu?

    Following on from this....

    Is it possible to return the index number of the selected item rather than the text?
Results 1 to 40 of 159
Page 1 of 4 1 2 3 4



Click Here to Expand Forum to Full Width