Search:

Type: Posts; User: Poppa Mintin

Page 1 of 13 1 2 3 4

Search: Search took 0.23 seconds.

  1. Replies
    9
    Views
    297

    Re: StreamWriter in vb.net

    Hi Johan,

    You need to tell your ScreenWriter to write Lines 1 and 2 first... Then write Line3.

    This may involve reading Lines 1 and 2 first, e.g. 'read a line, write a line' (next) in a loop....
  2. Replies
    21
    Views
    666

    VS 2010 Re: Student Exam Analyser

    Always assuming the students are paying attention to their instructions.
  3. Replies
    21
    Views
    666

    VS 2010 Re: Student Exam Analyser

    A major problem with strings is that (For example) 'E' is NOT the same as 'e'.

    One way around that is to set all the correct answers to upper case, (or lower case) and compare them with: -...
  4. Replies
    21
    Views
    666

    VS 2010 Re: Student Exam Analyser

    Hi Priyenamishra,

    You will need to show us your code if we are to help.

    First, copy your code to the clipboard. Then come back to this post in VBForums, Visual Basic .NET
    Click the 'Reply'...
  5. Replies
    10
    Views
    553

    Re: Need help Please!

    It has been said that about 10% of programmers can actually go straight to writing code without writing out the problem first.
    It is also said that about 90% of those other programmers think that...
  6. Log-on problem with VirginMobile mobile (cell 'phone) app. for Virgin TV Controller.

    Hi,

    I've been struggling to log on to the app. 'Virgin TV Controller'.
    No matter what I do it will Not accept the correct email address Or the correct password.

    I see others have reported the...
  7. Replies
    10
    Views
    553

    Re: Need help Please!

    Hi,

    With regard to the part of your post quoted above, I would recommend obtaining a copy of: -
    Visual Basic .NET for complete beginners. by Ken Carney

    This is available simply by copying...
  8. Re: Object of type 'System.Windows.Data.Binding' cannot be converted to type

    Four days on and no answers to this one? That's unusual.
    Sadly I can't give a definitive answer, but usually when I'm confronted by "cannot be converted to type 'System.String'." I try to find...
  9. Re: [RESOLVED] Why is my PictureBox image not found ?

    Thanks guys,

    @ Passel,
    I think I did more or less what you said, the p'box tag held the index (i). When you spoke of 'Index' I thought you were talking about the control's Tabindex number on the...
  10. Re: [RESOLVED] Why is my PictureBox image not found ?

    Thanks Passel,

    That's very interesting, I reckon I discovered there can be (e.g.) two picture boxes with the same name, although I thought it was some kind of error not picked up by intellisense....
  11. Re: Why is my PictureBox image not found ?

    Hi y'all,

    Thanks all...
    My error again !

    Turns out that at some time whilst in the design mode, a Picturebox1 has been added. I only found it by opening the menu in Properties.
    I've deleted...
  12. Re: Why is my PictureBox image not found ?

    Thanks BB,

    I only mentioned the tags to be complete, and because Picturebox1.Tag is Nothing when it ought to be value '1'.

    The picture box tag is there to simplify the identity of boxes in a...
  13. [RESOLVED] Why is my PictureBox image not found ?

    Hi,

    I have 51 picture boxes on my form, every one has one of 53 images showing. Each Picturebox Tag has a value, and each Picturebox image Tag has a value, when I run this code I expect to clear...
  14. 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...
  15. 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...
  16. [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...
  17. Replies
    16
    Views
    585

    Re: Why does this not work ?

    Cheers tg, minor correction to get it to work.

    Pop
  18. Replies
    16
    Views
    585

    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...
  19. Replies
    6
    Views
    388

    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...
  20. Replies
    6
    Views
    388

    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...
  21. Replies
    6
    Views
    388

    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...
  22. Replies
    6
    Views
    388

    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
  23. Replies
    6
    Views
    388

    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...
  24. Replies
    13
    Views
    1,021

    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....
  25. Replies
    5
    Views
    420

    Re: Problem with random.

    Thanks guys,

    Looks like it's been cracked.
  26. Replies
    5
    Views
    420

    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...
  27. Replies
    5
    Views
    420

    [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)...
  28. Replies
    13
    Views
    1,021

    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...
  29. Replies
    13
    Views
    1,021

    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.
    ...
  30. Replies
    13
    Views
    1,021

    Re: Image tag not found.

    Not yet, but advice noted.

    Pop
  31. Replies
    13
    Views
    1,021

    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...
  32. Replies
    13
    Views
    1,021

    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...
  33. Replies
    13
    Views
    1,021

    [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...
  34. Thread: No Errors

    by Poppa Mintin
    Replies
    9
    Views
    1,193

    Re: No Errors

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


    Poppa
  35. Thread: No Errors

    by Poppa Mintin
    Replies
    9
    Views
    1,193

    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...
  36. Thread: No Errors

    by Poppa Mintin
    Replies
    9
    Views
    1,193

    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...
  37. Re: Why does my picturebox not take an image ?

    Oh bugger!

    I just added SizeMode as stretch and all is well !

    Poppa
  38. [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...
  39. 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...
  40. Re: Option Strict On disallows late binding.

    Thanks Delaney, That works.

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



Click Here to Expand Forum to Full Width