94 Posted Topics
Re: [QUOTE][B]int multiple = 0;[/B][/QUOTE] here is the error when multiple= 0 then it never enter the for loop since 1>multiple just make multiple =2 and it should work | |
| |
Re: [QUOTE] Example: If txtUserID and txtPassword = True then [/QUOTE] while you configure your data adapter , the sql statment will be something like this [CODE]Select Name, Surname from Tablel_name WHERE ([B]id=?[/B]) [/CODE] the question mark means that you will select specific row based on id (primary key) then in … | |
Re: >`daDocuments.Update(CType(bdsDocuments.DataSource, DataTable))` *I think* this not right , daDocuments.Update takes two argument one of them is dataset and the other is table OleDbDataAdapter1.Update(DataSet11, "table_name") also you can use OleDbCommandBuilder when DataTable maps to a single database table(means database table is not result of join operation) | |
Re: [CODE][COLOR="black"]textbox1.databinding[B][COLOR="red"]s[/COLOR][/B].add("text",me.ds,"master_dept.dept_name[B][COLOR="red"]"[/COLOR][/B])[/COLOR][/CODE] [CODE]conn.connectionstring=""[/CODE] here you should write the connectionstring what the error you got ? | |
Re: vb.net is easy to learn , I learned it to do my final project There are many good books for learning vb.net that you can buy. See this [URL="http://visualbasic.about.com/od/vbbooks/l/aa112002a.htm"]link[/URL] the implementation (writing the code ) of your system will be the last step you do , you need now to … | |
Re: [QUOTE]select DISTINCT[[B]name of my field[/B]] from table_name [/QUOTE] the reason is this query differ from the orginal one . The [I]name of my field[/I] must be the same in all queries | |
Re: yes it is possible [CODE] num = Me.DataSet11.Your_Table_name.Count For i = 0 To num - 1 If Me.DataSet11.Your_Table_name(i).Item("date")="1/1/1900" then Me.DataGrid1.Item(i, Column_index) = "#" End If Next [/CODE] | |
Re: maybe two users try to change the same database at same time , read this [URL="http://msdn2.microsoft.com/en-us/library/system.data.dbconcurrencyexception(VS.80).aspx"]link[/URL] and [URL="http://msdn2.microsoft.com/en-us/library/ms171936(VS.80).aspx"]this[/URL] too good luck :) | |
Re: according to this [URL="http://www.homeandlearn.co.uk/NET/nets4p12.html"]link[/URL] DidWork is integer variable [CODE]Dim DidWork As Integer = openFD.ShowDialog()[/CODE] so in this line [CODE]If DidWork <> DialogResult.Cancel Then[/CODE] u make sure that user did not choose cancel button in OpenFileDialog i hope thats help u :) | |
Re: [url]http://vbjunkies.com/Tutorial/47792CB0-0990-4BD8-BF84-B6063C4C9BBC.dcik[/url] [QUOTE] Every data bound control exposes an ItemDataBound event that we can handle. This event fires with each item that is data bound. In the case of a DataGrid, the ItemDataBound event fires for each DataGridItem (row) in the DataGrid. Since we can capture the ItemDataBound event for each … | |
Re: this site is good for beginners [url]http://www.homeandlearn.co.uk/NET/vbNet.html[/url] :) GoOd Luck | |
Re: [QUOTE]Dim conn As New SqlConnection(connstr1) Dim sql As String sql = "Select * from address1" 'Dim da As SqlDataAdapter Dim cmd As New SqlCommand(sql, conn) conn.Open() Dim ds As New DataSet() da = New SqlDataAdapter(sql, conn) da.Fill(ds, "Address1") maxrows = ds.Tables("Address1").Rows.Count [COLOR="Red"][B]inc = -1[/B][/COLOR] conn.Close() If inc <> maxrows - … | |
Re: What I understand that u want to code calculator and u asking about the equal_button I think u just need to know which button has been clicked (to determine either to add or subtract or whatever ) , so declare Boolean variables lets say add and subtract ,at start both … | |
Re: Ok Your code won't display the next record , it will always display the same record over and over , any way I think it’s the last one in table not the first. The problem is u not keep track of which the next record is ! the for loop … | |
Re: [CODE]Public Sub New(param1 As String, param2 as String) Me.New(param1) Try ... Catch ex As Exception Throw New Exception (...) End Try End Sub[/CODE] i think this will be enough , since the code of Me.New(param1) will be executed first , so u will catch the errors produced by the first … | |
Re: Set the multiselect property of OpenFileDialog to true [CODE]OpenFileDialog1.Multiselect = True[/CODE] After this the user can select more than one file by pressing shift and selecting the files you can get the names of all selected files by the property FileNames by writing something like this [CODE]Me.ListBox1.Items.Add(Me.OpenFileDialog1.FileNames(i)) [/CODE] Check this … | |
Re: I think there is ambiguity of the type of textbox , u need to decide whether it is Windows textbox or web control text box Try this [CODE]Dim age1 As Integer = CType(e.Item.FindControl("Age"), Web.UI.WebControls.TextBox).text[/CODE] Or [CODE]Dim age1 As Integer = CType(e.Item.FindControl("Age"), Windows.Forms.TextBox).text[/CODE] i hope this will help u | |
Re: [url]http://www.startvbdotnet.com/controls/printdialog.aspx[/url] read this and i hope it will help u to write ur own code | |
Re: [url]http://www.homeandlearn.co.uk/NET/nets12p4.html[/url] I hope this tutorial will help | |
Re: [QUOTE]custrow.AcceptChanges() Me.oledb_cust_edit.Update(Me.DataSet11)[/QUOTE] here is the problem after calling AcceptChanges the RowState property of custrow will be set to [B]Unchanged[/B] so Me.oledb_cust_edit.Update(Me.DataSet11) will return [B]NO[/B] change to the dataset to solve this just inverse the two lines [CODE]Me.oledb_cust_edit.Update(Me.DataSet11) custrow.AcceptChanges()[/CODE] | |
Re: the type of textbox.text and label.text is string , i think u need to Convert it to integer or double | |
Re: check this link [url]http://www.homeandlearn.co.uk/NET/nets12p5.html[/url] Good Lcuk | |
Re: [QUOTE]my first item in the ComboBox is NOT THE LAST ENTRY in my previous session. I want Index (0) to be the last URL entered. I cant seem to get the last URL typed to appear on the top of the list.[/QUOTE] [QUOTE]My other problem is that now that i … | |
Re: [QUOTE][CODE]strRevText = array.Reverse 'Here is my problem[/CODE][/QUOTE] thats becouse array.Reverse needs an argument and the other thing it does not produce value so you can't assign it to strRevText [QUOTE][CODE]strRevText = Me.lblResult.Text[/CODE][/QUOTE]here is problem too , here u do not show the result ! after the correction this is ur … | |
Re: [QUOTE]Second, I want the user drag and drop the parts of the picture into the playing board . How I can do that ? [B]I search on internet , but i couldn't find any helpful information[/B][/QUOTE] :-/ check this link [url]http://pages.cpsc.ucalgary.ca/~carman/481/examples/vb.net/dragdrop.html[/url] Good luck | |
Re: You need to add reference to ur projeact Project --->> Add Reference --->> from the .Net tab select System.Web.dll GoOd Luck | |
Re: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><title>BMI Calculator</title> <script type="[COLOR="Red"][B]text/[/B][/COLOR]javascript"> <!-- Hide script from non-script-friendly browsers function BMI Calculator(bmi) { var bmi = w / (h*h); return bmi; } //stop hiding the script--> </script> </head> <body> <script type="[COLOR="red"][B]text/[/B][/COLOR]javascript"> <!-- Hide script … | |
hi how can I change the cursor's shape im my site i found this [CODE]<A HREF="index.html" style="cursor:crosshair">home</a>[/CODE] this change it when it moves over the link but i want the cursor to be like this always thanx in advance | |
Re: hi , When you select the first row there is no problem coz the event fires once ok, but the problem accurse when you select other row coz the event (which is ListView1_SelectedIndexChanged) fires twice once for deselect the first row and the other for select the second row. So … | |
Re: hi select cobobox and in right you will see the properties 1/datasource make its value the table in dataset you want 2/ ValueMember make its value the coulmn name (name of custeomer) when your form load you fill dataset [CODE]Me.DataSet11.Clear() Me.OleDbDataAdapter1.Fill(DataSet11)[/CODE] now the list of comboBox has the names of … | |
Re: hi didnt understand what is ur problem how to increment? ok just double click on the Add Item button then in it write the code that must happen if it pressed like item no=item no+1 and then display it in the text box u want and show the message of … | |
hi every one i wrote code for printig using vb.net 2003..i have problem with print preview that when it show up and i just close it ..it start printing... i hope any one can help me.. thanx | |
Re: hi TurboFreak you have two problems First :- Gr1 = InputBox("Please enter " & Student & "'s first test score:", "First Test Score") while you have defined Gr1 as single if user entered any thing rather than numbers the program crash.....so first thing define Gr1 as string Second If Not … | |
Re: hi try this Dim kubus As [COLOR="Red"]New[/COLOR] Form2 and this for all ur form i hope it help | |
Re: hi from the properties of that textbox....make the MaxLength=10 and u need to do some function in order to validate data that has been entered | |
Re: hi here is the link of subject of how to print form i didn't try it my self but hope it help u [url]http://www.daniweb.com/techtalkforums/thread8575.html[/url] | |
Re: hi... try this website [url]http://www.functionx.com/vbnet/oledb/Lesson01.htm[/url] i hope it help u | |
Re: hi.... i tryed ur code after added these 2 lines and it works applicationWord = CreateObject("Word.Application") documentWord = applicationWord.Documents.Add u need to check the dataset if it has value... | |
Re: hi .... i did this ..first u need dataset and data adapter... then u will go through each row in dataset and collect the items in one string...then use CheckedListBox1.Items.Add(the string u collect) ok i hope this will help | |
Slam evey one... i have question i hope i find its answer here..... i want to read date from datatimepicker that user select then store value in database i know how to connect to database and how to get value from datetimpicker but need to know how to store it … | |
Re: Label2.Text = Int(Rnd() * 6) + 1 Label3.Text = Int(Rnd() * 6) + 1 i think u want to display die 1 an die2 in label2 and label3...but u call the Rnd again......which give different value each time |
The End.