Search:

Type: Posts; User: Poppa Mintin

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. Re: Why is my subroutine not being called ?

    That's weird, I ran the app., it stopped at the breakpoint, I took a screenshot... stepped up to where the next step would call my subroutine, I took a screenshot... stepped into the sub' and this...
  2. Re: Why is my subroutine not being called ?

    Thanks John,

    At the time I thought you were right, I did that and it all stepped through, but I must've already done something by the time I received your answer.

    Now however, I have the same...
  3. [RESOLVED] Why is my subroutine not being called ?

    Hi,

    I have to re-write an application that's been running for years because it takes as its input text that I've copied from a website, the particular website has recently changed the format with...
  4. Replies
    16
    Views
    402

    Re: Why does this not work ?

    Cheers tg, minor correction to get it to work.

    Pop
  5. Replies
    16
    Views
    402

    Why does this not work ?

    Hi,

    I don't understand why this...
    If txt > Nothing And Not txt.Contains("omit") Then
    ...produces a runtime error 'txt was Nothing'.

    I get around it by...

    If txt > Nothing...
  6. Replies
    6
    Views
    281

    Re: Question WRT cursors

    Further to previous post.

    SWMBO didn't like the vanishing cursor, she prefers to follow what she wants to do next with the cursor, so I've made a compromise.

    In stead of hiding the cursor I now...
  7. Replies
    6
    Views
    281

    Re: Question WRT cursors

    OK, So I tried my idea, there's a drawback... both Cursor.Hide() and Cursor.Show() are in the code twice, which doesn't matter because Hide is Hide, and Show is Show, but if I only hide once but show...
  8. Replies
    6
    Views
    281

    Re: Question WRT cursors

    Thanks Si,

    Yes, I was thinking 'Cursor Position = Cursor Position + Me.Width'
    And then 'Cursor Position = Cursor Position - Me.Width'
    both obviously using 'proper code'.

    I reckon that would...
  9. Replies
    6
    Views
    281

    Re: Question WRT cursors

    Thanks Si,

    Yes, there are cursor options, 'Hide', 'Show' or 'Highlight'. I tried the 'Hide' option but that just never shows the cursor, sadly not what I want.

    Poppa
  10. Replies
    6
    Views
    281

    Question WRT cursors

    Hi,

    Not sure this is the correct forum for this question... However,

    I've just finished (for now) a project, a game of patience (solitaire) and offered it to one or two folks whom I thought...
  11. Replies
    13
    Views
    860

    Re: [RESOLVED] Image tag not found.

    Hi,

    This project is complete for now, I may add a 'Hall Of Fame' feature at some later date.

    For anyone interested enough there is a taste of the project as it stands at this OneDrive location....
  12. Replies
    5
    Views
    331

    Re: Problem with random.

    Thanks guys,

    Looks like it's been cracked.
  13. Replies
    5
    Views
    331

    Re: Problem with random.

    Thanks John,

    I do seem to've solved this particular problem by just changing the line...
    'ReadOnly deck As New List(Of Integer)' to 'Dim deck As New List(Of Integer)' and the project is working...
  14. Replies
    5
    Views
    331

    [RESOLVED] Problem with random.

    Hi,

    I'm trying to 'shuffle' a pack of playing cards.



    Private Sub Rand()
    Dim rng As New Random
    Dim deck = Enumerable.Range(1, 52).OrderBy(Function(n)...
  15. Replies
    13
    Views
    860

    Re: [RESOLVED] Image tag not found.

    Bit late responding to this, we've just moved house.

    As John says, yes, images do have a tag. If we just look at (say) PictureBox1.Image, all it tells us that it's a bitmap, nowhere does it give...
  16. Replies
    13
    Views
    860

    Re: Image tag not found.

    I added a 'Me.Refresh()' before the 'For one = 1 To 10', ran the project again, checked again and lo n' behold !
    Yes, I've already moved the image.

    Oh bother !

    Back to the drawing-board.
    ...
  17. Replies
    13
    Views
    860

    Re: Image tag not found.

    Not yet, but advice noted.

    Pop
  18. Replies
    13
    Views
    860

    Re: Image tag not found.

    Ok, I did that, .Image still says Nothing.
    I may have somewhere else to look now though... I changed 'For one = 1 To 10' to 'For one = 2 To 10' and tried again. PictureBox2 showed it's image tag...
  19. Replies
    13
    Views
    860

    Re: Image tag not found.

    That's what I thought.

    However, I put a breakpoint at 'Finder' line 5 and run the project. When it breaks at line 5 I single step to line 6 and the Local window tells me that 'box' contains...
  20. Replies
    13
    Views
    860

    [RESOLVED] Image tag not found.

    Hi,

    I can't find a reason why in function 'Finder' the pic'box isn't recognised, but function 'Primer' it's found just fine.

    Public Function Primer(sender As Object, e As System.EventArgs) As...
  21. Thread: No Errors

    by Poppa Mintin
    Replies
    9
    Views
    1,086

    Re: No Errors

    Thanks dday9, I'll add that to my snippets.


    Poppa
  22. Thread: No Errors

    by Poppa Mintin
    Replies
    9
    Views
    1,086

    Re: No Errors

    Thanks dday9,

    Yes, you're right, 'InfoForm.vb' was changed from the default 'Form1.vb' but in solution explorer it was still 'Form1.vb'.

    The form 'CardTable' was named that when I added it to...
  23. Thread: No Errors

    by Poppa Mintin
    Replies
    9
    Views
    1,086

    Re: No Errors

    Hi,

    It's happening again. I've tried dday9's solution, in fact I've tried everything under the 'Build' tab.
    Neither of the 'Code analysis' options appear to do anything, maybe there's somewhere...
  24. Re: Why does my picturebox not take an image ?

    Oh bugger!

    I just added SizeMode as stretch and all is well !

    Poppa
  25. [RESOLVED] Why does my picturebox not take an image ?

    Hi,

    I'm adding a row of pictureboxes to my form using this code (you can assume all variables have been properly declared)

    bxw = Me.Width \ 40 : bxh = CInt(bxw * 1.333)
    x = 10...
  26. Re: Option Strict On disallows late binding.

    Thanks John,

    Yeah, Delaney's solution works just fine.
    Yes I do need the name so that I can extract which of (currently) 10 boxes has been clicked.
    However, now that you've asked... I've...
  27. Re: Option Strict On disallows late binding.

    Thanks Delaney, That works.

    Poppa
  28. Option Strict On disallows late binding.

    Hi,

    In a subroutine I have:

    AddHandler box.Click, AddressOf Move
    I'm trying to read the name of the sender so that I can extract which (Picture) box has been clicked.

    Public...
  29. Replies
    8
    Views
    554

    Re: Multi-card 'Pick-up' ?

    Oh bother !

    You're right of course. Forgetting the basics now !

    Thanks John, dragging isn't my problem, I've used dragging in a few projects.
    My problem is how to drag a group of items, in...
  30. Replies
    8
    Views
    554

    Re: Multi-card 'Pick-up' ?

    Thanks John, Bit of a snag.

    When I tried to open the project, this popped up:

    So of course I clicked Continue...
    ...and this happened:


    Plus of course, I'm using Version 2019.
    Shame,...
  31. Replies
    8
    Views
    554

    Multi-card 'Pick-up' ?

    Hi,

    I'm considering programming a game of patience (solitaire), I've drawn my cards, and I don't expect any trouble placing 'em on the 'table', but I'm wondering about being able to pick up and...
  32. Replies
    1
    Views
    307

    Re: Split words by count

    Hi miceal01,

    Since no one has answered yet, and since it's most unusual for a question to remain unanswered for so long in this forum, probably because your question doesn't explain the problem...
  33. Replies
    21
    Views
    1,071

    Re: need help convert code and run on vb.net

    My code was much the same as that which you have except:

    Sub main()
    Try

    Dim w As Watermarker = New Watermarker("demo", "demo")
    Dim twm As TextWatermark = New...
  34. Replies
    21
    Views
    1,071

    Re: need help convert code and run on vb.net

    Oh ! I'm sorry, I must've posted the wrong list.

    Poppa
  35. Replies
    21
    Views
    1,071

    Re: need help convert code and run on vb.net

    Hi,

    I think I'd try this:
    Syntax
    Visual Basic (Declaration)
    Public Class InputImageFile _
    Implements IDisposable
    Examples
    The following example demonstrates usage of InputImageFile class....
  36. Replies
    2
    Views
    218

    Re: help string

    Hi miceal01,

    We may be able to help if you were to explain your problem.

    Poppa
  37. Re: bad reply from esp32 on rfcomm bluetooth

    Hi Tebron,

    I'm, surprised that you have had no answers to your question, in this forum questions are usually answered the same day.

    That said, to help you we need to see the relevant code......
  38. Replies
    5
    Views
    540

    Re: [RESOLVED] Rogue line on form.

    OK...

    Tip of the day...
    Very narrow cells in a TLP should not be left empty.
    I had to insert a 2px high panel in an empty 'gapping' row.

    When I was designing the form, some ten or so years...
  39. Replies
    5
    Views
    540

    Re: [RESOLVED] Rogue line on form.

    No body wants to know about errors in design.


    Poppa
  40. Replies
    5
    Views
    540

    Re: Rogue line on form.

    Hmmm....

    Isn't it always the way?

    Ask a question, find the answer before any answers are given !


    Poppa
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width