405 Posted Topics
Re: Hi, Use Timer control instead of Thread.Sleep (). Because ur application will freeze for the given milliseconds. if you use timer control, you can disable the timer when stop button is clicked. To use timer, change the Following > Use X as Global variable > Draw a Timer Control and … | |
Re: Hi, Try to Write MessageBox Coding in Form_QueryUnload event or Form_Unload Event. This is will show the Message whenever user close the Window | |
Re: Hi, you can change your code [CODE=VB] Max = txtnumber.Text Product1 = txtnumber.Text Do While Product1 < 15 Product3 = Product1 * 3 lstProduct3.Items.Add(Product3) If Product1 > 15 Then Exit Do End If Loop [/CODE] as [CODE=VB] Max = Val(txtnumber.Text) Product1 = 1 ' Start with the First Value 'Iterate … | |
Re: Hi, [QUOTE]One tutorial said you used a keyword extends between the two class names[/QUOTE] In C#, we use colon ( : ) to extend from one class. Java language uses this [B]extends[/B] keyword to inherit from a class. If u have doubt like this, try it practically with these two … | |
Re: Hi, You can Use Array of Three Number for Computer Guess and User Guess, instead of having a single number. Ex [CODE=VB] Dim UserGuess(2) As Integer Dim ComGuess(2) As Integer Sub GenerateComGuess() 'Generate Guess Here End Sub Function CompareGuess( ) As Boolean ' Check the Guess End Function ' When … | |
Re: Hi Dont Update Database from the Form where the Check boxes available. Instead get the result(Which Check boxes are selected) from the Form, then Update database from the Calling Form. | |
Re: Hi, Instead of using BitBlt() function,you can directly print inside the picture box (using pic.print method) when you reading from the file. Also set AutoRedraw property to true. | |
Re: If sString is the String that you have typed then use the following [CODE=VB] cboDropDown.SelStart = Len(sString) cboDropDown.SelLength = Len(cboDropDown.Text) - Len(sString) [/CODE] After [CODE=VB] .. cboDropDown.ListIndex = rsClone.AbsolutePosition - 1 ... [/CODE] | |
Re: Hi, You may use low level key hooks to prevent this. but it is somewhat tedious. | |
Re: Hi, What i understand is "You have to choose one horse out of seven at random" So u can use Rnd () function and Randomize function to choose One out of Seven. | |
Re: Hi, In property window > Change the ForeColor property of the Text box. Or by code [ICODE] Text1.ForeColor = RGB (255, 255, 0) [/ICODE] | |
Re: Hi, Any specific reason for using Masked Text Box? If not, u can also use DateTimePicker control to get date / time input. | |
Re: Hi, Object.ToString() to format the string | |
Re: Hi, Do you want show message box while form closing ? If it is correct, use Message Box in Query_Unload Event or Unload Event | |
Re: Hi, Data Combo Control is available for look up. It can be automatically filled from a database field. | |
Re: Hi, ADO uses similar properties and methods like DAO. It differs in some methods and properties. The way of open the database and Table are somewhat differ. | |
Re: Hi, Global variable or Properties can be used as your suggestion. Assume you have Ok and Cancel button in your modal form. In the Modal form, user can click Ok button for approval and for disapproval they can click Cancel Button or Close Button. When Close button is Clicked the … | |
Re: Hi, The Problem is on your Access Database version. If you using the data base that is higher version, data control wont access it. Use ADODB for accessing the Different versions. Or Change the Data base to the earlier version. | |
Re: Hi, Check the Field Names in the data base with the name you given in the program. if field name contains space use Square Brackets (like [Field Name]) | |
Re: Hi, Check the Path of the Correct Database where you have made the Table design changes. Is your new table and old table having Same Name? If it is, Change to different name and then try to access it. | |
Re: [QUOTE=papuccino1;700063]Hello once again. I'm really interested in making a voice operated aplication for my computer (and those who want to download it). Where should I start reading on this subject. If I google it, I find a million answers but I'd rather have someone who knows their way let me … | |
Re: Hi, You can post what the problem faced when you design the login form. | |
Re: Here you made mistake. change [CODE=VB] If "Average grade: " >= 90 Then letterGrade = "A" ElseIf "Average grade: " >= 80 Then letterGrade = "B" ElseIf "Average grade: " >= 70 Then letterGrade = "C" ElseIf "Average grade: " >= 60 Then letterGrade = "D" Else letterGrade = "F" … | |
Re: Hi, Array size can be specified dynamically like [CODE=CSharp] int[] AnArray; int iSize = 10; AnArray = new int [iSize]; [/CODE] So user can control the length | |
Re: [QUOTE=Duki;695357]Hey everyone, I'm writing a program for work. I need to do the following: The user inputs an unknown number of values to be processed. I want to allow them to basically click "new" and be able to add a new textbox or something that will allow them to input … | |
Re: Hi, Wayne is right. You consider about the Units. Also specify the Location of the two Elevation Peek Points. | |
![]() | Re: Hi, I think more detail required But some guess If you have function like this [CODE=VB] Public Function ProcessArrayList(ByVal AL As ArrayList) As ArrayList AL.Add("Good") Return AL End Function [/CODE] you can pass Array list like [CODE=VB] Dim AL As ArrayList = New ArrayList ProcessArrayList(AL) MessageBox.Show(AL.Count) [/CODE] |
Re: [QUOTE=dimega;691248]Hi there, How would I go about setting a date/time to 0? Basically I want the time to be 00:00:00 so that when I use the addseconds function of say 120 seconds it reads 00:02:00 Any help would be much appreciated.[/QUOTE] Hi, I think you want like Stop Watch. Date … | |
Re: Hi, Any activex control that is used in your project may be missing. | |
Re: Hi, Use timer for this > When a button is Clicked - Here Enable the Timer and Close the Valve > After 5 Seconds (5000) - Disable the Timer and Open the Valve | |
Re: Hi, > Save the All lines Points (Make a class Line Has X and Y member and Save it in an ArrayList) > Draw All the Lines (ArrayList) in Paint Event | |
Re: Hi, Are you forget WHERE Clause or typo mistake? [CODE=SQL] SQL = "SELECT * FROM travel WHERE doj BETWEEN #" & doj.text & "# AND #" & doj1.text & "#;" [/CODE] | |
Re: Hi, I think you are trying to display Multiple columns. Why dont you consider about the other controls that capable of display multiple columns (Like Grid control or ListView). In listbox all the character should not have the same width because of font. | |
Re: Hi, Can u post your sub routine or its prototype? | |
Re: Hi, can u tell What is the error you got? That means Error Description and Error Number ? | |
Re: Hi, Use Rnd() function to generate random number and use any shuffle logic to shuffle words | |
Re: Hi, You want to record voice of the User? or the Application should produce the Audio (.wav) output of the Text? | |
Re: Hi, If you want to shade that portion you have know a point inside that portion. | |
Re: Do you want to find no of records? If yes Recordset.RecordCount will help you to find no of records Also try [B][COLOR="Red"]RecordSet.GetRows() [/COLOR][/B]method which returns array of records | |
Re: Use Connection.Execute SQLQueryString to Execute the Query. [CODE=VB] Dim str as String str =" SELECT * FROM paybook WHERE paybook.Field(0) = '"&text1.text&"'" Connection1.Execute str [/CODE] | |
Re: Hi, Use RichTextBox for editor. This control has SelectionColor property to change the color of the Selected Text. But selecting should be done by you | |
Re: Hi, I found two errors, It may be typo mistake 1. [iCODE]if(m_Login = null |= StrPassword = null)[/iCODE] can be changed as [iCODE]if(m_Login == null || StrPassword == null)[/iCODE] ___ 2. [iCODE] String StrSql = "Select userid,password Form Login Where userid="'+m_Login+'"";[/iCODE] can be changed as [iCODE] String StrSql = "Select … | |
Re: Hi, ReadLine () return a line from the Stream. you can use like this [CODE=VB] Dim loadf As New System.IO.StreamReader("c:/text.txt") TextBox1.Text = loadf.ReadLine() TextBox2.Text = loadf.ReadLine() Label2.Text = loadf.ReadLine() loadf.Close() [/CODE] | |
Re: Close a Form ? or Before close the Form Animate it then Close? | |
Re: Hi, From the Error, I think you are calling that Function without creating an Instance. For example Consider the Class [CODE=VB] Public Class A Public Sub Show() End Sub End Class [/CODE] This can be called as [CODE=VB] Dim Obj as A Obj = New A() Obj.Show() 'But not A.Show() … | |
Re: Hi, See this Thread [URL="http://www.daniweb.com/forums/post667710.html#post667710"]http://www.daniweb.com/forums/post667710.html#post667710[/URL] | |
Re: Ok, Try out your assignment, If you face any difficult then post here | |
Re: Is Timer1 the member of Current Form? Have you check it? Also Where you declared Timer1? | |
Re: Hi, Change your code [CODE=VB] Public Function numeromenor() If numero1 < numero2 And numero1 < numero3 Then Return numero1 ElseIf numero2 < numero1 And numero2 < numero3 Then Return numero2 ElseIf numero3 < numero1 And numero3 < numero1 Then Return numero3 Else numero1 = numero2 Or numero1 = numero3 Or … | |
Re: Hi, You can use Load() statement to create textbox dynamically. but you must have atleat one textbox in control array. |
The End.