568 Posted Topics

Member Avatar for amf101
Member Avatar for dilse4sk

hello ! if you want to bind combobox then try this [CODE] dim con as new sqlconnection("string") con.open() dim da as new sqldataadapter("your sql query",con) dim dt as datatable da.fill(dt) 'now here you can bind your combobox combobox.databinding.add("selectedvalue",dt,"your database field name",true) 'combobox.databinding.add("selectedvalue",dt,"CityID",true)--like this [/CODE] If this code solve your prob …

Member Avatar for pritesh2010
0
185
Member Avatar for aristosv

hello! you can use this code at the click event of the listbox [CODE] button1.enable= true [/CODE]

Member Avatar for aristosv
0
655
Member Avatar for LearnVBnet

hello LearnVBnet! i read this thread more then 5 times , but i still not able to understand what is your question "How to NoT In Paylist LvList where InvNomer have add to dgv Payment Not Display InvNomer in LvList Paylist where InvNomer in Dgv Payment." this the description of …

Member Avatar for LearnVBnet
0
154
Member Avatar for markdean.expres

you can do this by using query , can you please tell me about table and fields and on which fields you want to set you record selection criteria . Regards

Member Avatar for M.Waqas Aslam
0
106
Member Avatar for aishapot

use this code to save pic [CODE] 'use this code instead of this code ( cmd.Parameters.Add(New SqlParameter("@picture", SqlDbType.Image)).Value = arrimage) Dim myFile As String = picture If picture.ToString.Length <= 1 Then Me.myCmd.Parameters.Add("@Picture", SqlDbType.Image).Value = Convert.DBNull Else Dim myStream As FileStream = New FileStream(myFile, FileMode.Open) Dim myImageBuffer() As Byte = New …

Member Avatar for aishapot
0
963
Member Avatar for JustineAubrey

hello ! check this code this will show some records in datagrid and some of them in textboxes as you mentioned in your snap shoot. [CODE] dim con as new sqlconnection("connection string") dim da as new sqldataadapter("select * from table or your query",con) dim dt as datatable da.fill(dt) 'take a …

Member Avatar for JustineAubrey
0
254
Member Avatar for jcgldr

i cant get your point , i think you want to select all records from persons table of selected person id in grid , if i am wrong then please correct me , well for simple select case you can do like this [CODE] dim myCmd as string myCmd = …

Member Avatar for M.Waqas Aslam
0
328
Member Avatar for M.Waqas Aslam

hello! i am working on a Asp.net project using C#, now i want to connect mssql server 2008 using JS or AJAX , i am very new with JS so i have no idea where to start .can anyone help me in this . Regards M.Waqas Aslam

Member Avatar for stbuchok
0
200
Member Avatar for pikkas

hello! how can this code update database :P you are using select statement instead of update :) Regards

Member Avatar for M.Waqas Aslam
0
102
Member Avatar for GAiXz

Hello ! i watched this given video . it is very simple i write this code right here so there may be some spelling mistake in it. check this out dgvTableList---is a grid which will show tables of selected database dgvAllRecords---it will show all records of the selected table [CODE] …

Member Avatar for GAiXz
0
152
Member Avatar for skp03

skp03 , can you please post some of your code or snap shoots of your forms so that i can better ans you . and if you are working in C# then it is better to post this question in C# forum so that someone can better answer your prob. …

Member Avatar for M.Waqas Aslam
1
94
Member Avatar for vivekanandaan

check this , may be it helps you [CODE] dim myCon as new sqlconnection("your connection string") dim cmd as new sqlcommand myCon.open() cmd.connection=myCon cmd.commandtext="insert into tablename (field1,field2,field3) values (@field1,@field2,@field3)" cmd.parameter.add("@field1",______).value = txtvalue1.text 'in place of ___ write datatype of your field in your db. cmd.parameter.add("@field2",______).value = txtvalue2.text cmd.parameter.add("@field3",______).value = txtvalue3.text'if …

Member Avatar for M.Waqas Aslam
0
138
Member Avatar for Amstarr
Member Avatar for chitrasuriya

hello ! you can do it like this [CODE] 'first import system.data.sqlclient then dim myCon as new sqlconnection("your connection string") dim cmd as new sqlcommand myCon.open() cmd.connection=myCon cmd.commandtext="insert into tablename (field1,field2,field3) values (@field1,@field2,@field3)" cmd.parameter.add("@field1",______).value = txtvalue1.text 'in place of ___ write datatype of your field in your db. cmd.parameter.add("@field2",______).value = …

Member Avatar for M.Waqas Aslam
0
212
Member Avatar for Eternal Newbie
Member Avatar for Tobyjug2222

your given proj is not working at my end and it gives an error when i run it .you should use break points in your code to solve this type of issues .please in order to get help , post your code or again give new link of working project …

Member Avatar for codeorder
0
251
Member Avatar for Contagious98

yes it is possible , but can you tell me what you want to print ,every time before printing you want to change amount , and name ,which is not a good approach. as you said that you want to print a payment receipt you can do like this [CODE] …

Member Avatar for M.Waqas Aslam
0
3K
Member Avatar for LearnVBnet

try this code [CODE] 'use this code on the keydown event of the listbox If e.KeyData = Keys.Down Then ListBox1.SelectedItem = ListBox1.Items(0) End If If e.KeyData = Keys.Up Then ListBox1.SelectedItem = ListBox1.Items(0) End If [/CODE] Hope this helps you Regards

Member Avatar for LearnVBnet
0
121
Member Avatar for FrodoBaggins

hello ! array in vb.net is defined like this [CODE] dim array(5) as string [/CODE] hope this will work fine :P Regards

Member Avatar for codeorder
0
126
Member Avatar for honeybee2090

hello honeybee2090! here is simple code to perform same action , [CODE] 'use this code at you button click event Dim i As Integer Dim x As Integer Dim no As Integer Dim rec As New ArrayList For i = 0 To ListBox1.Items.Count - 1 no = 0 A = …

Member Avatar for honeybee2090
0
112
Member Avatar for jtodd

hello ! take a look on this link[URL="http://www.daniweb.com/software-development/vbnet/threads/21529"]http://www.daniweb.com/software-development/vbnet/threads/21529[/URL]

Member Avatar for M.Waqas Aslam
0
149
Member Avatar for Hawk123

hello! in you db , date format is same as you specified in your windows , so change the date format .secondly users have concern with the interface , time showing on there datetime picker , there you can set the format property custom and set your required format of …

Member Avatar for poojavb
0
106
Member Avatar for rhone0809

it is not possible ,if you use order by desc then it will sort all records descending order . but you want just to show single column like this , this will will effect all the related records

Member Avatar for rhone0809
0
130
Member Avatar for M.Waqas Aslam

hello ! i am developing an desktop application , i want to make my menus just like in VS2008 have tool box , ,when we click on the main tab it will open and slid down , i want to make same thing , is there any one who guide …

Member Avatar for M.Waqas Aslam
0
2K
Member Avatar for M.Waqas Aslam

hello ! look , for example i have 2 textboxes in my vb form, i want that when i press enter key the focus move from 1st textbox to 2nd textbox , i use this code on my every control to move focus [CODE] if e.keychar = chr(keys.enter) then textbox2.focus …

Member Avatar for codeorder
0
1K
Member Avatar for M.Waqas Aslam

hello ! i want to make a xml file to store my Settings such as server name , user name , and password , etc , i try to search how to read and write xml file i found this code for writing an xml file it works fine for …

Member Avatar for M.Waqas Aslam
0
608
Member Avatar for M.Waqas Aslam

hello ! I want to use JSON in my asp.net project using c# .how can i do that , i am very new in JS and JSON , please help me so that i can start work .i googled about it , and read some posts on different forums and …

Member Avatar for M.Waqas Aslam
0
190
Member Avatar for toomutch

try to use mouse hover event of the grid and place your binding code in it , Regards

Member Avatar for toomutch
0
249
Member Avatar for dweebmasterkun

hello ! i think you have to code at grid double or single click event . it will work fine :) Regards

Member Avatar for poojavb
0
967
Member Avatar for tashee2007

this error occurs only when we try to entered the foreign key which is not in its parent table ,sorry for my bad english. first try to look at your relations between hrBranchSetup and hrBranchSetup_Audit , hrBranchSetup has a PK OsID and hrBranchSetup_Audit has FK OsID .you should have PK …

Member Avatar for tashee2007
0
160
Member Avatar for vikramaditya234
Member Avatar for vikramaditya234
0
150
Member Avatar for NewUserVB.Net

hello! i think you want to develop POS (point of sale) software , please google it by typing POS , there may be some demo out there , and also some online guide , that will help you allot Regards

Member Avatar for M.Waqas Aslam
0
109
Member Avatar for JustineAubrey

hello! it takes long time to read your all code , but as far as concern about update query ,you can do like this [CODE] dim mycon as new sqlconnection("connection string") dim cmd as new sqlcommand mycon.open() cmd.connection= mycon cmd.commandtext="update tablename set dbcolumnname1=@Column1,dbcolumnname1=@Column2,dbcolumnname1=@Column3 where recID=@RecID" cmd.parameters.addwithvalue("=@Column1",txt1.text) cmd.parameters.addwithvalue("=@Column2",txt2.text) cmd.parameters.addwithvalue("=@Column3",txt3.text) cmd.parameters.addwithvalue("=@recID",txtRecID.text) cmd.executenonquery() …

Member Avatar for GAiXz
0
222
Member Avatar for M.Waqas Aslam

hello ! i am working on an application and i want to connect it with mssql database , i dont know about the version of installed mssql server at the pc , how can i get the version of installed mssql server so that i can connect my application with …

Member Avatar for cguan_77
0
180
Member Avatar for rushikesh jadha
Member Avatar for Rashakil Fol
0
191
Member Avatar for M.Waqas Aslam

hello ! i have experience in VB.net,C# and MSSQL2000,2005,2008r2 .but today my boss assign me a task to connect mssql server 2008 by using JS or JSON ,both are unknown for me ,:( i dont have any knowledge about JSON and JS , can any one help me how to …

Member Avatar for darkagn
0
237
Member Avatar for Rock_IT

hello ! use this code , [CODE] Dim MyConn As New SqlConnection("Data Source=(local);Initial Catalog=dbname;Integrated Security=SSPI;") [/CODE] Regards M.Waqas Aslam

Member Avatar for princenathan
0
223
Member Avatar for srm2010

hello ! [CODE]rpt.RecordSelectionFormula = "{cashtbl.stdid}='" +Convert.ToInt32(textBox2.Text) + "'";[/CODE] in above line you are converting textbox value in to integer and after that you are using '' and dealing like a string .use this [CODE] rpt.RecordSelectionFormula = "{cashtbl.stdid}= +Convert.ToInt32(textBox2.Text); [/CODE] Hope this will solve your prob,if yes please mark your thread …

Member Avatar for srm2010
0
554
Member Avatar for skran

hello skran ! are you using sql query to get filtered records from database and show them in datagrid.??? Regards

Member Avatar for M.Waqas Aslam
0
418
Member Avatar for skran

hello ! you are adding txtPostcode.text and txtDMA.text in your Query , this totally wrong . you are using totally wrong logic for this query , can you please tell me what you want to get from this query , well you can do like this [CODE] dim Query as …

Member Avatar for skran
0
228
Member Avatar for GTTravis

hello ! you can do like in this way [CODE] 'place this code at the single click event of the grid txt1.text = datagrid.item(0,datagrid.currentrow.index+1).value.tostring [/CODE] hope this will solve your prob :) Regards

Member Avatar for M.Waqas Aslam
0
80
Member Avatar for M.Waqas Aslam

hello ! i am very new in webdevelopment , i want to use ExtJs , please help me , i download the extjs-4.0.1 .now please tell me how to import it in my project , i mean is i copy this extjs-4.0.1 to my project or is there is another …

Member Avatar for stbuchok
0
122
Member Avatar for M.Waqas Aslam

hello ! my boss assign me a task to connect mssql server 2008 and show records in table using JS and JSON , i m very new in asp.net , can any one me help me where to start my work and how i can complete this , can any …

Member Avatar for mani-hellboy
0
181
Member Avatar for M.Waqas Aslam

hello ! i am working on an application and i want to connect it with mssql database , i dont know about the version of installed mssql server at the pc , how can i get the version of installed mssql server so that i can connect my application with …

Member Avatar for cyberdaemon
0
286
Member Avatar for collin_ola
Member Avatar for Awais Ali

hello Awais try this code [CODE] Dim cn As ADODB.Connection 'ADODB Connection Object Dim rs As New ADODB.Recordset 'Recordset Object Dim sqlStr As String ' String variable to store sql command Set cn = New ADODB.Connection cn.ConnectionString = "Provider = MSDASQL;" & _ "Data Source=LocalServer;" & _ "Initial Catalog=sample;" & …

Member Avatar for kannadhasan
-1
142
Member Avatar for harrispc

hello! you can do like this harrispc [CODE] 'put this code on the load event of the form 'before coding set selection property of grid to full row select DataGridView1.Focus() DataGridView1.Rows.GetFirstRow(DataGridViewElementStates.Visible) 'and shann1718 u can do like this DataGridView1.Rows.GetLastRow(DataGridViewElementStates.Visible) [/CODE] hope this will helps you

Member Avatar for M.Waqas Aslam
0
1K
Member Avatar for Quinncunx

hello ! you can do like this [CODE] 'enable timer by using this code timer1.enable= true 'now give interval , 1000 = 1 sec you want to perform action after 60 sec so timer1.interval=60000 'now code this on the timer tick event My.Computer.Audio.Play("ur sound file path") [/CODE] hope this will …

Member Avatar for M.Waqas Aslam
0
156
Member Avatar for ozzcar

hello ! use this code to insert your data in your database table [CODE] dim myCon as new sqlconnection("string_connection") dim cmd as new sqlcommand mycon.open() cmd.connection = myCon cmd.commandtext= "insert into CheckIn(field1,filed2,field3,field4...." values (@field1,@field2,@field3,@field4.....) cmd.parameter.add ("@field1".sqldatatype.varchar(50)).value = txtbox1.text cmd.parameter.add ("@field2".sqldatatype.varchar(50)).value = txtbox2.text cmd.parameter.add ("@field3".sqldatatype.varchar(50)).value = txtbox3.text cmd.parameter.add ("@field4".sqldatatype.varchar(50)).value = txtbox4.text …

Member Avatar for M.Waqas Aslam
0
182

The End.