Search results for query: *

  1. Poppa Mintin

    I have a problem with 'Resources'.

    Thanks John.
  2. Poppa Mintin

    I have a problem with 'Resources'.

    Not a bad guess, turns out I need: - :) Pop.
  3. Poppa Mintin

    I have a problem with 'Resources'.

    Yep... It works just fine. Can I do something similar with: - Private Sub Play(ByVal track As String) Dim Sound As MemoryStream Sound = DirectCast(My.Resources.ResourceManager.GetObject(track), MemoryStream) My.Computer.Audio.Play(Sound, AudioPlayMode.WaitToComplete)...
  4. Poppa Mintin

    I have a problem with 'Resources'.

    Yeah, I started a new project and just copied everything from the previous one, everything works ok now. I'm just going to try out John Mc's advice. I'm sure it'll work. Poppa.
  5. Poppa Mintin

    I have a problem with 'Resources'.

    Ah... The test project I was using I started several years ago, I just clear out what I don't need and build my test with what's left, adding what I need to for whatever I'm trialing. It could well be that that project was started before I realised I didn't have Option Strict on by default...
  6. Poppa Mintin

    I have a problem with 'Resources'.

    Hi, after using this form of declaration for many years... Private fred_1 As Image = My.Resources.ResourceManager.GetObject("Fred") Today I get an error message; - I find it odd that the above code was copied and pasted from a test project, which I've just finished working on, and which works...
  7. Poppa Mintin

    File.GIF not running in PictureBox.

    Thanks John, I'm sorry this reply is a bit tardy, I've had other issues. Using a background thread has done the trick. Poppa.
  8. Poppa Mintin

    File.GIF not running in PictureBox.

    Hi, I'm trying to run a .gif file while playing a tune. Imports System.IO Private Sub ShowPict(ByVal pic As String) PictureBox1.Image = My.Resources.ResourceManager.GetObject(pic) End Sub Private Sub NoPict() PictureBox1.Image = Nothing End Sub Private...
  9. Poppa Mintin

    selecting controls in designer

    Ok John H, That's a good idea, thanks for letting me know. Poppa.
  10. Poppa Mintin

    selecting controls in designer

    I'm sorry, I have to disagree, that just doesn't work. Ah, well, yes it works in the designer, but that's not what I asked. I was hoping to do it in the properties dialogue, where I have plenty of area to click. I've spent two days now clicking on every item of a bunch in the designer in order...
  11. Poppa Mintin

    selecting controls in designer

    Yes of course, but if you only want (say) labels when they're all mixed in with a load of (say) buttons a lasso ain't gonna help. Poppa.
  12. Poppa Mintin

    selecting controls in designer

    John, is there a way to select a whole bunch of the same control in order to change a parameter for each, without having to select each one individually ? I know I can see the list in the properties dialogue, but I can't find a way to select more than one item at a time. In the quoted incidence...
  13. Poppa Mintin

    Trying to disguise mouse entry highlighting

    Damn ! So I can !
  14. Poppa Mintin

    Trying to disguise mouse entry highlighting

    Hi, I'm using buttons as a textbox or label so that I can set the TextAlign to middle centre, something I can't do with other controls. Sadly though, it's a bit distracting when the button highlights as the cursor passes over it, especially for a user who has no reason to believe the button is...
  15. Poppa Mintin

    One form, several different programs ?

    Oh! ok, that sounds like an interesting new project. This'll take some time ! Thanks John. Poppa.
  16. Poppa Mintin

    One form, several different programs ?

    Hi, How should I go about writing (say) two different codes for the same one Form ? I guess I could just make two identical forms and write a code for each, then pick which one to use, but there's bound to be a better way. Poppa.
  17. Poppa Mintin

    I have a problem with backcolor.

    Ah ! OK... Thanks John. I disabled it because I didn't want it to be clicked, but... Thinking about that, if there's no click subroutine it won't matter if it's clicked or not. Poppa.
  18. Poppa Mintin

    I have a problem with backcolor.

    ...of buttons on myForm1. Private Sub Buts() Dim num As Int32 = 0 Dim fnt As New System.Drawing.Font("Comic Sans MS", CInt(gap * 0.38)) For i = 1 To col For j = 1 To row num += 1 Dim butn As New Button With...
  19. Poppa Mintin

    What does "$W0 was Nothing." mean ?

    Oh dear... how silly ! I ought to've spotted that. The really silly thing is that I don't even need buttons, I only wanted a control that I can specify 'TextAlign = ContentAlignment.MiddleCenter'. I chose buttons, before I thought about using the margins to put the text in the centre of the...
  20. Poppa Mintin

    What does "$W0 was Nothing." mean ?

    Yeah, I realised my question was a bit vague and have been looking a bit closer. Yes, an unhandled exception is thrown, "System.NullReferenceException: 'Object reference not set to an instance of an object.'". Yes, that's the line. To the Watch Window I added 'but(num).name' and although 'nam'...
Back
Top