Search:

Type: Posts; User: masterkert3

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    1,540

    Re: Help converting VB6 type to c++ struct

    #include <string.h>
    #include <windows.h>
    struct DataTypeMult
    {
    std::string DataText //char* DataText
    BYTE Data[]
    long Result
    }
  2. Replies
    1
    Views
    474

    Re: C++ console app

    #include <iostream>

    using namespace std;

    int length;
    int width;
    int area;

    int main()
    {
  3. Replies
    0
    Views
    494

    Need some help with graphics

    So, I am using

    TextOutA(GetDC(myapp),300,300,TEXT("Hi"),2);
    inside a loop.

    When I Open task manager I see GDI objects going up very fast until it hits 10,000. When it hits 10k the application...
  4. Re: implimenting No as integer into a variable/control name

    Me.Controls("txtLine" & No).text = vbNullString
  5. Replies
    6
    Views
    1,215

    Re: Clickable Progress bar

    You can calculate the percentage off of it, can't help cause im not so familiar with the WMP control.
  6. Re: How do you remove a control you created at runtime?

    If you created a form via
    "Dim form2 as new form1"
    then use "set form2 = nothing"
  7. Replies
    6
    Views
    1,087

    Re: BackBuffer with picturebox

    I need to draw to form and I want to double buffer using a picturebox.
    The picturebox is in the form but it needs to be visible and the same size as the form?
    My form is fullscreen
  8. Replies
    6
    Views
    1,087

    Re: BackBuffer with picturebox

    Picturebox is visible but not the same size, if they would be the same size I wouldn't see the form.
  9. Replies
    6
    Views
    1,087

    BackBuffer with picturebox

    Hey folks

    How should I go about doing a backbuffer using a picture box?

    Right now I've tried this:



    private sub Picture1_paint()
    do all the Line() and Circle() functions here
  10. Re: [RESOLVED] Label = line 2 in a Textbox?

    Dim Temp()

    temp = split(text1.text,vbnewline)
    label1.caption = temp(1)


    should work,
  11. Replies
    4
    Views
    728

    Re: Msgbox variable by name

    ...


    I have a lot of variables and I don't want to create a huge select case statement.
    So when I put a variable name in the textbox it will msgbox the value of the variable.

    If I have:
  12. Replies
    4
    Views
    728

    Msgbox variable by name

    So, I got this code:


    Private Sub Command1_Click()
    Dim Text1Text
    Text1Text = Split(Text1.Text, " ")
    If Text1Text(0) = "msg" Then
    MsgVar Text1Text(1)
    Exit Sub
    ...
  13. Replies
    6
    Views
    567

    Re: How to click a button every 4 min ?

    Hmm....



    Timer1.interval = 60 * 4

    Private sub timer1_Timer()
    command1_click
    end sub
  14. Replies
    2
    Views
    3,546

    Making a memory scanner

    So I'm making a memory scanner again, got it mostly working but it's very slow..

    So far I've got this:



    Private Sub Command1_Click()
    ProgressBar1.Max = &H7FFFFFF - &H400000
    ...
  15. Re: Urgent, Math equation, Stuck :(

    It even worked for me when using integer(Maybe cause it's not a round number).

    You should revise your code a bit, maybe there's some other problem causing the error
  16. Replies
    3
    Views
    465

    Re: big use of memory...

    Loop automatically makes use of 100&#37; of CPU.
  17. Replies
    4
    Views
    527

    Re: how to make sub main?

    put a

    sub main
    ....
    end sub

    In a module.
  18. Replies
    1
    Views
    436

    Re: Random Number

    randomize
    randomNumber = int(rnd*4 + 1)
  19. Re: Run another EXE and wait for termination

    Well, this is 1 way:


    Shell "winmine"
    Do while findWindow(vbnullstring,"Minesweeper") = true
    loop
    msgbox "Window not found anymore."
  20. Replies
    9
    Views
    821

    Re: How do I add more time to my timers?!

    You can use GetTickCount API to do this:



    Public Declare Function GetTickCount Lib "kernel32" () As Long
    Dim Time1 as long,Time2 as long,Interval1 as long
    Time2 = gettickcount
    do
    Time1 =...
  21. Replies
    1
    Views
    1,380

    Re: If url contains text.

    if Instr(url,"/members/") then
    ....
  22. Replies
    3
    Views
    575

    Re: Random months

    Well,



    dim Months(11) as string

    months(0) = "January"
    months(1) = "February"
    months(2) = "March"
    months(3) = "April"
  23. Replies
    2
    Views
    432

    Re: Select 1 rendom item from listbox

    Dim A as integer
    A = rnd * list1.listcount
    text1.text = list1.list(A)


    Should pretty much do it.
  24. Replies
    13
    Views
    1,031

    Re: simple count, 1 2 3 4 5 6

    Change Timer1.interval to 2000.
  25. Re: Can I Dissable Internet Connection With VB?

    Shell "cmd /K ipconfig", vbNormalFocus

    That'll keep the cmd open.
  26. Re: Can I Dissable Internet Connection With VB?

    Ipconfig /release or Ipconfig /renew won't print anything.
  27. Re: Can I Dissable Internet Connection With VB?

    Why would you want to keep it up anyway?
  28. Replies
    7
    Views
    573

    Re: procedure too large

    You should make a .ini file and check it that way.
    Your code should be less then 100 lines and the .ini file would have those 3000 lines.
  29. Re: Can I Dissable Internet Connection With VB?

    Can't you execute ipconfig /release?
    That would work tho,

    Shell "IpConfig /release"


    And

    Shell "IpConfig /renew"
    To get the connection back.
  30. Replies
    11
    Views
    64,634

    Re: Terminate process by exe name

    Or, use the tskill.exe,


    Shell "tskill appnamehere.exe"
  31. Replies
    5
    Views
    684

    Re: Changing size of array

    Yeah I was using Dim MyArray(32) as string.
    Thanks all!
    resolved
  32. Replies
    5
    Views
    684

    [RESOLVED] Changing size of array

    I am using an array in loop and I need to change it's size to make the program use less memory resources.

    Redim only works 1 time as I tried it.
  33. Replies
    16
    Views
    6,440

    Re: My VB6 EXE compiled to 72MB! Too big?

    Does your program use any resources?
    And loads of .Gif files can become big file size too.
  34. Replies
    6
    Views
    798

    Re: Cant Load Flash Games

    Your flash version is too low.
    Install flash for INTERNET EXPLORER, because Mozilla FireFox's flash control is different from IE's flash control.
  35. Re: VB6 closes when I try to view code.

    Okay, so I reinstalled windows without a format, I got a msgbox saying SPTD1.56 or higher must be installed from Daemon Tools.
    Now VB6 works fine, I guess that was the problem :P
    RESOLVED
  36. Re: VB6 closes when I try to view code.

    I've done that, and I've disabled all add-ins.
    It works on another HDD on this computer tho.
    I've got 3 windows, on 2 of them VB6 doesn't work, I tried to think what I changed with them so I...
  37. Re: VB6 closes when I try to view code.

    If I open ANY project, new or existing one.


    Also, I just noticed it:
    when I click on Tool->Options it also displays the message, I think it has something to do with registry keys.
  38. Re: VB6 closes when I try to view code.

    XP 32 bit
    Yes
    Yes
  39. Re: VB6 closes when I try to view code.

    Nothing, now I got new HDD and installed windows on it still same problem.
  40. [RESOLVED] VB6 closes when I try to view code.

    Since last week I can't run Vb6, if I open any project then it will close with message "Visual Basic has encountered a problem and needs to close. We are sorry for the inconvenience."

    The same...
Results 1 to 40 of 158
Page 1 of 4 1 2 3 4



Click Here to Expand Forum to Full Width