Search:

Type: Posts; User: amaru96

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Re: Connection string for SQL connection using windows authentication

    Thanks for clearing that up guys.
  2. Connection string for SQL connection using windows authentication

    Hi guys, I'm trying to connect to a SQL server using windows authentication but keep getting "Login failed for user xxx ". I should point out that the user I'm logged into the machine with is not the...
  3. Re: How to strip unwanted values from a string?

    hey mate, not sure if I'm doing something wrong, but I'm getting the below message appear.

    Overload resolution failed because no accessible 'join' is most specific for these arguments.
  4. How to strip unwanted values from a string?

    Hi guys, I need to do some string manipulation but not really sure how to go about it.

    I have a string that is read from a database that typically looks like the below:
    Windows Server 2003,...
  5. Re: Count the number of characters after a certain number of characters

    Cool thanks guys.
  6. Count the number of characters after a certain number of characters

    Hi guys, how would I go about counting the number of characters in a string after say, character number 7?

    For example, if my string is ABCDEFGHIJKLMNOP

    I want to count the number of characters...
  7. Re: Connection string syntax with TableAdapter

    Thanks mate, but where would I place that code?
  8. Connection string syntax with TableAdapter

    Hi guys, I am trying to use a variable for the path to my database but am not having much luck with the syntax.

    So I open my datasource and click on "Edit dataset with designer". I select the...
  9. Replies
    11
    Views
    5,355

    Re: Trying to sort datagridview by date column

    It was set to "system.string". I changed it to "System.DateTime" and now it sorts correctly! Thank you so much jmcilhinney! And to everyone that offered help.
  10. Replies
    11
    Views
    5,355

    Re: Trying to sort datagridview by date column

    Hey tech, that code I posed is attached to a button I was playing around with. I do not format or do anything with the data itself. As I said, I added a datasource, pointed it to my access DB and...
  11. Replies
    11
    Views
    5,355

    Re: Trying to sort datagridview by date column

    I don't have anything that deals with "sorting" - it's set to automatic. I click the header and it sorts....

    If it read the cell values as dates instead of strings, then I would expect that to...
  12. Replies
    11
    Views
    5,355

    Re: Trying to sort datagridview by date column

    The table columns within the DB are configured as data type: Date/Time. If I open the database I can sort those columns by "newest to oldest" or "oldest to newest" and it sorts correctly.
  13. Replies
    11
    Views
    5,355

    Re: Trying to sort datagridview by date column

    Hey mate, I am not adding columns programmatically, the columns, and data are directly bound to the database. I effectively added a datasource, pointed it to my access DB and then dragged it to my...
  14. Replies
    11
    Views
    5,355

    Trying to sort datagridview by date column

    Hey guys, I have a datagrid which is bound to an access database. The database and datagrid has 4 columns.

    The third and fourth columns contain dates. All the values are taken directly from the...
  15. Re: How to prevent the last column from being pulled away from the datagrid on resize

    OK, so setting the AutoSizeColumnsMode to "fill" does the trick.
  16. How to prevent the last column from being pulled away from the datagrid on resize

    Hey guys, I have a datagrid with 5 columns. All columns are resizable except the last one. The problem I'm having is that when you shrink one of the columns it drags the last column away from the...
  17. Replies
    2
    Views
    1,944

    Re: Tick checkbox on selected rows in datagrid

    Thanks mate, that worked. Also clears things up for my understanding.
  18. Replies
    2
    Views
    1,944

    Tick checkbox on selected rows in datagrid

    Hey guys, I've got a datagrid which has 9 columns and typically contains anywhere between 10 to 50 rows. The last column is a checkbox which allows the user to tag that row for later use.

    What I'd...
  19. Get list of installed windows updates from remote machine

    Hi guys, is there a way to get a list of installed Windows updates on a remote machine?

    The below powershell code does the trick but don't know if there's a way to do this within VB?
    ...
  20. Replies
    0
    Views
    2,160

    Animated gif in DataGridView

    Hi guys, I have a datagrid with 5 columns, the last column is an unbound image column. I'd like to show an animated gif in this column but it seems that the standard imagecolumn doesnt handle...
  21. Re: Launch "Create Task" and pre-populate some fields

    OK, so I got it going using the below code - might be helpful for someone out there....


    Using ts As TaskService = New TaskService
    ' Create a new task definition and assign...
  22. Launch "Create Task" and pre-populate some fields

    Hi guys, is there a way to launch the Task Scheduler "Create Task" window and have some of the fields pre-populated?

    So I'd like to be able to have a button that says "Schedule Job", which then...
  23. Re: Datagrid to keep selected row and position after refresh

    By refresh I mean rebinding the datasource.

    As for my problem, I managed to sort it out using a try catch (maybe not the best or most elegant, but does the job)

    And for the scroll position I...
  24. Datagrid to keep selected row and position after refresh

    Hi guys, I have a datagrid which starts off blank and slowly gets populated as processes execute. It also refreshes every 5 seconds using the timer.

    The problem I have is, after it refreshes it...
  25. Replies
    2
    Views
    1,046

    Re: Prevent user changing checkbox in datagrid

    Thanks mate, works perfectly!
  26. Replies
    2
    Views
    1,046

    Prevent user changing checkbox in datagrid

    Hi guys, I have an unbound datagrid with 3 columns; Name, Location and checkbox.

    What I'd like to do is prevent the checkbox from being checked if the value in the "Location" cell (of the same...
  27. Re: Read remote registry with alternate credentials

    For anyone else that may be interested, the below code allows you to do it.


    Dim tokenHandle As IntPtr
    Dim userName As String = "username"
    Dim password As String = "password"
    ...
  28. Read remote registry with alternate credentials

    Hi guys, I'm trying to read a value in the registry from a remote computer. The problem is that I need to pass alternate credentials from my own, and have no idea how to do that.

    The below code...
  29. Re: Prevent adding duplicate values in a datagridview

    Yep, correct. A message stating that "John" already exists would be great.
  30. Re: Prevent adding duplicate values in a datagridview

    Name is their first name (ie. John, Mark...).

    Which list are you referring to? DG1 or DG2? I can add the same name multiple times - but this is what I want to prevent. Once I add the names to DG2,...
  31. Re: Prevent adding duplicate values in a datagridview

    Hi, DG1 has 4 columns; name, surname, location and checkbox. DG2 only has 1 column; name.

    I mark checkboxes against the names I'm interested in and the above code copies only the first column...
  32. Prevent adding duplicate values in a datagridview

    Hi guys, I have 2 datagridviews, the first is bound to a DB and the second is unbound.

    I use the below code to add the rows with a checkbox from DG1 to DG2, however I need to prevent it from...
  33. Re: Copy records from table1 and add them to table2

    How embarrassing, you're right, the last row was blank! Oops, but thanks!
  34. Re: Copy records from table1 and add them to table2

    OK, so using the below code I avoid the primary key issue (not sure why it works now as I tried it before, maybe had a typo somewhere). Anyway, I'm still getting that last empty row. How can I fix...
  35. Re: Copy records from table1 and add them to table2

    Yep, that is the reason I'm getting that error. If I remove the primary key from that table it works, but the ID numbers have duplicate values and it seems it's also copied the last empty row of...
  36. Re: Copy records from table1 and add them to table2

    OK, so I made some progress and got the records from table1 into table2. However, I'm now getting an error when I run it a second time. And I think it has to do with the automatic ID column.

    How...
  37. Copy records from table1 and add them to table2

    Hi guys, I have an access database with 2 tables. Both tables have the same fields, except that table1 gets wiped every time the program starts.

    So I need to have all the records from table1 added...
  38. Re: How to automatically rebind/refresh datagridview when datasource gets updated

    Leary, thanks for the timer tick event hint, that might do the trick. Will give it a try.

    Paul, FileSystemWatcher sounds promising too. Thanks for the suggestion.
  39. How to automatically rebind/refresh datagridview when datasource gets updated

    Hi guys, I'm still quite new to VB and programming in general so need some help.

    I have a datagridview which is bound to an access DB. The access DB is updated by another program and I'd like to...
  40. Replies
    5
    Views
    2,020

    Re: Export from datagridview only checked items

    Perfect! Thanks for all your help Kevin!
Results 1 to 40 of 52
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width