Search:

Type: Posts; User: Spybot

Page 1 of 8 1 2 3 4

Search: Search took 0.09 seconds.

  1. VS 2019 Re: ExecuteScalar() returns weird result

    Hi jmc.
    I had never used this kind of syntax to get an scalar value before.
    I just learned something new today.


    TextBox2.Text = CMD_Checar_Turno.ExecuteScalar().ToString


    Thank you.
  2. VS 2019 [RESOLVED] ExecuteScalar() returns weird result

    Hello!

    I'm trying to get an integer value from a table called Ventas_Table and then put this value in a Texbox, the code doesn't give me any erros, but the TextBox returns this text...
  3. VS 2019 Re: Why NumericUpDown control allows more than one decimal separators?

    Hopefully that will be fixed in VS 2022.
  4. VS 2019 Why NumericUpDown control allows more than one decimal separators?

    Hello!

    I'm working with a NumericUpDown control, that must receive decimal numbers, All my operations perform OK, but Why this NumericUpDown control allows me to input more than one point (decimal...
  5. VS 2019 Re: [RESOLVED] CheckBox Column Issue (code working only once).

    OK.
    I've updated my code:

    With DataGridViewX2
    If e.ColumnIndex = Column7.Index And e.RowIndex = .CurrentCell.RowIndex Then
    Dim CellX As DataGridViewRow
    ...
  6. VS 2019 Re: CheckBox Column Issue (code working only once).

    OK, problem #2 SOLVED!

    the new code...

    With DataGridView1
    Dim Value_1 As Decimal = CDec(.Rows(e.RowIndex).Cells(4).Value)
    Dim Value_2 As Decimal =...
  7. VS 2019 Re: CheckBox Column Issue (code working only once).

    OK, problem # 1 has been solved!
    Now I can check or un check any CheckBox cell and it works as expected (no matter how many times I click on that CheckBox cell).

    This is the new code:

    ...
  8. VS 2019 Re: CheckBox Column Issue (code working only once).

    I expect that ...
    When the checkbox value = true it does some calculations
    When the checkbox value = false it also does some calculations(something like undo the first calculations)
    And being able...
  9. VS 2019 Re: CheckBox Column Issue (code working only once).

    "Really though, you should turn Option Strict On for all current projects and also turn it On in the VS options" I promise I will.
  10. VS 2019 Re: CheckBox Column Issue (code working only once).

    OK, I'm done fixing the all the issues regarding Option Strict On, believe me there were more than 500 issues.
    I've also implemented the fix .paul suggested, and still not working as expected. I've...
  11. VS 2019 Re: CheckBox Column Issue (code working only once).

    Thank you very much...
    I'm almost done... LOL!
  12. VS 2019 Re: CheckBox Column Issue (code working only once).

    I'm Fixing my entire solution, and I found this error... where it says sender.Text.IndexOf( the error text says something like: "Option Strict On, doesn't allow the link at runtime" I translated it...
  13. VS 2019 Re: CheckBox Column Issue (code working only once).

    I didn't now what "Option Strict" was for.
    now I know and I'll have to fix lots of simple object type conversions.
    I Guess I'll be pretty busy fixing my mess. LOL!
    I'll come back to this threat...
  14. VS 2019 Re: CheckBox Column Issue (code working only once).

    Sure, I switched to the CellContentClick event(), Also I almost always set breaking points to see what going on in the code, but in this particular piece of code I see a normal flow while debugging...
  15. VS 2019 Re: CheckBox Column Issue (code working only once).

    Hi .paul
    Well turning Option strict to "On", it breaks my whole program, it doesn't even run anymore.
    so I'll leave it "Off" by now, continue looking for the solution. thank you any way.
  16. VS 2019 [RESOLVED] CheckBox Column Issue (code working only once).

    Hello!

    I'm using a winforms app.
    I have a DGV that looks like this...
    182487

    The logic in this program is ...
    If I check a cell on column 6 some operations on other cells get done, If I...
  17. VS 2019 Re: DGV Row events() don't work on the last DGV row.

    Yes I put a breaking Point on the DataGridView1_KeyDown() event, and it doesn't even stops there, so I change this DGV property:

    DataGridView1.EditMode = DataGridViewEditMode.EditOnKeystroke
    ...
  18. VS 2019 Re: DGV Row events() don't work on the last DGV row.

    OK...
    I've tried this, and still not working...


    Private Sub DataGridView1_KeyDown(sender As Object, e As KeyEventArgs) Handles DataGridView1.KeyDown
    Dim My_Current_Cell As Integer...
  19. VS 2019 [RESOLVED] DGV Row events() don't work on the last DGV row.

    Hello!

    I'm using WindowsForms app with VB.NET.

    I have a DGV with a couple of columns and only one column is editable (Column X).
    When I open my Form, the focus goes straight to the first cell...
  20. VS 2019 Re: Issue with DataGridView RowValidating() event.

    Ok, you mean click my DGV ..

    -Go to Edit columns
    -Select my column
    -Click on: DefaultCellStyle
    -Click on format
    -select "C2"

    Done!
  21. VS 2019 Re: Issue with DataGridView RowValidating() event.

    Wow!!
    What a piece of advice!
    Yes, my logic was wrong, I should have used the original price from the beginning.
    also I used the Format(Cell(X), "c"), and I switch to RowLeave event. Now...
  22. VS 2019 [RESOLVED] Issue with DataGridView RowValidating() event.

    Hello!

    I'm using windows form app, I have a DGV, It calculates the new price when I enter a value in the discount column, it is working fine, the problem is that, when I go up & down thru the DGV...
  23. VS 2019 Re: UPDATE Query Throws error "Database is locked". help!

    Just for the record, I just find out how to fix this "Database is Locked" error... as simple as finalizing everything withing the SQLite Query, I mean... if I use a connection I "End using" it, if I...
  24. VS 2019 Re: Passing focus from TextBox to TexBox on the Keydown event. Help!

    The solution in post#3 using the SelectNextControl method worked for me.
    Thank very much!
  25. VS 2019 Re: Passing focus from TextBox to TexBox on the Keydown event. Help!

    OK I'll try this, I'll report back tomorrow.
    right now is 2:00am in México.
  26. VS 2019 [RESOLVED] Passing focus from TextBox to TexBox on the Keydown event. Help!

    Hello!

    I might need some advice here.
    I have assigned a keydown event to my form so now it handles all keydown events that occur within the form.
    Everything's fine so far, until I try to...
  27. VS 2019 Re: UPDATE Query Throws error "Database is locked". help!

    Hi jmc!

    Thank you for your suggestion.
    I got rid of 3 SELECT statements that were before the UPDATE statement and it just worked along with this query:

    Using connection As New...
  28. VS 2019 Re: UPDATE Query Throws error "Database is locked". help!

    Hi wes4!
    You're right, my logic was wrong. I've changed my query to:

    Using Command2 As New SQLiteCommand("UPDATE Brand_Table SET Name = @TB1 WHERE ID_ = @IDSC", connection_1)
    ...
  29. VS 2019 [RESOLVED] UPDATE Query Throws error "Database is locked". help!

    Hello!

    I'm having trouble with my UPDATE Query, I'm using an SQLite DB, it has a table called Brand_Table, this table has only 2 columns: and [Name]. I can [I]INSERT and DELETE records from it,...
  30. VS 2019 Re: set focus to an specific control when firing a bar code reader.

    Yes, actually that solved the problem for me.
    Thank you.
  31. VS 2019 Re: set focus to an specific control when firing a bar code reader.

    I understand, I guess I'll have to get rid of TextBox2 and manage everything from TextBox1.
  32. VS 2019 [RESOLVED] set focus to an specific control when firing a bar code reader.

    Hello!

    I have a little problem with my price checker application, I'm using a windows form/VB.NET in VS2019, the app works just fine, I scan a product's bar code (using a regular laser bar code...
  33. VS 2019 Re: I'm missing the text in my Mail.Body email.

    Hi techgnome, Your're right I implemented the fix you suggested and it worked just fine.

    Thank you.
  34. VS 2019 I'm missing the text in my Mail.Body email.

    Hello!

    I'm trying to send an email from a windows form application using VB.NET. the email contains some text and an embedded image. I get to send the image, but the text is totally missing, my...
  35. Replies
    3
    Views
    652

    Re: Compiling Issue, Is this normal?

    Hi jmcilhinney.

    Thank you for responding.

    No, the output of the Installer project doesn't get any larger.
    If I Clean before building, seem to work.
    But if I close and reopen VS definitely...
  36. Replies
    3
    Views
    652

    Compiling Issue, Is this normal?

    I'm compiling my project in VB2019 using (Microsoft Visual Studio Installer Project), the compiling results say the compilation is correct, but I've noticed this in the output window, the compiling...
  37. VS 2019 Re: Why disabling DGV Column Sorting, disables DataGridViewAutoSizeColumn mode?

    OK, so The Autosizemode is still working, it's just that all the columns were shrunk that little arrow on the column headers.
    So I guess I'll need to make the column Headers unclickable instead of...
  38. VS 2019 [RESOLVED] Why disabling DGV Column Sorting, disables DataGridViewAutoSizeColumn mode?

    Hello!

    I have DGV perfectly fine, it is not bound to anything, populated programmatically, something like this:
    179003

    Then I needed to disable Column Sorting when I click on any column...
  39. Replies
    12
    Views
    2,851

    Re: DataGridView repeating extra row???

    That was a great answer, I was just passing through the same issue and I solved it with this post.
  40. VS 2019 Re: Help! updating DGV cells with values from another DGV

    I just realize that too, thanks anyway .paul.
Results 1 to 40 of 289
Page 1 of 8 1 2 3 4



Click Here to Expand Forum to Full Width