I will. I know now the way. It's easier to explore. :)
CJotaO
Posts
-
Textbox keeps losing focus -
Textbox keeps losing focusThanks TnTinMn! It Works fine. And thanks for helping me understand the "LostFocus Mystery" :laugh:
-
Textbox keeps losing focusI want to select all text in a textbox, so I coded the SelectAll() method inside the GotFocus event handler. This did not work, so I inserted a breakpoint to try to find the problem and what I found is that after the execution of the SelectAll() instruction the LostFocus event is fired and the code within the LostFocus handler executed. The same thing hapens when using the TAB key to go to the textbox. However in this case the text remains selected Bottom line I want to select the all text in the text box after clicking the control. I looked around and the MouseDown event does the trick. However if I try to move the insertion point by clicking with the mouse all the text is selected again. And that is not a desirable behavior for this program. Any ideas? Thanks In Advance!
-
Reporting toolHello! I’m sick and tired of Crystal Reports and it’s dll’s… Anyone knows a reporting tool simple to work, easy to deploy and (hopefully) free? The objective is to work with vb.net 2003 in windows apps. TIA Jorge
-
Strange variable convertion...Hi! I solved the problem thanks to you. Thank you very much for the tip! Jorge
-
Strange variable convertion...Hi! I'm sorry about the mistaken code... The correct one is as follows: Public Sub GravaConfiguracao_Fideliza(ByVal intESC As Integer, ByVal dblVE As Double, ByVal intPE As Integer) Dim strInsert As String = "Insert Into Configuracao (Escalao, ValorEscalao, PontosEscalao) Values (" & intESC & ", " & dblVE & ", " & intPE & ")" Thnaks Jorge
-
Strange variable convertion...Hi! Please take a look at this code... Public Sub GravaConfiguracao_Fideliza(ByVal intESC As Integer, ByVal dblVE As intPE As Integer) Dim strInsert As String = "Insert Into Configuracao (Escalao, ValorEscalao, PontosEscalao) Values (" & intESC & ", " & dblVE & ", " & intPE & ")" Please note the variable dblVE. It is a Double variable. If it's value is for instance 0.5 when the strInsert string is created the dblVE variable is converted to 0,5 and then SQL Server reports an error because in the end the string is created with 3 fields and "4" values... Can anyone help me with this? TIA Jorge
-
Strange problem - missing formHi John! Thanks for the reply. Answering to your question… The problem was not on the creation of the form. It was correctly created and I was able to work with it for a while until its reference was not found any more. But I already found the problem… While working in the form (applying controls, formatting them, renaming them, etc…). I accidentally renamed the form instead of the control I wanted to rename… And of course the reference to its previous name was lost… And I started everything with a new form and it happened again and so on… For three or four times before I posted this message… What are the odds of a thing like that happen? Jorge
-
Strange problem - missing formHi! I'm having a very disturbing problem. I'm working in a program witch has several forms (windows forms) When I add a form to the project I can invoke that form from a menu (for instance) The problem is that as I start working in the form (adding controls, formatting then, etc) suddenly the form is no longer recognized and when invoked I got an error "Type frmForm1 is not defined" In this particular form I'm adding GroupBoxes, CheckBoxes, TextBoxes and Labels. I'm using VB .Net 2003 Can anyone help please? I'm tired of repeating the work all over again. TIA