94 Posted Topics

Member Avatar for mCardos

[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

Member Avatar for mCardos
0
71
Member Avatar for nitewolfgtr
Member Avatar for SerapH

[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 …

Member Avatar for manal
0
172
Member Avatar for culebrin

>`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)

Member Avatar for manal
0
306
Member Avatar for hirtej

[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 ?

Member Avatar for vuyiswamb
0
108
Member Avatar for dan_x1000
Member Avatar for sanhitabhide

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 …

Member Avatar for manal
0
136
Member Avatar for mickinator
Member Avatar for jasimp
0
64
Member Avatar for apchidara

[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

Member Avatar for YHUBZ
0
103
Member Avatar for nice_true

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]

Member Avatar for manal
0
107
Member Avatar for dnabukalu

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 :)

Member Avatar for manal
0
92
Member Avatar for apchidara

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 :)

Member Avatar for apchidara
0
99
Member Avatar for preetham.saroja

[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 …

Member Avatar for manal
0
113
Member Avatar for umamaheswari

this site is good for beginners [url]http://www.homeandlearn.co.uk/NET/vbNet.html[/url] :) GoOd Luck

Member Avatar for vbsqluser
0
114
Member Avatar for kishorJagtap

[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 - …

Member Avatar for manal
0
172
Member Avatar for Alphard

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 …

Member Avatar for manal
0
69
Member Avatar for preetham.saroja

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 …

Member Avatar for preetham.saroja
0
105
Member Avatar for pep_castefa

[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 …

Member Avatar for pep_castefa
0
119
Member Avatar for choudhuryshouvi

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 …

Member Avatar for manal
0
86
Member Avatar for preetham.saroja

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

Member Avatar for preetham.saroja
0
141
Member Avatar for bu hadi

[url]http://www.startvbdotnet.com/controls/printdialog.aspx[/url] read this and i hope it will help u to write ur own code

Member Avatar for manal
0
51
Member Avatar for suvo_bbsr

[url]http://www.homeandlearn.co.uk/NET/nets12p4.html[/url] I hope this tutorial will help

Member Avatar for manal
0
70
Member Avatar for lukis

[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]

Member Avatar for manal
0
102
Member Avatar for aerosmith

the type of textbox.text and label.text is string , i think u need to Convert it to integer or double

Member Avatar for matale
0
98
Member Avatar for rwagnes
Member Avatar for manal
0
72
Member Avatar for ScatterMap

[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 …

Member Avatar for manal
0
192
Member Avatar for hoosier23

[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 …

Member Avatar for mhovidz
0
209
Member Avatar for ksa

[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

Member Avatar for ksa
0
110
Member Avatar for yaya_star

You need to add reference to ur projeact Project --->> Add Reference --->> from the .Net tab select System.Web.dll GoOd Luck

Member Avatar for yaya_star
0
98
Member Avatar for viet_mafia

<?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 …

Member Avatar for rgtaylor
0
335
Member Avatar for manal

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

Member Avatar for MattEvans
0
220
Member Avatar for LennieKuah

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 …

Member Avatar for LennieKuah
0
168
Member Avatar for lukis

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 …

Member Avatar for lukis
0
118
Member Avatar for muhammad_owais

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 …

Member Avatar for sreedharan@247
0
191
Member Avatar for manal

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

Member Avatar for Amit007
0
146
Member Avatar for TurboFreak

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 …

Member Avatar for TurboFreak
0
160
Member Avatar for thijs_straathof

hi try this Dim kubus As [COLOR="Red"]New[/COLOR] Form2 and this for all ur form i hope it help

Member Avatar for williamrojas78
0
111
Member Avatar for Preetha

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

Member Avatar for manal
0
44
Member Avatar for ATS

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]

Member Avatar for manal
0
85
Member Avatar for furyknight

hi... try this website [url]http://www.functionx.com/vbnet/oledb/Lesson01.htm[/url] i hope it help u

Member Avatar for manal
0
95
Member Avatar for DATABASE

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...

Member Avatar for manal
0
143
Member Avatar for DATABASE

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

Member Avatar for DATABASE
0
327
Member Avatar for manal

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 …

Member Avatar for manal
0
87
Member Avatar for pittuser

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

Member Avatar for manal
0
88

The End.