Search:

Type: Posts; User: foxter

Page 1 of 5 1 2 3 4

Search: Search took 0.05 seconds.

  1. Re: How to set up the proper For....Next loop

    Here is more or less explained how to do loops in VB6: http://www.vb6.us/tutorials/understanding-do-and-while-loops
  2. Re: MSFlexGrid - Overlaying Other Controls

    Spoo, .Redraw = False will be a lot faster than .Visible = False

    Private Declare Function GetTickCount Lib "kernel32" () As Long

    Private Sub Command1_Click()
    Dim startTime As Long, endTime As...
  3. Re: [RESOLVED] strange problem with MSHFlexGrid1.Clip

    Returns or sets the contents of the cells in the MSHFlexGrid's selected region.
    http://msdn.microsoft.com/en-us/library/aa239882(v=VS.60).aspx
  4. Re: strange problem with MSHFlexGrid1.Clip

    Oh boy, found it: http://support.microsoft.com/kb/223071
  5. [RESOLVED] strange problem with MSHFlexGrid1.Clip

    MSHFlexGrid1.Clip is empty when I manually select rows in MSHFlexGrid1. Seems really strange to me :ehh:

    Private Sub Command1_Click()
    'selecting desired rows with mouse and trying to copy...
  6. Re: simultaneously looping through set number of flexgrid rows

    Rather dirty attempt for a solution:

    Dim xx%, openx%, maxx%

    'xx holds the number of last process
    'openx holds the number of current processes
    'maxx is the maximum number of rows to process at...
  7. [RESOLVED] simultaneously looping through set number of flexgrid rows

    Fires up all rows at same time, which could take a lot of memory with thousands of rows:

    Private Sub Command1_Click()
    For i = 1 To MSHFlexGrid1.Rows - 1
    do_something i
    Next i...
  8. VB6 - How to run the program only if internet connection is present

    Add a module to your program, in project properties set Startup Object to "Sub Main", and copy/paste the following into your module:


    Option Explicit
    Private Const FLAG_ICC_FORCE_CONNECTION As...
  9. VB6 - mathematically crop an image (thumbnail theory)

    The goal is to mathematically crop the image if its bigger than a given width, and constrain its proportions. Just drop an Image control on your form, and add a nice looking picture to it.

    In...
  10. Replies
    5
    Views
    1,592

    Re: Base64 problem

    Hmm, may be you right about char sets. I will use DLL for now.
  11. Replies
    5
    Views
    1,592

    Re: Base64 problem

    Forgot to mention, it does work with Crypt32.dll, but not with pure VB6 code:


    Option Explicit
    'egl1044
    'WinXP or later
    Private Const CRYPT_STRING_BASE64 As Long = &H1&

    Private Declare...
  12. Replies
    5
    Views
    1,592

    [RESOLVED] Base64 problem

    I've wasted whole day today trying to figure out whats wrong with this, yet no luck. I have a base64 encoded picture. It perfectly converts back into a picture file when I convert it with PHP, yet...
  13. VB6 - SHDocVw.dll and WebBrowser control, different ways to load AJAX pages

    Today a lot of websites use AJAX to display content. Below are the 2 examples of how to load pages with AJAX, and how not to:

    1. Add reference to SHDocVw.dll, and a multiline Textbox to your form....
  14. Re: BUG: PictureBox Cannot be Made Transparent Using SetWindowLong

    I guess will have to go with UserControl for now. Yet will keep my eyes open as I know I've see the solution somewhere.
  15. [RESOLVED] BUG: PictureBox Cannot be Made Transparent Using SetWindowLong

    Howdy all!
    I havent posted in a long time, prefer more reading these days.

    I remember seeing someone post a working VB6 solution to this bug either here or elsewhere long time ago. I spent whole...
  16. Replies
    4
    Views
    635

    Re: send Ctrl-1 to another app

    Yes, i tried SendKeys, but I dont need the target app required to be in focus. I need to Ctrl-1 to a specific window defined. I'm not looking for the easiest solution, but for the right one.
    It...
  17. Replies
    4
    Views
    635

    Re: send Ctrl-1 to another app

    I heard there're problems with using SendKeys under Vista/Win7, and the target application must be focused. So I thought PostMessage would be the way to go.
  18. Replies
    4
    Views
    635

    send Ctrl-1 to another app

    Trying to simulate pressing combination of keys control + 1 (Ctrl-1). Cant seem to get it working, it only sends number 1 without Ctrl:


    Option Explicit

    Private Declare Function FindWindow Lib...
  19. Re: [SOLVED] How to make a frame or an image or a button draggable ?

    better imo:


    Private Sub Form_DragDrop(Source As Control, X As Single, Y As Single)
    Source.Top = Y - Source.Height / 2
    Source.Left = X - Source.Width / 2
    End Sub
  20. Replies
    3
    Views
    948

    Re: How to make richtextbox as transparent

    Sorry, couldnt resist :)
    http://www.google.com/search?hl=en&source=hp&q=vb6+transparent+richtextbox&aq=f&aqi=&oq=
  21. problem with placing form on top of other full-screen windows

    Well, we all know this puts your form on top of other windows:


    Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As...
  22. Replies
    5
    Views
    1,225

    Re: [Giving USD 5 !] Premium Link Generator

    eh, something smells like software piracy not too far from here.
  23. Replies
    6
    Views
    667

    Re: [RESOLVED] shuffle a string

    Yep, I already notice the problems with punctuation and line breakes. Any way around it?
  24. Replies
    6
    Views
    667

    Re: [RESOLVED] shuffle a string

    Yep, thank you :)
  25. Replies
    6
    Views
    667

    [RESOLVED] shuffle a string

    ' I get this:
    $input = "This is what it should look like"

    ' I need to shuffle the string into this:
    $output = "Tihs is waht it soluhd look lkie"


    Basically changing place of each letter...
  26. Replies
    4
    Views
    530

    Re: quick xml question

    Yep, my bad. Was my little mistake in code.
    Thank you.
  27. Replies
    4
    Views
    530

    Re: quick xml question

    Says something about "Object variable or With block variable not set".
  28. Replies
    4
    Views
    530

    [RESOLVED] quick xml question

    For Each objNode In objNodeList
    Set objSubNodeList = objNode.selectNodes("server")
    For Each objSubNode In objSubNodeList
    MSHFlexGrid1.TextMatrix(MSHFlexGrid1.Rows - 1,...
  29. Replies
    4
    Views
    15,648

    Re: windows-1251 to utf-8

    Problem with char encoding was caused by Winsock.bas, as all got sorted out correctly when i downloaded XML with Inet control. Go figure! I close this topic, thank you all for help :)
  30. Replies
    4
    Views
    15,648

    Re: windows-1251 to utf-8

    I've done some tests on this, and looks like i'm ready to dump MSXML parser and write my own to parse windows-1251 encoded XML. Here's what i've been doing:


    XML_file =...
  31. Re: strings, multiline, replace(), etc. odd problem

    Yep, I guess so.

    Thanks :)
  32. Replies
    4
    Views
    15,648

    [RESOLVED] windows-1251 to utf-8

    Is there a way to do it in VB6 like in PHP?


    $str = iconv('windows-1251', 'utf-8//IGNORE', $str);
  33. Re: strings, multiline, replace(), etc. odd problem

    Here's the one that gave me first error: http://www.blackhawksoftware.com/pad/!_-_$_Keep_Your_Privacy.xml
    And I think i found what's causing it,notice &apos; in <Char_Desc_2000> node:


    Keep Your...
  34. Re: strings, multiline, replace(), etc. odd problem

    100% positive. I'm building mySQL queries here, and got error regarding ' char.
    Here's a bigger chunk of code:


    XML_file = MSHFlexGrid1.TextMatrix(PageRow, 1)
    DoEvents
    XML_data =...
  35. [RESOLVED] strings, multiline, replace(), etc. odd problem

    XML_data = Replace(XML_data, Chr(13), "")
    XML_data = Replace(XML_data, Chr(10), "")
    XML_data = Replace(XML_data, vbCrLf, "")
    XML_data = Replace(XML_data, "\", "")
    XML_data = Replace(XML_data,...
  36. Replies
    3
    Views
    1,236

    Re: parse odd looking XML into flexgrid

    Everything needs to be parsed. My boss doesnt want to read through the XML tags. I thought about parsing it into the text box instead, but still it looks a bit confusing to me.
  37. Replies
    3
    Views
    1,236

    parse odd looking XML into flexgrid

    Example XML:


    <?xml version="1.0" encoding="UTF-8"?>





    <ALEXA VER="0.9" URL="adp.com/" HOME="0" AID="=">
  38. Replies
    17
    Views
    1,112

    Re: Full Screen form

    Didnt know that. :ehh: My bad.
  39. Replies
    17
    Views
    1,112

    Re: Full Screen form

    I doubt any programmer will help you here if you are downloading pirated copy of Visual Basic. Go to the store and buy it, its not that expensive .... bye bye :wave:
  40. Replies
    2
    Views
    563

    sorting flexgrid confusion

    With MSHFlexGrid1
    DoEvents
    .RowSel = .Row
    .Col = MSHFlexGrid1.MouseCol
    .Sort = flexSortGenericAscending
    ...
Results 1 to 40 of 187
Page 1 of 5 1 2 3 4



Click Here to Expand Forum to Full Width