Search:

Type: Posts; User: BeholderOf

Search: Search took 0.03 seconds.

  1. Thanks alot

    Thanks alot
  2. Sizing Textbox with form size ? [Resolved]

    I have a textbox and when i run my code it runs but not exact, the width is like 2 - 4 units off unless i subtract it manaully in code. Is there another method that is exact ?

    heres my current...
  3. Replies
    17
    Views
    1,188

    umm, i think there is a way to not show the...

    umm, i think there is a way to not show the dialog box but you might have to do some research on that, cause im not to famaliar with this api call.
  4. Replies
    17
    Views
    1,188

    you can put it in the form declarations if you...

    you can put it in the form declarations if you want.
  5. Replies
    17
    Views
    1,188

    Updated: Private Declare Function...

    Updated:


    Private Declare Function SHEmptyRecycleBin Lib "shell32.dll" Alias "SHEmptyRecycleBinA" (ByVal hwnd As Long, ByVal pszRootPath As String, ByVal dwFlags As Long) As Long

    Private Sub...
  6. Replies
    17
    Views
    1,188

    Well im not gonna get into the coding part but as...

    Well im not gonna get into the coding part but as for the progress bar i would do something like this:



    Private Sub DeleteFiles()
    Dim nFiles as Integer
    Dim fileName(99) as String

    'sets up...
  7. Replies
    6
    Views
    827

    i wouldnt use binary for a text file, try this: ...

    i wouldnt use binary for a text file, try this:


    dim ffile as Integer
    dim strData as String
    ffile = FreeFile

    Open App.Path & "\Tutorials\Common Dialog.txt" For Input As #ffile
    Do until...
  8. Replies
    3
    Views
    613

    try this: Private Sub Command1_Click()...

    try this:


    Private Sub Command1_Click()
    'addition
    label1.Caption = val(label1.caption) + 50
    'subtraction
    label1.Caption = val(label1.caption) - 50
    End Sub
  9. Replies
    7
    Views
    686

    well to scale the notepad or what ever try this:...

    well to scale the notepad or what ever try this:


    Private Sub Form_Resize()
    text1.Move 0,0,Me.Scalewidth,Me.Scaleheight
    End Sub


    as for a window in a window try using a mdi form then using...
  10. Replies
    9
    Views
    9,435

    sure you can use this code or modify anyway you...

    sure you can use this code or modify anyway you want. have fun with it !
  11. Replies
    9
    Views
    9,435

    This code works fine for me with a label: ...

    This code works fine for me with a label:


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

    Public Sub TypeWriter(txtt As Label, time As Single, text As String)
    '^^^ for time...
  12. Replies
    9
    Views
    9,435

    for a label change the declaration to: ...

    for a label change the declaration to:


    Public Sub TypeWriter(txtt As Label, time As Single, text As String)
    ''^^^ make it a label instead of a textbox

    and then change the .text property to...
  13. Replies
    4
    Views
    473

    yes

    yes
  14. Replies
    4
    Views
    473

    you could do something like: text1.text =...

    you could do something like:

    text1.text = form2.text1.text
  15. Replies
    1
    Views
    565

    you could use the paintpicture method, just make...

    you could use the paintpicture method, just make sure the autoredraw property is set to true.

    example:



    Private Sub Form_Load()
    picturebox1.paintpicture loadpicture("c:\mypic.bmp"),0,0...
  16. Replies
    2
    Views
    514

    You set the CancelError property to TRUE then in...

    You set the CancelError property to TRUE then in code you do something like:



    Public Sub mnuColor_Click()
    On Error Goto error
    commondialog1.showcolor
    error:
    'cancel was hit
    End Sub
  17. Replies
    42
    Views
    119,398

    C/C++ - Hello World (very simple)

    #include <iostream.h>

    int main()
    {

    //This prints "Hello World" and <<endl makes a new line
    cout<<"Hello World"<<endl;

    return 0;
    }
  18. This is even simpler, i created this function in...

    This is even simpler, i created this function in like 2 minutes too:


    Public Sub ColorText(tb As RichTextBox, color as long)
    Dim s As Long
    Dim e As Long
    For i = 1 To Len(tb.Text)
    s = InStr(i,...
  19. Replies
    9
    Views
    9,435

    TypeWriter Effect (code included in post)

    its pretty simple and staight forward so here it is:


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

    Public Sub TypeWriter(txtt As TextBox, time As Single, text As String)...
  20. Replies
    7
    Views
    1,023

    nevermind my last post, i wasnt thinking right. ...

    nevermind my last post, i wasnt thinking right. I dont know what i was thinking.
  21. Replies
    16
    Views
    1,149

    You can code your own routine to check for the...

    You can code your own routine to check for the mouse position and actions.

    Check out the GetCursorPos() function(api call).
    Also check out GetAsyncKeyState() function to check for mouse actions....
  22. Replies
    7
    Views
    1,023

    set the timer interval to 1000ms(1 second) and ...

    set the timer interval to 1000ms(1 second) and

    under the timer_interval sub try this:


    Public Sub Timer1_Interval
    Static time As Integer
    time = time +1
    If time >= 60 Then 'replace 60 with...
  23. Replies
    3
    Views
    584

    Another way besides using timers: Dim i As...

    Another way besides using timers:


    Dim i As Boolean
    Private Sub Form_Load()
    Me.Show
    i = True
    Do While i = True
    Label1.Caption = "Date: " & Date & " Time: " & Time
    DoEvents
  24. Replies
    2
    Views
    382

    maybe this will help

    You can modify this code to search more than one instance of "<text>" just add a loop to it. But this should get you started.



    Public Function GetInfo(text As String)
    Dim b As integer 'begin...
  25. Replies
    31
    Views
    233,731

    C/C++ - Loading Bitmap Files (Manually)

    This is how you maually load a bmp file

    The bitmap file format:
    Bitmap file header
    Bitmap info header
    palette data
    Bitmap Dada

    so on with the code part, this is our struct we need to create...
  26. Replies
    1
    Views
    435

    try this Private Sub...

    try this


    Private Sub Command1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Button = vbLeftButton Then Command1.Caption = "X"
    If Button = vbRightButton Then...
  27. Replies
    3
    Views
    14,309

    yea i should of mentioned that. thanks for...

    yea i should of mentioned that. thanks for letting me know.

    Explaination(cause im bored):

    PeekMessage() basically continues even if there is no message in the queue, perfect for functions...
  28. Replies
    4
    Views
    677

    I found your problem and i got it to work. You...

    I found your problem and i got it to work.

    You just needed to put "Dim fThingy(10) As New frmThingy" at the top and replace n with a number.
  29. Replies
    3
    Views
    938

    In vb i would suggest using directx. It is...

    In vb i would suggest using directx. It is possible for Opengl but its more work. If you can i would suggest using C++ if your gonna be needing graphics capablities, although vb supports graphics...
  30. Replies
    4
    Views
    677

    try this ... 'for one at a time Unload...

    try this ...


    'for one at a time
    Unload fThingy


    or
  31. Replies
    3
    Views
    14,309

    C/C++ - Simple Win32 App

    This is just a simple setup for a simple win32 app. I didnt really do much explaining but i did include some comments on whats going on at a particular place. I will hopefully get a simple opengl...
  32. Replies
    2
    Views
    577

    Im not sure what keys you want to do but try...

    Im not sure what keys you want to do but try something like this:

    If you want to send a non-letter key put brackets before and after like:

    SendKeys {TAB}
    SendKeys {SPACE}

    If you want to...
  33. Replies
    5
    Views
    1,569

    try this ...

    This is just theory but i think it should work ....



    Public Sub Command1_Click()

    pictemp.Width = ScaleX(mainpic.Width, vbTwips, vbPixels)
    pictemp.Height = ScaleY(mainpic.Height, vbTwips,...
  34. Replies
    6
    Views
    1,164

    .X files support animation Check out the sdk...

    .X files support animation

    Check out the sdk documentation for more info.
Results 1 to 34 of 34



Click Here to Expand Forum to Full Width