dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Mark Agius

Page 1 of 4 1 2 3 4

Search: Search took 0.23 seconds.

  1. Replies
    5
    Views
    1,611

    Re: filesize() dose not count line-feeds.

    I posted it and got a 'page not found' error. Posted again and it added 3 posts!
    I've written and uploaded a test page at http://markagius.co.uk/tempfiles/test_01/filesizetest002.php.

    On my PC it...
  2. Replies
    5
    Views
    1,611

    Re: filesize() dose not count line-feeds.

    I am using PHP version 5.2.9 (Linux cpanel8.uk2.net 2.6.9-101.ELhugemem #1 SMP Fri May 27 19:07:01 EDT 2011 i686)
    Which version are you using?

    Perhaps this bug only affects some versions?

    Some...
  3. Replies
    5
    Views
    1,611

    Re: filesize() dose not count line-feeds.

    To fix this bug and return the file size use the following code that;
    1: Reads the number of characters in the file with filesize(),
    2: Reads the number of lines with count()
    and returns...
  4. Replies
    5
    Views
    1,611

    filesize() dose not count line-feeds.

    Say I have a file with the following data:



    ( = a new line)
    There are 10 characters on all 4 lines plus a new line on the first 3 lines.
    10 x 4 lines = 40 characters/bytes
    + 3 new lines...
  5. Replies
    4
    Views
    7,235

    Re: Webbrowser scale and print content

    I too have been trying to scale the WebBrowser display.
    I am still trying to work out the values, but the following will change the scale.

    I can only get this to display at one biger size....
  6. Replies
    13
    Views
    12,144

    Re: Check HTML version with Java script

    So what is a HTML file with out any CSS, STYLE or CLASS tags?
    Sounds like a text file with the wrong file extent.
    I would love to see some HTML5 code that dosen't use CSS.
  7. Replies
    13
    Views
    12,144

    Re: Check HTML version with Java script

    Just checked with Safari 5.0.2 (7533.18.5).

    As you can see from the following code, it fails when changing the inner border shape of an image from a standard square.
    With Internet Explorer it's...
  8. Replies
    13
    Views
    12,144

    Re: Check HTML version with Java script

    Netscape was sold to AOL who then ended the program.
    (AOL's browser is still built on Internet Explorer)
    Some of the ex-Netscape employers then started SeaMonkey which is built on Netscape.
    So you...
  9. Replies
    13
    Views
    12,144

    Re: Check HTML version with Java script

    Sorry they don't all support it.
    If you are using Netscape 3.0 then it won't!
    Most new versions do, which was what I was trying to check.
    Although some say they use HTML5 don't fully support it or...
  10. Replies
    13
    Views
    12,144

    Re: Check HTML version with Java script

    This post was started in 2009, but as Internet Explorer 9 beta was out this year
    here is a way to check the HTML type with IE.


    <!--[if gte IE9]>
    <SCRIPT LANGUAGE="JavaScript">
    // IE 9 or...
  11. Replies
    4
    Views
    5,456

    Re: Visual basic, web controll and Windows 7.

    MSFlexGrid now works.
    Must have tried it in Windows 7 mode.
    Sorry for my last line and thank you for your help.
  12. Replies
    4
    Views
    5,456

    Re: Visual basic, web controll and Windows 7.

    I was running it as administrator, but not as Windows XP mode.
    Set to Windows XP (Service pack 3) and can load code in to Visual Basic.

    Could not use the 'CommonDialog' component so installed 'VB...
  13. Replies
    4
    Views
    5,456

    Visual basic, web controll and Windows 7.

    Visual basic, web controll and Windows 7.

    I now have a Windows 7 pc (64 bit version) and have installed Visual Basic 5. (Enterprise edition)
    I can run programs compiled with Windows XP on the...
  14. Replies
    4
    Views
    2,231

    Re: Load and run a program from Visual Basic.

    Thank you dglienna and HanneSThEGreaT
    Your code works and only one line.


    Dim file as string
    file = "C:\Thankyou.txt"
    Call Shell ("rundll32.exe shell32.dll,Control_RunDLL " + file)
    :)
  15. Replies
    4
    Views
    2,231

    Load and run a program from Visual Basic.

    I am trying to run;
    Environ$("SystemRoot") + "\system32\inetcpl.cpl"
    (C:\WINDOWS\system32\inetcpl.cpl)
    and
    Environ$("SystemRoot") + "\system32\firewall.cpl"
    (C:\WINDOWS\system32\firewall.cpl)
    ...
  16. Replies
    13
    Views
    12,144

    Re: Check HTML version with Java script

    I've written the following.
    Hope it works but not 100% sure yet.
    Let me know if it works or not with your PC and browser.

    It returns the first number after the browser code name in the...
  17. Replies
    13
    Views
    12,144

    Check HTML version with Java script

    Hi.

    Now HTML5 is comming out, is there any way to check with script what type of HTML version the browser is using.

    Eg.
    <SCRIPT language="JavaScript">
    <!--

    var htmlVersion = ???????????
  18. Replies
    2
    Views
    1,358

    Re: Icon path from registry

    So a .txt file is txtfile
    a .htm or .html file is htmlfile

    HKEY_CLASSES_ROOT\htmlfile\DefaultIcon = "%1"
    HKEY_CLASSES_ROOT\txtfile\DefaultIcon = %SystemRoot%\system32\shell32.dll,-152

    So...
  19. Re: Getting the Returnvalue of an application started from VB

    If you don't want to use On Error Goto YourErrorCode
    to check for crash.
    d will return the following value.

    Private Sub Command1_Click()
    Dim d As Long
    d = ShellExecute(Me.hwnd, "Open",...
  20. Replies
    9
    Views
    1,004

    Re: TextBox events

    If you are only entering numbers into the textbox then
    have you got some code to check that the user is entering a number.

    Then VAL("0"), VAL("1"), VAL("2"), VAL("3"), VAL("3.1415")
    are positive...
  21. Re: Check if the project my ActiveX is in is compiled.

    Thanks for the Microsoft web page link.
    I missed this one when I did a search.

    It seams that I will have to use WizBang module (See post #3 above)
    to get parent filename and see if it is the VB...
  22. Re: Check if the project my ActiveX is in is compiled.

    I have tested your code and it works if you want to check the program it is in.
    But will always return FALSE if the parent program is running in the IDE or compiled,
    as the ActiveX code will...
  23. Check if the project my ActiveX is in is compiled.

    Check if the project my ActiveX is in is compiled or not. :confused:

    I an creating an ActiveX (ocx) control and want it to check if
    the parent program this control is in is compiled or not.

    ...
  24. Get CabinetWClass handle from SysListView32 handle.

    Get CabinetWClass handle from SysListView32 handle.
    or how to get the path from a SysListView32 window.

    I am trying to get the directory path from any Explorer window under the mouse pointer.
    I...
  25. Re: Copying big files over 4GBytes with the percentage of the copy display.

    I've clicked menu on my E: hard drive icon in the 'My Computer' and clicked on Format.
    This listed 'NTFS' as the only type of filing system format allowed.
    So I thought that my drive was NTFS.

    I...
Results 1 to 25 of 87
Page 1 of 4 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)