How to make the dot to be click once and not repeat the dot in calculator ?

Protected Sub btnzero_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnzero.Click

     txtentr.Text += btnzero.Text

   End Sub

Recommended Answers

All 2 Replies

Since you are working with a string, use one of the many string related methods to search for the period "." and include a conditional statement so you take action on whether you find a match.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.