670 Posted Topics
Re: you dont need a liscence to sell ur program written in VB. all u need is to buy a liscenced visual studio to enable create robust applications. You can get the free edition from Microsoft website which is the Express Edition | |
Re: [CODE] Dim objConnection As New SqlConnection _ ("server=localhost;database= dbase-name;" + _ "user id= id;password= @password;") [/CODE] | |
Re: [CODE] Private Sub FindUser() Dim objConnection As New SqlConnection _ ("server=localhost;database= MSS;" + _ "user id=sa;password=clement;") Dim objDataAdapter As New SqlDataAdapter( _ "SELECT * FROM User WHERE state = '" + txtSearch.Text + "'", objConnection) Dim objDataSet As DataSet Dim objDataView As DataView Dim objCurrencyManager As CurrencyManager objDataSet = New … | |
Re: it would be better you use a Microsoft Report Viewer to display your data instead of a datagridview. this will enable you ssave your data in both excel and pdf formats | |
Re: post the solution and just mark the post as solved | |
Re: [CODE] Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSearch.TextChanged If Not IsNumeric(.Text) Then MessageBox.Show("please enter a valid string", "Error" _ , MessageBoxButtons.OK, MessageBoxIcon.Information) End If [/CODE] | |
Re: you can enter these lines of code in areas where you have such errors. you have to convert the rows in a datatable to type 'string before' you can place them in textboxes. [CODE] For Each myDataRow As DataRow In objdatatable.Rows TextBox1.Text = Convert.ToString(myDataRow("item1")) TextBox2.Text = Convert.ToString(myDataRow("item2")) TextBox3.Text = Convert.ToString(myDataRow("item3")) … | |
Re: [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try If TextBox1.Text = "students" And TextBox2.Text = "amaer" Then Dim a As New Form2 a.Show() Me.Hide() Else 'integer variable to count the number of times 'the user has tried loggin in Static count As Integer = … | |
Re: [CODE]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'increase progress bar by value of 20 '// check if not at Maximum to not go over, then add some value. If Not ProgressBar1.Value = 100 Then ProgressBar1.Value += 20 if ProgressBar1.Value = 100 Then '// check if … | |
Re: i wont give you a particular topic, instead i would give an advice as you suggested. i feel you search within yourself, if you are good in more than one language then know the one you perform best in...thats one step step 2: get a topic you know would be … | |
Re: why not throw your question on board | |
Re: it sure wont work. the .exe file is more like a compiled copy of your program and definitely when it runs, its gonna search for your MS Access database, when it does not find it, it gives you the error | |
Re: for sure the folder is invisible. if you're using windows vista or higher, click on the start button, type folder options, view tab, select the option button for show hidden files and folder. if windows xp, then open my computer, select tools menu, folder options, views tab, show hidden files … | |
Re: in your database you should have a primary key. this should be a unique number to identify each train you have on course. with this, you can use your sql SELECT statement to get the information you want for example, SELECT * from Trains WHERE TrainID = "354523" | |
Re: i would suggest you change the format of the field in MS Access from date/time to short date cos sometimes MS Access can be hell. just use the "Text" format of access, this would accept any data format. if this does not work, then send me a message so i … | |
Re: to save the contents of a text box: it depends if you are saving to a file or to a DBMS for a DBMS like sql server, just get your connection strings right, then use this textbox1.databingds(text, datasource, connectionstring) try it yourself but if you cant then i'll send you … | |
hi guys. its been a long time but sincerely, am happy to be back. now i've got a problem on my mind and that is; am trying to develop a database application but i want it to be a console application. the major issue is that i dont know how … | |
Re: show some effort | |
Re: set the tabindex property of the textbox you want to have the focus when you start the program to zero (0), then set others according to the way you want the user to move when the tab key is pressed. | |
Re: if you are new, its better you get down to a language, study it and get your hands on something. even so called professionals learn everyday, at least thats my believe. talking of voting system, what type? |
The End.