Search found 81 matches

by bill-lancaster
Sunday 26th January 2020 8:45am
Forum: General
Topic: Help needed to create forms
Replies: 8
Views: 398

Re: Help needed to create forms

Yes, the code does the job well, I actually need to keep Form2 so:-
If cwin.Name = "FDocShow" Then cwin.Close
does the job
Thanks again
by bill-lancaster
Saturday 25th January 2020 3:35pm
Forum: General
Topic: Help needed to create forms
Replies: 8
Views: 398

Re: Help needed to create forms

Thank you cogier, that works nicely, however, I realise that I have a main form from which is opened a second form (Form2). New windows generated from Form2 don't close with hForm.Close. Have tried Application.MainWindow = Me and Application.MainWindow = fMain but the new forms don't close. Any ideas?
by bill-lancaster
Friday 24th January 2020 2:00pm
Forum: General
Topic: Help needed to create forms
Replies: 8
Views: 398

Re: Help needed to create forms

One solution is to create an array of forms, not very elegant because the number of forms possible is set at declaration.
It work though!
by bill-lancaster
Friday 24th January 2020 1:27pm
Forum: General
Topic: Help needed to create forms
Replies: 8
Views: 398

Re: Help needed to create forms

Thanks Stevedee, You're right, referencing the forms is the question. If a form call hForm is created (as per my example) then it can be destroyed with 'hForm.Close', but the code can create multiple forms and 'hForm.Close' closes only the first one created since the others won't have the same name....
by bill-lancaster
Friday 24th January 2020 12:35pm
Forum: General
Topic: Help needed to create forms
Replies: 8
Views: 398

Help needed to create forms

I have a project where I want to display information in one or more forms With hForm = New Form .Name = "xx" .X = 50 .Y = 50 .W = 200 .H = 200 .Caption = "new" .Show End With This code will create a number of new forms but they still exist after the project is closed, how can I close them when the p...
by bill-lancaster
Friday 06th December 2019 8:28am
Forum: General
Topic: Gridview column header alignment
Replies: 7
Views: 715

Re: Gridview column header alignment

Thank you very much, that's perfect
by bill-lancaster
Thursday 05th December 2019 7:40am
Forum: General
Topic: Gridview column header alignment
Replies: 7
Views: 715

Re: Gridview column header alignment

Thanks Got2BeFree, I hope I've not misunderstood your sugestion but my question is about columns.
If I change the alignment of any cell in a column, all the cells in that column are changed
by bill-lancaster
Wednesday 04th December 2019 3:45pm
Forum: General
Topic: Gridview column header alignment
Replies: 7
Views: 715

Gridview column header alignment

GridView.Rows[].TextAlign is a new feature in 3.14
Is it possible to have the text in a column header aligned center and have the column data aligned left?
by bill-lancaster
Friday 01st November 2019 5:38pm
Forum: General
Topic: picturebox vs imagview
Replies: 3
Views: 353

Re: picturebox vs imagview

Thanks for that, I'll go with picturebox.
I'll find out one way or another which file type are supported and report them here.
by bill-lancaster
Friday 01st November 2019 11:49am
Forum: General
Topic: picturebox vs imagview
Replies: 3
Views: 353

picturebox vs imagview

Two questions really,
1) What are the differences between these two controls?
2) What file types are supported?

I'm looking to display image/document files 'in-programme'.

Thank you

Gambas 3.14