Search results

  1. L

    Question How do I add commas in numbers automatically?

    i have a problem with the < Val >. like For example: value = 123456 , the output was = 156. but without val, it doest allow me to insert "." . tried changing it with < Dim val1 As Decimal = TextBox1.Text > but its the same, doesnt allow me to insert "." .like its's disabled or something. i guess...
  2. L

    Question How do I add commas in numbers automatically?

    yiiah. about that. ive tried your code. < Dim a = 0.0 Console.WriteLine(a.ToString("#,0.##########")) > but instead of direct value, i changed it to textbox.text and instead of console output i changed it to textbox output. thats why i got the " unable to cast object of string". but if i set the...
  3. L

    Question How do I add commas in numbers automatically?

    im using debugger. here's the error message.
  4. L

    Question How do I add commas in numbers automatically?

    Hi @jmcilhinney . i did try the code but modified it a bit, because it gives me string conversion error. Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged TextBox1.Select(TextBox1.Text.Length, 0) Dim val1 = Val(TextBox1.Text)...
  5. L

    Question How do I add commas in numbers automatically?

    hi @JohnH . i will concider it, but i need to do research about the numberupdown, it's my first time knowing this. thank you!
  6. L

    Question How do I add commas in numbers automatically?

    hi @jmcilhinney . your assumptions were correct. about the format value when leave the control, i did considered it, i already made a code for it but make it as comment for a while. i was just thinking maybe someone here know how to fix or can give idea. my idea was based on window...
  7. L

    Question How do I add commas in numbers automatically?

    Hi! I am creating a system where when i type a number in textbox1, it automatically add commas. ive searched in the internet and found almost similar functions on what i am looking for. but i have a problem, i dont want the < .00 > decimal to show during i enter the numbers and i will only add...
  8. L

    Resolved output of .Location.X/.Y is not accurate?

    oh. so basically i made it redundant. my bad. Thank you!
  9. L

    Resolved output of .Location.X/.Y is not accurate?

    yay! it works!. the RectangleShape1 is from VB PowerPacks and it lives in ShapeContainer1. upon trying to understand your explanation and me playing with codes. we finally solve it.. and i was able to display the captured image in PictureBox2 also. thank you. here's the code: Private Sub...
  10. L

    Resolved output of .Location.X/.Y is not accurate?

    Hi, im having difficulty in getting the accurate location of the image i want to capture, how do i correct this? ive tried to manually put the X and Y number but the result was the same. (Please see Attached Image, The First Image is the whole form and the second image was the result after...
  11. L

    Resolved How to use .PaintPicture in VB.NET?

    hi. sorry. its VideoSourcePlayer1.DrawToBitmap(img, New Rectangle(0, 0, RectangleShape1.Width, RectangleShape1.Height)). ok, first, i have to know how do i capture image within the RectangleShape1, and thanks to mr JohN for the idea he gave. in my understanding. this code: "Annex A" will only...
  12. L

    Resolved How to use .PaintPicture in VB.NET?

    Hi! i've researched and tried to use the .DrawToBitmap, and i think this is what ive been looking for, omg. but i have a problem. it wont display the capture image in PictureBox2. here's the code i use: ------ Dim img As Bitmap = New Bitmap(RectangleShape1.Width, RectangleShape1.Height)...
  13. L

    Resolved How to use .PaintPicture in VB.NET?

    about the .PaintPicture. its a code from vb6. (im recreating this work from vb6. skip to 5:39 ) i think its for bitmap image, and they said it doesnt exist in vb.net, so i've looked for alternatives : DrawImage(), but i dont know how to use it or implement it in my work. Im lacking to...
  14. L

    Resolved How to use .PaintPicture in VB.NET?

    Im working on my assignment, camera, and i dont know how to use the .PaintPicture or something. im stuck. what i like is to get the image inside the rectangleshape1 (fix size) of VideoSourcePlayer1 and paste the image to picturebox2. (i hope you get it, im bad at explaining things) please see...
  15. L

    Camera app - Help?

    hi @jmcilhinney . the goal is, recreate his work in vb.net (im using vb2022), but i can't find a tutorial about the same function as the one in the vb6. (or maybe it's there but missed it). so i tried to do it from scratch with similar functions: instead of ezVid60, i used Aforge. the problem...
  16. L

    Camera app - Help?

    Hi, im a student, new here and new to vb.net. we have this assignment, to create camera application using webcam with the following features : crop/save/upload i already did this, but i want to change it after seeing this in youtube and i like it and i thank him. i tried to make it in .net...
Top Bottom