Search:

Type: Posts; User: pixelink

Page 1 of 5 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: ListBox - AddRange - Used to Work

    I must be getting tired.... I had a call wiping out the text after it was loaded.

    Sorry for all this.

    :)
  2. [RESOLVED] ListBox - AddRange - Used to Work

    Below is some code that worked perfectly fine in another one of my VB apps.

    Copy pasted the code.... and now the listbox doesn't populate even though there is 9 lines in the TXT file.

    Lines in...
  3. Re: DataGridView - Header Sort - Object note set to Instance (null)

    Fixed...

    I tweaked your code to...



    Dim row = dgrid1.CurrentRow
    If row Is Nothing Then
    Exit Sub
    End If
  4. Re: DataGridView - Header Sort - Object note set to Instance (null)

    So, I went to check my other app that uses the same DGV and sqlite... same thing.... Exception only happens in Debug mode.


    This is new to me, so how to I properly handle this.

    Even though it...
  5. Re: DataGridView - Header Sort - Object note set to Instance (null)

    That code you provided doesn't work.

    It is passing it altogether and the exception happens on this line


    'this is where I add data to text controls for viewing and editing
    cbCategory.Text =...
  6. Re: DataGridView - Header Sort - Object note set to Instance (null)

    Yes, in the debugger.

    As I already said... It is looking for a row index, but there is none.

    From Debugger



    I thought I am trying to handle the exception with the Try/Catch code... is...
  7. Re: DataGridView - Header Sort - Object note set to Instance (null)

    FYI... my SQL code that fetches and sorts my data before I click the column header (then get error)
    Getting and sorting the data in code works perfectly fine... it display in my DGV perfectly


    ...
  8. Re: DataGridView - Header Sort - Object note set to Instance (null)

    Update code... same error



    Private Sub dgrid1_SelectionChanged(sender As Object, e As EventArgs) Handles dgrid1.SelectionChanged

    Try
    Dim row As Integer =...
  9. Re: DataGridView - Header Sort - Object note set to Instance (null)

    What I don't understand is that I have a completely different app that doesn't throw this error.... and I copy/pasted the DGV control and code over to this project.
    I don't understand why that DGV...
  10. Re: DataGridView - Header Sort - Object note set to Instance (null)

    The data is already sorted and showing when I fetch it from the DB.

    But, when I click the header I want to resort it in the DGV view too

    This exception is only happening when I click a column...
  11. [RESOLVED] DataGridView - Header Sort - Object not set to Instance (null)

    I have data that I am loading from an SQLite DB.

    If I click on the header to sort, I get an Object not set to instance error.

    I used the below code to try and catch the null error, but it still...
  12. Re: What CTRL in .NET can display B-Code without parsing?

    I discovered that the web browser can.
  13. Replies
    15
    Views
    536

    Re: Coloring Text in Between Tags

    Ahh.... see it. That works perfectly... Thanks
  14. [RESOLVED] What CTRL in .NET can display B-Code without parsing?

    What CTRL in .NET can display B-Code without parsing?

    I have a DB that uses <p>, <b>, <i> (and their closing tags)

    Thanks
  15. Replies
    15
    Views
    536

    Re: Coloring Text in Between Tags

    Well... it does.... I doesn't color the tags, only the text in between
    So removing them from the Regex works.

    It doesn't work with the tags in the Regex, it colors the tags and text... only want...
  16. Replies
    15
    Views
    536

    Re: Coloring Text in Between Tags

    Actually... simple fix... I just removed the Tags...


    Dim MyRegex As New Regex("[HG]{1}\d+")

    Thanks... I am getting closer to this working
  17. Replies
    15
    Views
    536

    Re: Coloring Text in Between Tags

    Cool, this works to get the value. I may use that too.


    However, I just need to be able to color that value red too. as per the code using Regex with the tags (previous post)
  18. Replies
    15
    Views
    536

    Re: Coloring Text in Between Tags

    Great... closer.... except the tags are being colored to red too.
    I would like to just color the text between the tags red only.

    Thanks
  19. Replies
    15
    Views
    536

    Re: Coloring Text in Between Tags

    I noticed that the "M" is not declared... what Dim statement do I use for this.
    What is "M" in my for each loop supposed to be?
  20. Replies
    15
    Views
    536

    Re: Coloring Text in Between Tags

    Thanks for replying.

    Code block doesn't work.

    Debugging... never enters the for next loop. Completely skips it



    Dim MyRegex As New Regex("/<S/>/w{1}/d+/<//S/>")
    Dim MC As...
  21. Replies
    15
    Views
    536

    [RESOLVED] Coloring Text in Between Tags

    Hi,

    I know what Regex is, but I am not skilled in it.

    Using a Richtextbox

    All I need to do is color the text in between tags (these are not html tags) like this...

    <S>H430</S> or...
  22. Re: Multiple Spaces using Split String Method

    OKay... this is the fleshed out code that gives me what I need

    VB CODE (THAT WORKS)



    Dim txt As String = "Song of Solomon 2:1-10"

    Dim lastSpaceIndex1 = txt.LastIndexOf(" "c)
    Dim prefix =...
  23. Re: Multiple Spaces using Split String Method

    Would of never thought of that.

    I was able to return "Song of Solomon"

    I am still fleshing out the rest of the code.

    Thanks JMC for the tip

    @user0001 - Yes, I will look into this too...
  24. [SOLVED] Multiple Spaces using Split String Method

    Hi,
    I have an interesting task I am trying to figure out.
    I need to get a whole string even if it has one or two spaces

    Example:
    "Song of Solomon 2:1-5"
    "1 Peter 2:1-5"

    I need to be able to...
  25. Re: [SOLVED] Sqlite - Converting Str Variable to Integer Issue

    Cool.... thanks for your help :)
  26. Re: Sqlite - Converting Str Variable to Integer Issue

    Yeah, that may work too.

    I already also got it working (just before you posted) by converting the column of the DB itself to an integer and using this syntax.

    "select * from main WHERE...
  27. [SOLVED] Sqlite - Converting Str Variable to Integer Issue

    Hi.

    My Sqlite DB has a column that is String based.

    When I usually fetch data to sort I just CAST it as an INT and it works fine.

    Now, I need to fetch records from this String column as...
  28. Re: DataGridView - Get Selected Rows Data - Doesn't Process at All

    Got it....


    CStr(dgvRow.Cells(7).Value)


    Thanks for you help
  29. Re: DataGridView - Get Selected Rows Data - Doesn't Process at All

    Nope... get an error SelectedCells is not a member of dgvRow
    And I don't see or know what syntax to use to get the column of the column value of the selected row because I I usually know and use...
  30. Re: DataGridView - Get Selected Rows Data - Doesn't Process at All

    Cool... Setting SelecttionMode to full Row Select at least read the collection.

    However, it is only returning tha last value from the collection.

    So if 5 rows are selected it only returns the...
  31. DataGridView - Get Selected Rows Data - Doesn't Process at All

    Hi,

    I am simply trying to just fetch the column data of all the selected rows (by user)
    Then send each value (in a column) to an RTF textbox

    All the code examples I find all have variations of...
  32. Replies
    20
    Views
    989

    Re: Weird Screen Redraw Issue

    Okay... so it seems that I can close this thread for now.

    I have to run my app for a week or so and see if this issue pops up again.

    Thanks for everyone for your input.
    I greatly appreciate it.
  33. Replies
    20
    Views
    989

    Re: Weird Screen Redraw Issue

    Good tip... I did adapt it and it works fine.

    Thanks JMC
  34. Replies
    20
    Views
    989

    Re: Weird Screen Redraw Issue

    Yes, clone was a typo.
    Fixed it.

    And I did adapt the "Using" as per JMC

    Thanks for the tip.
  35. Replies
    20
    Views
    989

    Re: Weird Screen Redraw Issue

    And FYI...
    Here is the only code I use to load the records (in my test project too)

    It only cycles once... no re-occurrences, even after it has loaded on the screen.




    Private Sub...
  36. Replies
    20
    Views
    989

    Re: Weird Screen Redraw Issue

    Okay... this is strange.

    Woke up this morning... and booted up my PC.
    Ran my test project ("the clone").... and the menus worked perfectly.

    So, I ran my full version with everything... worked...
  37. Replies
    20
    Views
    989

    Re: Weird Screen Redraw Issue

    Yes on the first point... I just copied the project.

    So, I did what you suggested.

    Except i did it in stages.

    1) Removed all code except the code that loads the 31k records; leaving the menu...
  38. Replies
    20
    Views
    989

    Re: Weird Screen Redraw Issue

    Okay. Using a test copy.

    I commented out the code that loads the datagridview with 31k records.

    Menus work perfectly when I am on that tab (with empty datagridview)
    However, I do have a few...
  39. Replies
    20
    Views
    989

    Re: Weird Screen Redraw Issue

    I saw some info on stockexchange about double-buffering.... but that had to do with loading speed.

    Will double-buffering help?
    And how do I add double-buffering to all my datagridviews??
  40. Replies
    20
    Views
    989

    Re: Weird Screen Redraw Issue

    yeah... i was heading this way if i don't get more info
Results 1 to 40 of 181
Page 1 of 5 1 2 3 4



Click Here to Expand Forum to Full Width