Search:

Type: Posts; User: Mc Brain

Page 1 of 13 1 2 3 4

Search: Search took 2.33 seconds.

  1. Re: How Do I Tell If My Application Is The Active One?

    The If GetActiveWindow <> 0 Then MsgBox "Application is Active" line should be in a button, form or whatever. It cannot be "placed" anywhere. Regards,
  2. Replies
    2
    Views
    558

    Re: Indexes in MDB with DBF

    Sorry, nerdangel. I quit that job almost 10 years ago. I can't recall whether I found a way out or not. Sorry.
  3. Replies
    4
    Views
    1,706

    Re: List Services

    Found it!! It was service.state. Thank you, Hack!!
  4. Replies
    4
    Views
    1,706

    Re: List Services

    So close!! How do I get to know if the service is running or stopped?
  5. Replies
    4
    Views
    1,706

    [RESOLVED] List Services

    I've been searching the forums and Internet and cannot find what I need. I want to list the services which are running on a machine. Actually, I don't need to list them all but some of them.

    I...
  6. Re: Input$(LOF(fileNo), fileNo) doesnt work!?!

    That's not possible. You should at least get an error message. I'm guessing you have some On Error Resume Next somewhere!
  7. Re: Input$(LOF(fileNo), fileNo) doesnt work!?!

    Try


    Dim Data As Variant

    Open PathToFile For Binary As #fileNo
    Data = String(FileLen(PathToFile), " ")
    Get #fileNo, , Data
    MsgBox Data
    Close #fileNo
  8. Re: Input$(LOF(fileNo), fileNo) doesnt work!?!

    My guess is that you should open it as Binary to be able to read the whole file. If the EOF character appears before you expected, the file won't be completely read but til this character. If your...
  9. Replies
    1
    Views
    462

    Re: SQL Question on 'DISTINCT'

    The DISTINCT statement works on every field you've include in your query. That's why you get a different recordcount. Have a look at this example



    empFirstName empMiddleName
    Michael ...
  10. Re: Input$(LOF(fileNo), fileNo) doesnt work!?!

    What type of file are you trying to open?
  11. Thread: IDE vs EXE

    by Mc Brain
    Replies
    9
    Views
    858

    Re: IDE vs EXE

    Found the solution. Got rid of MS Coolbar's OCX. My toolbars are fixed on the top of th usercontrol now :thumb:
  12. Thread: IDE vs EXE

    by Mc Brain
    Replies
    9
    Views
    858

    Re: IDE vs EXE

    I've found this article: http://www.developerfusion.co.uk/show/2929/2/ Which I thought it would be the answer for my problem. However, after implementing that solution, I'm still stuck. I have a...
  13. Thread: IDE vs EXE

    by Mc Brain
    Replies
    9
    Views
    858

    Re: IDE vs EXE

    The form is not held in memory. Im printing a list of loaded forms before and after unload them... and none gets printed once it's finish this task. However, the UC's control (which is held on...
  14. Thread: IDE vs EXE

    by Mc Brain
    Replies
    9
    Views
    858

    Re: IDE vs EXE

    I've even change the startup form. It's not longer the form itself but Sub Main.


    Sub Main()
    Dim fSudoku As frmSudoku

    Set fSudoku = New frmSudoku

    fSudoku.Show vbModal
  15. Thread: IDE vs EXE

    by Mc Brain
    Replies
    9
    Views
    858

    Re: IDE vs EXE

    But I'm doing "Unload Me", so the UC should be terminated.
  16. Thread: IDE vs EXE

    by Mc Brain
    Replies
    9
    Views
    858

    Re: IDE vs EXE

    There are usercontrols and/or classes. Shouldn't these events fire when the form it contains the usercontrol is unloaded? :confused:
  17. Thread: IDE vs EXE

    by Mc Brain
    Replies
    9
    Views
    858

    IDE vs EXE

    Can anybody explain me why the difference between this two logs:

    IDE
    Board UserControl_Paint
    ctlSudoku TB_ButtonClick
    Board UserControl_Terminate
    ctlSudoku ...
  18. Thread: form question

    by Mc Brain
    Replies
    8
    Views
    798

    Re: form question

    I've seen the strangest things you can imagine with VB6. It's not a big difference at all... and you'll be absolutely sure no glitch could fire the event again when it shouldn't. But... do it as you...
  19. Thread: form question

    by Mc Brain
    Replies
    8
    Views
    798

    Re: form question

    I would disable the timer first. If Form2 lasts too long to load... the timer might be fired again before it gets disabled.
  20. Replies
    6
    Views
    492

    Re: printing white

    As far as I know... inkjet printers cannot print white.
  21. Replies
    4
    Views
    674

    Re: Compare 3 values?

    Dim Max As Integer

    Max = -30000
    If Number1 > Max Then Max = Number1
    If Number2 > Max Then Max = Number2
    If Number3 > Max Then Max = Number3
  22. Re: How to close a modal form from calling form

    As far as I know, none of the previous loaded forms will respond to any event the user might do.
  23. Re: I can't get a modular level dynamic array to have something in the first element

    Why don't you try something like this:

    Dim myArr() As String

    Private Sub Form_Load()
    'ReDim myArr(0) As String
    'The above line was removed, so that the array has not any...
  24. Thread: string help

    by Mc Brain
    Replies
    2
    Views
    605

    Re: string help

    Try this:

    myStr = Mid$(myStr, 2)
    myStr = Left$(myStr, Len(myStr) - 1)
    myStr = Right$(String(17, "0") & myStr, 17)
  25. Replies
    4
    Views
    619

    Re: Adjust Web Page!

    Just move the webbrowser and resize it. Something like this:


    Private Sub HideOrShow()
    If Frame1.Visible Then
    WebBrowser1.Left = 1200
    WebBrowser1.Width = 2400
    Else
    ...
  26. Replies
    12
    Views
    879

    Re: Some kind of process bar

    Glad I could help. I might look for a neweer version of it. I'm not sure if I corrected or improved anything... but I most probably have done it.
  27. Re: exe still running after been closed?

    Here you have a thread to shed some light on you. You might learn some interesting things out of this thread.

    http://www.vbforums.com/showthread.php?t=334899&highlight=in+case
  28. Re: exe still running after been closed?

    This is what it's called "Memory leak". There are objects or even entire form(s) which were not unloaded from memory. You should never use the END instruction to finish your application. Be sure you...
  29. Replies
    12
    Views
    879

    Re: Some kind of process bar

    How about this?

    http://www.vbforums.com/showthread.php?t=121723&highlight=gradient
  30. Replies
    2
    Views
    489

    Re: Unwanted events

    It's not a solution. I need the event not to be trigger at all. This is because even I can override the event, the selected item might have been changed... and this is not a desired behaviour.
  31. Replies
    2
    Views
    489

    Unwanted events

    Can anyone help me with this? Run this proyect, click the Open button and move the second form so that the label is placed above the first's form's treeview. Double-Click on the label.... Why does...
  32. Replies
    11
    Views
    805

    Re: random numbers

    That won't guarantee with 100% of trust the proportions you need. If you use the random function, the numbers you'd get will be random. There's a big chance you get the proportions you need... but...
  33. Replies
    11
    Views
    805

    Re: random numbers

    But it cannot guarantee that the number "1" would appear 10% of the times.
  34. Replies
    11
    Views
    805

    Re: random numbers

    I'd go like this:


    Private Sub Form_Load()
    Dim i As Integer
    Dim j As Integer

    Dim tmp As Integer

    Dim MixCount As Integer
  35. Thread: Serial Port

    by Mc Brain
    Replies
    15
    Views
    3,491

    Re: Serial Port

    Yes, the key was the "RThreshold" and I had found it (almost at the same time you posted it) at http://www.programmers-corner.com/sourcecode/111.


    'enable the oncomm event for every reveived...
  36. Thread: Serial Port

    by Mc Brain
    Replies
    15
    Views
    3,491

    Re: Serial Port

    It seems I made it work.
  37. Thread: Serial Port

    by Mc Brain
    Replies
    15
    Views
    3,491

    Re: Serial Port

    The cable is Ok, and the firewall is not blocking since I receive these events on the receiver:

    comEvDSR: When I open the port on the sender to send a data out (twice)
    comEventBreak: When I close...
  38. Thread: Serial Port

    by Mc Brain
    Replies
    15
    Views
    3,491

    Re: Serial Port

    No. Handshaking = 0 comNone
  39. Thread: Serial Port

    by Mc Brain
    Replies
    15
    Views
    3,491

    Re: Serial Port

    On the receiver:


    Private Sub Form_Load()
    ' Use COM2.
    MSComm1.CommPort = 2
    ' 9600 baud, no parity, 8 data, and 1 stop bit.
    MSComm1.Settings = "9600,N,8,1"
    End Sub...
  40. Thread: Serial Port

    by Mc Brain
    Replies
    15
    Views
    3,491

    Re: Serial Port

    Nope, both firewalls are disabled and stil the OutBufferCount remains equals to zero. Any ideas?
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width