Click here to Skip to main content
15,885,143 members

Comments by Gary Heath (Top 122 by date)

Gary Heath 24-Nov-20 10:02am View    
Cheers Ralf, I had to Google how to use the WindowsState option but by coding it like this "Form1.WindowState = FormWindowState.Minimized", it works :-)
Gary Heath 24-Nov-20 7:51am View    
If I put "Form1.WindowState.Minimized" straight after the line "WordDoc = WordApp.Documents.Add(MusicFolder & MusicFile)" I get an error : "Expression is not a method" :-(
Gary Heath 24-Nov-20 7:40am View    
Ralf ... Form1 has a ComboBox that is loaded with 3 options for the user, (1) Open an existing file, (2) Create a new Portrait File, (3) Create a new Landscape File. Form2 opens if option 2 or 3 is chosen.

Form2 just contains a TextBox for the user to enter the name of his Artist or Band and the code I have supplied is the Code that sits behind Form2. Form3 is an Error box so can be ignored.

If option 2 or 3 is selected to create a new document, I create a new Word document in the Orientation he has requested and open it for him to enter data ... this all worked fine when I was opening an Excel file, I have just realised, but now I have switched it to a Word file, Form1 pops up in front of Word and that is all I want to prevent.

This is just a small program for an old man who has brain damage I am trying to make it easy for him to do what he wants to do, it's so frustratingly annoying to run into such a stupid problem when it's basically finished !!!

I think I looked at WindowState yesterday, but I may not have, there are so many thousands of options and combinations I may be mistaken ... I'll look at it again now ...
Gary Heath 24-Nov-20 5:57am View    
I can only find SetTopLevel and if I set that to False I lose visibility of the Form completely !!
Gary Heath 25-Jan-18 8:32am View    
Well spotted CHill60 ... I knew it had to be something simple / stupid but I've looked at it for 2 days straight and couldn't see it !!! Thank you, doh, I feel a right Klutz now !!!