Hi All.
Does anyone know of a way to make stringgrid columns automatically re-size to the length of the longest string in the column. (like when you double click on the line between columns in excel).
Thanks,
British
Hi All.
Is there a way to tell if an application with the same name is already running before your program opens? i.e. if it is already running then you can close the new instance.
Thanks,
British
A similar sort of question. Is there a way to tell if an application with the same name is already running before your program opens? i.e. if it is already running then you can close the new instance.
Thanks Clive. What you said seems to have worked. I was trying to free one of the variables earlier on, and it was doing it again when the program closed.
When I use SM, it comes up with the same error message while I am trying to send the e-mail. It might be because I use Groupwise and not Outlook Express.
I have a program that I am sending an e-mail through using MAPI. The sending of the e-mails works fine, but when I close the program, it comes up with an error message saying:
Project Project1.exe raised exception class EAccessViolation with message 'Access violation at address 7649F877. Read...
Hi. I was wondering code programs run when the close other than that in the onclose event. My program runs fine, but it come up with an access violation when I close it. How could I prevent this?
Any help would be appreciated.
British
I would use the programs onkeypress and onkeydown event handlers. The onkeydown is generally used for unusual keys (ie not A-Z and numbers). In the event handler for onkeydown you can have code like:
if key = vk_return
then
showmessage('enter has been pressed.');
Onkeypress is...
Hi.
I have the following code to send an e-mail using the ShellExecute Procedure:
ShellExecute(Self.Handle,
nil,
'mailto:' +
'paubri@michaelhouse.org' +
'?Subject=Test Message Subject' +
'&Body=Test Message Body' +...
I tested this code out. It is not very efficient, but it'll work. You can play with it and find better ways to use it.
From the main form when you are showing the other form have code as follows:
procedure TForm1.Button1Click(Sender: TObject);
begin
SetCaptureControl(Form2);
//this sets...
Hi.
I have a program that I am trying to send e-mails through. I am using MAPI to send the message. I have the code as follows:
MAPIModule := LoadLibrary(PChar(MAPIDLL));
if MAPIModule=0
then
begin
Result := -1
end
else
begin
try
@SM :=...
Hi.
I was wondering whether there is a way for a program to delete itself after it is terminated. At the moment I am doing it through the 'RunOnce' registry entry, but this only delete the application when the computer is restarted.
Any ideas?
Thanks,
British
Hi everyone.
I have GMPrintSuite 2.61 which works with all delphi versions up to delphi 6. I have just got a copy of delphi 7 and I was wondering if anyone knew if there was an update of the program that will work with delphi 7 and if so where I can get it from.
Thanks,
British
Hi.
I've just started to use Python coming from Delphi 5. In delphi you have to declare all variables you are going use, but in Python this doesn't seem to be the case. Is it better to declare them so that the program knows what kind of variable they are or just assigning values to them...
The following code will bring up the shutdown dialog box:
procedure TForm1.Button1Click(Sender: TObject);
var
shell: Variant;
begin
shell := CreateOleObject('Shell.Application');
shell.ShutdownWindows;
end;
Remember to also add 'StdCtrls' and 'ComObj' to your uses.
British.
RSA public-key cryptosystem for both encryption and authentication, invented in 1977 by Ron Rivest, Adi Shamir, and Leonard Adleman.
The RSA algorithm works as follows. Take two large prime numbers, p and q, and find their product n = pq; n is called the modulus. Choose a number, e, less than n...
Hi all.
I have a Heart Rate Monitor that can connect to my computer through an infra-red connection that connects through the USB port. I was wondering if anyone knows how I could read from the monitor through a delphi application.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.