Search:

Type: Posts; User: KBConsole

Page 1 of 2 1 2

Search: Search took 0.05 seconds.

  1. Re: [RESOLVED] Arrays- Sorting and initialization

    Try the following:

    For Each coordinate In coordinates
    coordinates.Append(New Point(12, 11))
    Console.WriteLine("C: " & coordinate.ToString())
    Next
  2. Re: [RESOLVED] Arrays- Sorting and initialization

    Oh, interesting so ".Add" is a Sub that belongs to the List object and directly modifies it's value but ".Append" is a function of IEnum and returns an enumerable value that can be converted to a...
  3. Re: Arrays- Sorting and initialization

    Facepalm*, Thank you.
  4. Re: Arrays- Sorting and initialization

    Tried the following and the output tells me the list is empty:


    Dim coordinates As New List(Of Point)
    coordinates.Append(New Point(1, 1))
    coordinates.Append(New Point(100, 10))...
  5. Re: Arrays- Sorting and initialization

    Lists might be easier but they still give out the issue #2 from what I posted.
    Thanks for the suggestion though.
  6. [RESOLVED] Arrays- Sorting and initialization

    Howdy people,

    .Net Arrays are slightly confusing to me and these two issues came up.

    1) I have a 2 dimensional array of integers representing 2D coordinates (X,Y) what would be the best way to...
  7. VB.NET - Drawing Lines From Scratch (Bresenham)

    Howdy fellow programmers,

    Learning to draw lines on a computer screen is part of the basic useful stuff.
    Reinventing the wheel being my main focus I looked around to find out how, but most if...
  8. VS 2019 Re: Visual Studio Gone Mad, Rise of the machines etc.

    You're right (the image is fine on my pc though it's the preview that's blurry or it lost quality in the upload process).

    Dim PixelCounter As Integer = 0
    For Y = StartY To EndY
    ...
  9. VS 2019 Visual Studio Gone Mad, Rise of the machines etc.

    Either I'm being very blind to the issue or I need to disable the error manager thingy somehow.

    I have errors on variables that don't exist and IF's are no longer allowed for programmers(ouch)....
  10. Re: Get number of PC's using an exe file on the LAN

    You could loop trough your range of local ip addresses and ping for valid active devices on your LAN.
    Basic I/O will let you know if it's a PC or another device type.

    Once your have all active...
  11. Re: Microphone Output hears the music i play

    You can simply record audio files and play those in your game.
    Do you mean LIVE interaction eg: talking to your players as they play ?
  12. VS 2019 Re: Triangle Rasterization - 3D Graphics - VB.NET

    Thanks for the info, I'll make some sort of debug function to output values of two adjacent faces to the console in real time and spend a while reading those xD



    Yes sir it is, hence why I try...
  13. VS 2019 Triangle Rasterization - 3D Graphics - VB.NET

    Hello again people, been a while.

    I have been working on a 3D graphics engine for around a year or so but very on and off(so maybe 2 months of work). It worked nice and clean when using the...
  14. VS 2019 Trouble with assigning the result of a function to a property

    Hi, my issue is that I can't seem to be able to assign a function's return value to an instance of a Class of same type:


    Dim MTranslate_Z As Matrix3D = Matrix3D.Create_Scale(2, 2, 2)

    For Each...
  15. Replies
    2
    Views
    834

    VS 2019 GDI+ Performance Issue

    I have been trying to achieve a simple 3D engine in VB.NET and it's visually pretty good.
    (Except i still need to add a Z-Buffer or Painter's algorithm to properly show concave shapes)
    177768
    My...
  16. Re: Classes & Class Libraries: Best practices and other imponderables.

    Here's another question while at it; What are the differences/advantages between these two examples:

    Public Class SystemUser
    Dim su_Username As String
    Public Property...
  17. Re: Classes & Class Libraries: Best practices and other imponderables.

    So the Math Class (assuming it was made in VB and not C#) is basically a Module that contains the constants PI and E as well as some functions to do operations on numeric data types ?



    Neat so...
  18. VS 2010 Re: How to ignore saving records that can make duplicate before inserting to database

    Why not just fetch "Firstname" and "Lastname" from DB1 and DB2, concatenate them and compare both lists, if one is different copy user from DB1 to DB2.
  19. Classes & Class Libraries: Best practices and other imponderables.

    This thread has for goal to gather the POV and experience of fellow VB.NET programmers regarding the creation of Classes and Class Libraries.
    Any questions on the subject or links to documentation...
  20. VS 2019 Re: Making a copy of a class and modifing it changes original class values PS: With B

    Thank you sir, simple and accurate answer making it an easy fix for me :)
  21. VS 2019 [RESOLVED] Making a copy of a class and modifing it changes original class values PS: With ByVal

    I have recently been trying to learn 3D and create a small 3DEngine.
    I made the following Class:

    Public Class TriangularFace
    Private arr_Vertices(2) As PointVector
    Public Sub...
  22. VS 2019 Re: Is it possible to nest properties ?

    Thanks I created a structure for it similar to point but with the property blocks I needed.
    Also the last reply got sent twice mb.
  23. VS 2019 Re: Is it possible to nest properties ?

    Thanks for the tip, that would work great except it would be acessible this way:

    Hexagon1.Location = New Point(0, 0)
    Hexagon1.X = 33

    But I would want X to be a member of Location as such:
    ...
  24. VS 2019 [RESOLVED] Is it possible to nest properties ?

    In this case I have a point (HexLocation) which I want to get/set as property for my class.

    Private HexLocation As Point

    Public Property Location As Point
    Get
    ...
  25. VS 2019 Re: Screenshot taking function returns nothing when used from another class

    *Facepalm*, Thanks a lot. Been a year i have been away from VB started back up yesterday :\ making lots of dumb mistakes atm.



    Neat for the "select area" concept to get rectangle off mouse,...
  26. VS 2019 [RESOLVED] Screenshot taking function returns nothing when used from another class

    Hi Forum, has been a long time.

    The following function:


    Option Strict On
    Imports System.IO
    Imports System.Drawing
    Imports System.Drawing.Imaging
  27. Replies
    4
    Views
    768

    Re: Read Cell and store as STRING

    As Chris said:

    StringTemp1 = CStr(shXL.Cells(Row_Indx, 1).value)

    Or even:

    StringTemp1 = shXL.Cells(Row_Indx, 1).value.ToString

    The ".ToString" function comes with the object while "CStr"...
  28. Re: Is it worth moving from WinForms to WPF ? Or would it be better to learn a new PL

    Interesting. Kinda sad but interesting.

    Many options tho HTML/CSS/Javascript seems like a must even tho it's mostly front end, while PHP and Ruby are for back end right ?

    Should I focus more...
  29. Is it worth moving from WinForms to WPF ? Or would it be better to learn a new PL ?

    Have been doing most of my work with VB.net and WinForms (Some ASM and C++ at times)

    -I wonder if moving from WinForms to WPF is valuable to learn or it's better off learning Java or C# something...
  30. VS 2017 Re: Problem with Bitmaps - ArgumentException: Parameter is not valid

    Exactly what I needed, thank you :)



    I was asking if that was what I should do for VB or is there was something better, turns out there is.



    Most of mine are either <=20 or around 60 for...
  31. VS 2017 Re: Problem with Bitmaps - ArgumentException: Parameter is not valid

    *Multiple facepalms* Thanks guys, should have known. Fixed my code if anyone else want to spam print-screens.


    Option Explicit On
    Public Class Form1

    Dim screenShot As Bitmap
    Dim g As...
  32. VS 2017 Re: Problem with Bitmaps - ArgumentException: Parameter is not valid

    I've checked each time and the values show what they are supposed to. (1920x1080)

    Only after a few, the code works fine for approx 6-7 seconds before I get the error.
    If I put a "try/catch"...
  33. VS 2017 Re: Problem with Bitmaps - ArgumentException: Parameter is not valid

    Exception being thrown on line 7 :


    Dim screenShot As New Bitmap(screenSize.Width, screenSize.Height)


    Thanks for the tip on memory.
    The GC is something I don't really trust but i'll read...
  34. VS 2017 [RESOLVED] Problem with Bitmaps - ArgumentException: Parameter is not valid

    Attempting to make a screen sharing app.

    Came up with this error and I really have no clue as to why but my code
    is probably very wrong and I'm blind as to why atm.

    Here:


    Option Explicit...
  35. Replies
    10
    Views
    676

    Re: Create a button to output numbers 1-10

    Sorry mate this won't work.
    Here's why: (Me.Button1.Press)

    Use (.Click) to fix it instead of (.Press).

    Depending on how you want numbers to appear change this line: (Num.Text = Num.Text & i &...
  36. Replies
    10
    Views
    676

    Re: Create a button to output numbers 1-10

    This should do it ^^

    You just need to add a button and a listbox to your form


    Option Explicit On
    Public Class Form1

    'Variable that contains number (int)
    Dim MyValue As Integer =...
  37. Re: [RESOLVED] Windows UAC stops code execution ?

    I'll admit this may look suspicious but it's pretty much supposed to (due to the job it does), here's why:

    The place I currently work at refurbishes laptops.
    This involves a lot of testing which...
  38. Re: Windows UAC stops code execution ?

    I had already tried that but it doesn't change anything.
    I believe the "uiAccess" setting would fix my problem if set to true but I have no certificate.
    It requires a MS certified app to use that...
  39. Re: Windows UAC stops code execution ?

    I have admin rights but still get the "yes/no" prompt, which interrupts the program.

    Said program being a remote mouse, in a way.
    It's actually checking for the darkest area on the client screen...
  40. [RESOLVED] Windows UAC stops code execution ?

    Had this problem come up when making a client/server app (using tcp and sockets).

    The server sends data to the client every 15 secs.

    When the UAC prompt shows up on the client side it stops...
Results 1 to 40 of 60
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width