dcsimg

Search:

Type: Posts; User: Edelweise

Search: Search took 0.05 seconds.

  1. Replies
    12
    Views
    1,455

    Re: Line control blur, possbile ?

    Perfect. I implemented the code into the game the drawing of the multiple space images technique also helped me replace my current one which was to pre-render 40 empty image boxes and place stuff in...
  2. Replies
    12
    Views
    1,455

    Re: Line control blur, possbile ?

    Thank you for all your help and for doing this for me, but actually this wasn't exactly what I wanted. I don't want to be cheeky, but I just don't know how to rewrite the whole code to do what I want...
  3. Replies
    6
    Views
    373

    How am I supposed to use this code?

    Been searching for something related to drawing anti-aliased lines in VB6. Found this code on planetsouce:


    Option Explicit


    Private Type POINTAPI
    x As Long
    y As Long
    End Type
  4. Replies
    12
    Views
    1,455

    Re: Line control blur, possbile ?

    So almost 3 years later I am back to this game. Everything was kinda re-created / re-written from both client and server side. I really spend a lot of time for this and the only thing that left are...
  5. Re: Do While Loop True/False check doesn't work

    It is set to true early in my sub I just forgot to include it in the code example I send above. I also tried to move it just below the declaration of itm as so:


    Dim itm As Variant
    blnSafe =...
  6. Re: Do While Loop True/False check doesn't work

    Dim itm As Variant
    For Each itm In AttackingMe
    If AttackingMe(array) = True Then
    blnSafe = False
    Exit For
    End If
    Next

    If blnSafe = True Then
    Label.Caption = "Safe"
  7. Re: Do While Loop True/False check doesn't work

    Thank you for your reply. May you help me with using the correct code in this case? Thank you!
  8. Do While Loop True/False check doesn't work

    I have a simple loop and a global boolean like so:


    Dim AttackingMe(5) as Boolean
    ''''''''''''''''
    ''''''''''''''''
    'Somewhere in a function
    Dim count as Integer
    count = 0
    Do
  9. Re: Found previous value of variable after it's changed

    Actually I found a simpler way of doing it:


    If Number > 0 then ImageArray(sLastNum).Picture = ("original-pic")
    If sLastNum <> Number Then sLastNum = Number
    ImageArray(Number).Picture =...
  10. Re: Found previous value of variable after it's changed

    Are sLastNumber and sLastImage some global variables ? And what exactly sLastImage should be ? A bit more detailed information if possible, please ? Thanks.
  11. Re: [RESOLVED] Draw line between images in array

    Setting AutoRedraw to True and Refreshing the form after drawing the lines actually did the job pretty well. Thank you @LaVolpe.

    @passel, maybe you're right about not using image controls at all...
  12. [RESOLVED] Found previous value of variable after it's changed

    I don't know why I always deal with stuff that doesn't have any information over the web about to do it, but anyway...
    Let's assume that I have a variable called Number which is a random number...
  13. Re: [RESOLVED] Draw line between images in array

    Circles are images (PNG's). In fact, I am using your AlphaImgControl to create them.
    In the demo I used shapes, but the same "glitch" happened with shapes too.
  14. Re: [RESOLVED] Draw line between images in array

    I managed to accomplish this whole drawing process with just 5 lines of code, simple, but there is a tiny problem. When I draw the line between the images Me.Line(x1,x2)-(y1,y2) it will draw the line...
  15. Replies
    3
    Views
    434

    Draw anti-aliased line ?

    So title says everything. Is there a way (library or whatever) that will allow me to draw anti-aliased lines in a form ? Some example code will be fine too. Thanks!
  16. Re: Draw line between images in array

    Well that does the job. I already have an algo that knows which nodes are connected and which are not. I will have some trouble drawing lines between node that has multiple connectors, but I guess I...
  17. Re: Draw line between images in array

    ~bump :(
  18. [RESOLVED] Draw line between images in array

    Hello. So I have this array of 118 images which looks like so:
    157713
    And this is actually a map, so how can I draw lines between specific dots, so it will become like so:
    157715

    You may want...
  19. VS 2015 [RESOLVED] Problem with SQLite Database: File is encrypted or it's not a databse file.

    Got this resolved, thanks to all that helped!
  20. Re: Formatting color for creatin text part in VB6 RichTextBox

    Thank you for showing me this @DataMiser !
    When I checked what temp is, I saw that it contains the text that is added to the chatbox with all it's RTF options (e.g \cf1user:message) where cf1 is...
  21. Re: Formatting color for creatin text part in VB6 RichTextBox

    I am actually not the original creator of this game and I don't fully understand the code too. So where you see the place where the text is replaced ?
  22. Re: Formatting color for creatin text part in VB6 RichTextBox

    Resolved
  23. Re: Formatting color for creatin text part in VB6 RichTextBox

    Resolved
  24. Re: Formatting color for creatin text part in VB6 RichTextBox

    Resolved
  25. Re: Formatting color for creatin text part in VB6 RichTextBox

    The start should begin at 0 and end in the last username symbol, so it will select the username only. I don't think theres something wrong with this one.
    Can you explain a little bit more detailed...
  26. [RESOLVED] Formatting color for creatin text part in VB6 RichTextBox

    Resolved
  27. Replies
    1
    Views
    1,946

    Re: [HELP] Reading MySQL database tables

    Bump~
    Nobody ????
  28. Replies
    1
    Views
    1,946

    [HELP] Reading MySQL database tables

    Hello. So I have this C++ code:


    void mysql_do_ds_awards()
    {
    #ifdef USE_MYSQL
    char sql_cmd[5000];
    MYSQL_RES *res;
    MYSQL_ROW row;
    unsigned int num_fields;
  29. Replies
    10
    Views
    4,343

    VS 2013 Re: [SOLVED] Whats wrong with this code ?

    Btw @TnTinMN can you try make it work with the code i said it's not needed ? Cause actually, it is needed.


    End Function).Start
    Thread.Sleep(CInt((Integer.Parse(s) * &H3E8)))
    ...
  30. Replies
    10
    Views
    4,343

    VS 2013 Re: Whats wrong with this code ?

    @TnTinMN Thank you very much. My code is working now. THANKS!
  31. Replies
    10
    Views
    4,343

    VS 2013 Re: Whats wrong with this code ?

    @TnTinMN used your code, worked fine. I fixed some of the errors. Also, the last few lines after Next:



    End Function).Start
    Thread.Sleep(CInt((Integer.Parse(s) * &H3E8)))
    [loop]...
  32. Replies
    10
    Views
    4,343

    VS 2013 Re: Whats wrong with this code ?

    I am trying to make it work too for the whole day. Originally the source code comes from sourceforge, but this current one is from my friend, cause it's an old project and it doesn't exist on...
  33. Replies
    10
    Views
    4,343

    VS 2013 Re: Whats wrong with this code ?

    Well I though you guys can make a quick VB.NET console app, paste the code and see the errors, it would be easier, but okay i will show them.


    Error 1 No accessible 'Main' method with an...
  34. Replies
    10
    Views
    4,343

    VS 2013 [SOLVED] Whats wrong with this code ?

    Imports System.Threading
    Imports System.Net.Sockets
    Imports System.IO

    Module Module1
    Private Shared Sub Main(ByVal args As String())
    Console.ForegroundColor = ConsoleColor.Yellow
    ...
  35. Re: MouseWheel scroll inside Rich Text Box with scrollbars disabled

    Got it to work with WScript.Shell SendKeys replacement.



    Set WshShell = CreateObject("WScript.Shell")
    If Me.ActiveControl = Me.RTFTextBox Then
    If Rotation > 0 Then
    ...
  36. [RESOLVED] MouseWheel scroll inside Rich Text Box with scrollbars disabled

    Ok so i have this Rich Text Box with disabled scroll bars. I've added a module to "catch" Mouse Wheel events. In order to scroll up/down inside the control i added the following code in Form_Load:
    ...
  37. Replies
    12
    Views
    1,455

    Re: Line control blur, possbile ?

    Thank you for this awesome and well explained answer Mr. Olaf ! Than's exactly what i am looking for.

    What i have is actually a clone of a space game called "Diaspora"...
  38. Replies
    12
    Views
    1,455

    Re: Line control blur, possbile ?

    Ok let me explain this better. I have this gun line created by a couple of shape lines:

    135989

    As you can see it looks very sharpen, so what i want to do is to make it look more like this:
    ...
  39. Replies
    12
    Views
    1,455

    Line control blur, possbile ?

    Is there any way/custom control/trick to add Blur effect in a line shape control ? Thank you!
Results 1 to 39 of 39



Featured


Click Here to Expand Forum to Full Width