Programming and Computer Science

Welcome to the portal about Programming and Computer Science.
 

New Topics

Cordova: Close App

I would like to close my Cordova App via code (for example when a user clicks a button or the like). Is there a command for this that I can...

Question | 1 Answer

Delphi: Format Numeric Output with 2 Decimal Places

Hello community Please lend a hand :) I have this line : Memo10.Text := FloatToStr(round(Memo29.Value)) + '$'; This results is rounded : 25...

Open Question | 1 Answer

Delphi Error with Form.Hide and Form.Show: This Form of Method Call only allowed for Class Methods

I am using 2 forms and I want one to show up while the current one hides. I used the code: Form1.Hide; Form2.Show; I then get this error: This...

Open Question | 1 Answer

Change Minimum API Level of Android Studio Project

When creating a new project in Android Studio, you can set the Minimum API Level for the project quite easily. However, how can I change the Minimum...

Question | 1 Answer

Delphi: Bringing another Application's Window to Foreground when minimized

I am trying to show another Application's Window that is minimized to the taskbar. I have been using the SHOWWINDOW and SETFOREGROUNDWINDOW...

Open Question | 1 Answer

Delphi: Showing another application window that is minimized to task bar

I am trying to show another Application Window that is minimized to the taskbar. I have been using the SHOWWINDOW and SETFOREGROUNDWINDOW commands...

Open Question | 1 Answer

New Answers and Comments

Guest: Thank you! You helped me a lot with this answer!! It was...

Question | Lazarus: Program without GUI - Many WSRegister Errors

Delphian: Then it's probably something else. For example, have you forgotten to set KeyPreview to...

Question | Delphi: Function keys like F1, F2 and F3 do not work in FormKeyDown event

Guest: With Delphi Sydney this is not an option: F1 is also ignored...

Question | Delphi: Function keys like F1, F2 and F3 do not work in FormKeyDown event

Stefan Trost: You can simply end your app with the following line of code:...

Question | Cordova: Close App

Delphian: There are many ways for doing that. One way is to use the function FormatFloat. You can rewrite your code to: Memo10.Text := FormatFloat('0.00',...

Question | Delphi: Format Numeric Output with 2 Decimal Places

Guest: Thanks for your answer, this is working in my code. Hope it is working for other people,...

Question | Delphi: Loading JPEG image in TImage does not work: Exception EInvalidGraphic: Unknown picture file extension (.jpg)