Search:

Type: Posts; User: [BOOM]Headshot

Page 1 of 3 1 2 3

Search: Search took 0.10 seconds.

  1. Re: Best way to make an Action List (Task? List?)

    Found the solution


    Dim tasklist As New List(Of Task)

    tasklist.Add(New Task(Sub() FirstJob()))
    tasklist.Add(New Task(Sub() SecondJob()))
    tasklist.Add(New Task(Sub() ThirdJob()))

    Then I...
  2. Best way to make an Action List (Task? List?)

    I'm looking for a way to complete a list of actions in the order I want.

    I thought about using a list(of task) but not sure the best way to do this... I'm making an Active directory cleanup...
  3. Re: Iterate through list(of string)

    I went with the Boolean value, cannot believe I didn't think of that lol.

    Thanks!
  4. [RESOLVED] Iterate through list(of string)

    I know I can iterate though a list of strings in this fashion..


    If md5filestrings.Contains(hashstring) Then
    TextBox2.AppendText("Hash matches" & Environment.NewLine)
    Else
    ...
  5. Re: Needing help on how to do a Try Catch Block...

    Something like this?


    Try
    If zip = Nothing Then
    Throw New DivideByZeroException()
    Exit Sub
    Else
    'Do something here,...
  6. Re: Looping through datagridview rows, to check for checked rows.

    Cannot believe I didn't think of that,
    asset_masterdatagridview.endedit was all I needed for anybody else wondering.

    Thanks!
  7. [RESOLVED] Looping through datagridview rows, to check for checked rows.

    So, I have a datagridview and the first column, is checkboxes... users can select multiple rows... if I select 2 rows, one of them shows up, but the first one I select never works. If I select a row,...
  8. Replies
    5
    Views
    795

    Parsing strings problem...

    Question...

    I have an inventory application, that has update stamps. Everything works perfectly... however I'm trying to change the update stamps from one format to another..

    Example..
    ...
  9. Re: calculating % as I iterate though datagridview rows...

    Thanks for the help, I'm currently using this to extract the whole number vs people complaining about seeing decimals.


    Dim int As Integer = CInt(Decimal.Truncate((dgvindex + 1) / dgvrowcount *...
  10. calculating % as I iterate though datagridview rows...

    I'm sure i'm doing this incorrectly, and having a brain fart atm... can somebody tell me why this isn't working? Sorry for asking such a dumb question....having a bad day apparently.


    Dim...
  11. Replies
    9
    Views
    1,923

    Re: Richtextbox searching.... extended

    Thanks Edgemeal, that works PERFECTLY. The only issue with it, is it only finds the first instance of it, but I need to find all of them, if they exist. That finds the first one no problem, but...
  12. Replies
    9
    Views
    1,923

    Re: Richtextbox searching.... extended

    No, read my last post. I only want


    160211 17:37:10 698 Quit
    699 Quit
    700 Quit
    160211 17:37:11 701 Connect radmin@alpc-6905.joi.johnsonoutdoors.com on asset_inventory
    701...
  13. Replies
    9
    Views
    1,923

    Re: Richtextbox searching.... extended

    This is the full log file, this is whats happening when I use your suggestion above, with the corrections.



    160211 17:37:10 698 Quit
    699 Quit
    700 Quit
    160211 17:37:11 701...
  14. Replies
    9
    Views
    1,923

    Re: Richtextbox searching.... extended

    It's close, unless i'm using it incorrectly.


    highlightLineContaining(RichTextBox1, i, "INSERT INTO", "160211", Color.GreenYellow)


    Private Sub highlightLineContaining(rtb As...
  15. Replies
    9
    Views
    1,923

    Richtextbox searching.... extended

    So I have a richtextbox that I'm using to fill with logs from my Linux MySQL query log. That works fine.

    I then search said box, for certain queries... that works fine, and the output is as...
  16. Re: Create computer account in Active Directory using certain credentials.

    Runas is not working properly. I will need to figure out how to make a LDAP connection string and do the commands once i'm connected.
  17. Re: Create computer account in Active Directory using certain credentials.

    I would still like to be able to get it done without messing with the .exe.

    Anybody have any ideas?


    *Public Shared Function GetDirectoryEntry() As DirectoryEntry
    * * * * Dim de As...
  18. Re: Create computer account in Active Directory using certain credentials.

    Ah... so something like...

    Process.Start("\\remotelocation\*.exe", "runas /user:domain\username")

    Either way, I may look into impersonation. Even then I would have to mess with the .exe, and...
  19. Re: Create computer account in Active Directory using certain credentials.

    I looked at impersonation, just not sure how to get it right. I tried to do it earlier today with no success. Crappy this is the only part I need to fix :(
  20. Re: Create computer account in Active Directory using certain credentials.

    Yep, I knew that part. Still, it's a click once application. I don't want them to be messing with a .exe.
  21. Re: Create computer account in Active Directory using certain credentials.

    It's a click once application, that's not really an option.
  22. Create computer account in Active Directory using certain credentials.

    Below is the code that works if I am logged into our windows network with an admin account.
    It does not work however, if I log into a normal users account. What would be the best way to accomplish...
  23. Replies
    4
    Views
    822

    Re: Listview and String problems...

    If I could figure out how to do this in a listbox I would lol, I only know listviews.

    Hell, I could settle for a richtextbox with groupnames bold and the users under them.

    Thanks :)
  24. Replies
    4
    Views
    822

    Listview and String problems...

    103721

    Ok..

    The code I have works, however... I have to use a messagebox to display all of the users from a single group. I'm trying to figure out how to add then to a string array and display...
  25. Replies
    1
    Views
    525

    Listview string removal?

    I would like to search through a listview with multiple colums, find a string in a certain column and remove it. Not the entire item just the string i'm looking for.

    Example: Removing "JOI\"
    ...
  26. Re: Application fails to install on other computers

    The same versions of outlook are not installed.

    Try an If then statement, pointing to different versions of the interop assembly versions... i.e. 12, and 14.
  27. Replies
    5
    Views
    797

    Re: Listview to access problems...

    Thanks for the help, ill put that in my code bank... it's much cleaner than mine :(

    I figured it out a different way



    Try
    For z As Integer = 0 To ListView1.Items.Count - 1...
  28. Replies
    5
    Views
    797

    Re: Listview to access problems...

    thats exactly what i'm having problems with ^, still trying to figure it out.
  29. Replies
    5
    Views
    797

    Re: Listview to access problems...

    Update: Kind of...


    Try
    For Each listviewitem In ListView1.Items
    messagebox.show(listviewitem.tostring)
    ACCDB()
    Next
    Catch ex As...
  30. Replies
    5
    Views
    797

    Listview to access problems...

    I have an inventory scanner I have made...

    So it has 14 columns, and the amount of items range depending on which OU I scan in AD.

    Basically lets say it has 70 computers in the list... It will...
  31. Replies
    1
    Views
    450

    Listview search for duplicates

    Ok, I currently have a listview which holds ACL security for each folder i'm searching for....


    This listview has 8 columns, which are added progromatically like so...


    ListView1.View =...
  32. Replies
    5
    Views
    1,021

    VS 2010 Re: How to compare records in a function

    does anybody at least know where to start? Or can give me hints on what to lookup? :(

    I'm not looking for somebody to do the work for me, i'm looking for some help in the correct direction.
  33. Replies
    5
    Views
    1,021

    VS 2010 Re: How to compare records in a function

    Well, I'm not a coder (it's a hobby of mine), i'm a system admin. Took me a while to get this far, after 2 weeks of googling. I've tried to create a string array and compare results 1 by 1, and It...
  34. Replies
    5
    Views
    1,021

    VS 2010 Re: How to compare records in a function

    What i'm trying to do is.... compare all of the folders and subfolders, and if all the ACL's match (if there the same) only show the first one, and not all the subfolders assosiated with it.

    This...
  35. Re: Using a listbox to copy items, I can't get this to work!

    Can we see some code you're trying? or even a picture? I'm having trouble picturing what your trying to do.
  36. Replies
    5
    Views
    1,021

    VS 2010 How to compare records in a function

    Ok, i'm currently in the process of writing an application for work purposes... its basically an ACL security scan on certain folders.

    here is a picture of what i'm doing.

    97399

    You click...
  37. Re: Richtextbox search and color change?

    Wow I feel stupid... thank you VERY much!!!! worked like a charm
  38. Richtextbox search and color change?

    Ok here is my problem, i've been trying at this all day...

    I have an application in which loads a directory structure into a richtextbox based on where you search

    \\joi\al\users\awiles...
  39. VS 2010 Re: How to make a Button start a Process on Task Manager

    System.Diagnostic.Process.Start("explorer.exe")
    Shell("explorer.exe")
  40. Help with a listview problem I am having... Ownerdraw fixed

    I wonder if there is a way to change the color of the column names... where it's gray. I would probably like to change it to a darrrrrk gray. I've googled the crap out of it, and I know how to...
Results 1 to 40 of 82
Page 1 of 3 1 2 3



Click Here to Expand Forum to Full Width