Jump to content

Harut

Members
  • Posts

    5,721
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by Harut

  1. and that's what i'm saying... why name the topic 'soccer'?
  2. if anybody is interested, here is the code i used (based on a code someone else provided) created a separate class module named clsHandler with the following code... Public WithEvents m_TextBox As TextBox Private Sub m_TextBox_GotFocus() Call GotTextBoxFocus(m_TextBox) End Sub then created the following 2 public subs in a code module... Public Sub GotTextBoxFocus(ByRef txtBox As TextBox) txtBox.SelStart = 0 txtBox.SelLength = Len(txtBox.Text) End Sub Public Sub InitGotTextBoxFocus(frmForm As Form) Dim ctrl As Control Dim newHandler As clsHandler For Each ctrl In frmForm.Controls If TypeName(ctrl) = "TextBox" Then Set newHandler = New clsHandler Set newHandler.m_TextBox = ctrl arrHandler.Add newHandler End If Next ctrl End Sub then i call the InitGotTextBoxFocus sub from load event of each form passing the form as a param...
  3. yeah, but why the topic title 'soccer'?
  4. not too far... it ends around 2016...
  5. Harut

    What Is God?

    god did both... man ate the dog...
  6. that's all fine, but i'm not sure if i can add event handles during run-time... i'll check it out...
  7. i guess i'm just better off copy-pasting the gotfocus event for each textbox control...
  8. hmm... well, no way i'm creating a control array... i have some 100 text boxes already setup with descriptive names and 1000s of lines of code... turning them into control array is just too much hastle... hmm... hold on...
  9. when a text box gets the focus in the application, written in vb6, the text inside needs to be selected... it's very easy task to do... but... i have some 100 of them, if not more... and don't want to be writing an event for every single one of them... (even if that's just a one-line coding per event) is there any way to write an event and run it for all the text box controls in the project? thanks
  10. ok, thanks people... got it going... but i don't think i'm going to use it...
  11. actually, i was going by Sip's second post, where he said full anually or half semi-anually... i thought he made a mistake on the first post...
  12. monthly monthly 48000 4000 48000 4000 month 1 4000 4000 month 2 4000 4000 month 3 4000 4000 month 4 4000 4000 month 5 4000 4000 month 6 48500 4041.67 4000 month 7 4041.67 4000 month 8 4041.67 4000 month 9 4041.67 4000 month 10 4041.67 4000 month 11 4041.67 4000 month 12 49000 4083.33 49000 4083.33 month 13 4083.33 4083.33 month 14 4083.33 4083.33 month 15 4083.33 4083.33 month 16 4083.33 4083.33 month 17 4083.33 4083.33 month 18 49500 4125 4083.33 month 19 4125 4083.33 month 20 4125 4083.33 month 21 4125 4083.33 month 22 4125 4083.33 month 23 4125 4083.33 month 24 sum 97500 97000 50000 50000
  13. i didn't calculate 500 vs 2000, but for x/2 semi-anually vb x anually... basically, by the end of the year, your salary is the same, but during the second half of the year you have been paid with x/2 raise...
  14. if you're talking about my insurance premium, then i'll take the former...
  15. Harut

    Մտքեր

    oh god... why did you create humans such primitive beings...
  16. Harut

    Մտքեր

    Anahid, i'll appoint you as my public propagandist once i'm elected as the country's dictator...
  17. Harut

    Cookbook

    duq cholesterol uneq, dzez xash chi kareli... duq shat-shat havi bulyon uteq...
  18. Harut

    Irony Of Life ...

    i say, commit suicide, get over with it... that's what i did...
  19. actually, i was thinking the opposite of դժկամ [dzhkam] would be բարիացակամ [bariatsakam]... but now... i don't know...
×
×
  • Create New...