I want to know if anyone can show me how to change the size of the form in code. For example I have a form that I want to have the minimize and Maximize icons in. however I only want the Maximize button to allow the user to maximize the form to a specified size (not the full window).
Thanks...
Hi all I am really new to SQL, I normally use VB and C++. I need to know how to find out the starting date of the current month and the ending date of the current month. I noticed that there is a DATEADD function however I did not find any usefull information regarding how to use it. Any help...
Thanks for all the help,
I finally got it to work using
if (Key == 'j' || Key == 'J');
butthead MoveShip is a function that I created to move the pic around the screen.
I tried to use
if (Key == 'j')
picShip->Left = picShip->Left + 5;
But I get the same message as before Cannot convert string type to a double. really doesn't make any sense to me because if I use Key == 112 (Whcich I believe is the Ansi Equivalent it doesn't work either
butthead, I have seen your clock program and I like. I am interested in your code and would appreciate if you could send it to me. My email Address is Dharris57@houston.rr.com.
butthead, I considered a snooze button and decided that I would wait and see if anyone would really use it. I however have included a few revisions since my previous posts. I have added a tray icon, which seemed to help with the Application->Restore(); and a few other user enchancements.
I am trying to capture the Key that was pressed by the user. However I keep getting a mesage saying that it cannot convert a string type to a double. Here is my code. Any help is appreciated.
void __fastcall TfrmMain::MoveShip(TObject *Sender, char &Key)
{
if (Key ==...
I got my answer here is what I did
void __fastcall TfrmMain::ShowPosition(int VPos, int HPos,int lblNum)
{
TLabel *Labels[10];
Labels[0] = lblLabel1;
Labels[1] = lblLabel2;
Labels[2] = lblLabel3;
Labels[3] = lblLabel4;
Labels[4] = lblLabel5;
Labels[5] = lblLabel6;
Labels[6] = lblLabel7...
What I am trying to do is -- instead of writing
Label1->Caption = "UP";
Label2->Caption = "UP";
Label3->Caption = "UP";
Label4->Caption = "UP";
Label5->Caption = "UP";
Label6->Caption = "UP";
Label7->Caption = "UP"...
I need to know if it is possible to assign a value to a label using a variable. For example I would like to be able to create a function that will except an int and if that integer is 1 then the caption of Label1 can be assigned. here is my code
Thanks
void __fastcall...
I am trying to calculate the value of time remaining time between three variables. For example: If I have 32 hours and 30 minutes and that time was calculated at 12:00 PM and I want to know how much time it would take before I reach 40 hours. How do I do a date difference between 40 hours and...
I am trying to calculate the value of time remaining time between three variables. For example: If I have 32 hours and 30 minutes and that time was calculated at 12:00 PM and I want to know how much time it would take before I reach 40 hours. My problem is the I am not sure about the datetime...
I have found out how to do it here is the code for those who may have the same question
{
int Pos = lstNames->ItemIndex;
AnsiString Name = lstNames->Items->operator [](Pos);
int Comma = Name.Pos(",");
lblFName->Caption = Name.SubString(Comma+1,50);
lblLName->Caption =...
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.