568 Posted Topics

Member Avatar for khair.ullah

please check these links , hope they will help you. [Click Here](http://www.codeproject.com/Articles/123441/SQL-Server-2008-Backup-and-Restore-Databases-using) [Click Here](http://social.msdn.microsoft.com/Forums/en-US/sqlsmoanddmo/thread/5638666e-cd2e-467d-bd03-6d20e2cbbe1b/) regards

Member Avatar for M.Waqas Aslam
0
184
Member Avatar for Oneryavuz

yes you can join then or use nested select statements ,like this Customers ---------- custid custname Interest --------- interestid custid interestname now you have to get all the customers who have interest in football , you can do like this . select c.custid,c.custname ,i.interestname from customers c inner join interest …

Member Avatar for Oneryavuz
0
145
Member Avatar for iqra.cs786

just right click on your project , select properties then select compile option then select advance compile option then there will a combobox with value .net 4 Client Profile just select .net framework 4 . you will have crystal report viewer for use :) if this helped you please vote …

Member Avatar for M.Waqas Aslam
0
133
Member Avatar for Hani1991

quran is word of God , and there is no changes in it even after 1400 years .There are currently millions of muslims who fully memorised same exact qur'an down to the dots and crosses so to speak These millions of people are spread in all corners of the world …

Member Avatar for Reverend Jim
-5
1K
Member Avatar for khair.ullah

just set the combobox.valuemember = your_field_name , and where you are getting the value of combobox just use this combobox.selectedvalue . Regards

Member Avatar for M.Waqas Aslam
0
137
Member Avatar for ztirt
Member Avatar for melodies

mohanrajan , always start new thread for your new questions. well yes you can use glass effect on your forms , but for this make sure your application is running on windows 7 , because in windows xp this functionality will not work. Regards

Member Avatar for M.Waqas Aslam
0
152
Member Avatar for pipelian

i dont know much about the list view control , but here is a code to get value of the cell from the datagrid whos checkbox is checked , dim myarr as new ArrayList for i = 0 to datagridview1.rows.count-1 if datagridview1.item(1,i).value = true then myarr.add(datagridview1.item(0,i).value.tostring()) end if next this …

Member Avatar for M.Waqas Aslam
0
545
Member Avatar for iqra.cs786

can you please tell me your tables fields .so that i can write query for this prob ? Regards

Member Avatar for M.Waqas Aslam
0
170
Member Avatar for opman234

just change this line of code cmd.CommandText = "Update HallTransaction Set status=@status where ID=@ID" Regards

Member Avatar for M.Waqas Aslam
0
351
Member Avatar for Ao.No.Enjeru

are you populating your grid from database ? or there are pre-define rows in your datagrid ? Regards

Member Avatar for Ao.No.Enjeru
0
161
Member Avatar for ulasoc

hello use this Dim fs As IO.FileStream = New IO.FileStream("d:\a.txt", IO.FileMode.Append) Dim sw As IO.StreamWriter = New IO.StreamWriter(fs) sw.Write("TEXT" & vbCrLf) sw.Close() Regards

Member Avatar for ulasoc
0
423
Member Avatar for iFrolox

hello ! please check the attach sample project of count down counter . here is a code , i have three textboxes , txtsec , txtmint , txthours. and a timer here is a code . Dim sec As Int16 Dim mint As Boolean 'use this code at the timer …

Member Avatar for iFrolox
0
344
Member Avatar for themaj

if you are using vs2008 then you can make applications on 2.0 , 3.0 and in 3.5 frameworks. and if you are working on 2010 then you can make applications of 4.0 framework.

Member Avatar for M.Waqas Aslam
0
314
Member Avatar for alexandra.lopez.94043

you can do somthing like this . add a module and just call this public sub at your form when ever you want to clear your textboxes or other controls . Public Sub ClearAllTextBox(ByVal myControl As Object) Dim i As Integer For i = 0 To myControl.Controls.Count - 1 If …

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

where you want to perform this action , i mean where you want to press the tab key to populate your grid from your database. Regards

Member Avatar for M.Waqas Aslam
0
100
Member Avatar for ashuag

well there is a site [Click Here](http://www.planet-source-code.com/) you can find your required application from here , hope this will solve your prob Regards

Member Avatar for M.Waqas Aslam
0
151
Member Avatar for rhm532005

hello try something like this. dim con as new sqlconnection("connection string") dim cmd as new sqlcommand con.open() cmd.connection = con cmd.commandtext = "update table1 set col1=@col1,col2=@col2,col3=@col3,col4=@col4 where recid = @recid" cmd.paramerter.addwithvalues("@col1",txt1.text) cmd.paramerter.addwithvalues("@col2",txt2.text) cmd.paramerter.addwithvalues("@col3",txt3.text) cmd.paramerter.addwithvalues("@col4",txt4.text) cmd.paramerter.addwithvalues("@recid",txtRecId.text) cmd.ExecutenonQuery() con.close() hope this will help you . Regards

Member Avatar for M.Waqas Aslam
0
97
Member Avatar for m.tompkinsnz

try something like this dim con as new sqlconnection("connection string") dim cmd as new sqlcommand con.open() cmd.connection = con cmd.commandtext = "update table1 set col1=@col1,col2=@col2,col3=@col3,col4=@col4 where recid = @recid" cmd.paramerter.addwithvalues("@col1",txt1.text) cmd.paramerter.addwithvalues("@col2",txt2.text) cmd.paramerter.addwithvalues("@col3",txt3.text) cmd.paramerter.addwithvalues("@col4",txt4.text) cmd.paramerter.addwithvalues("@recid",txtRecId.text) cmd.ExecutenonQuery() con.close() i typed it here so may be there are some spelling mistakes in it …

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

hello , i am getting error on it , object refrence is not set to an instance of an object , my code is if (dgvBlockSites.Rows[j].Cells[1].Value.ToString() != "-1") { //-------------- some code here } i dont know what is wrong with it , i have 4 or 5 rows in …

Member Avatar for waqassilat
0
120
Member Avatar for M.Waqas Aslam

hello ! i want to restrict user to not visit www.abc.com site , from my pc , how can i do it in c# , user will use chrome , firfox , IE etc , Regards

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

hello ! i am working on a simple application that can block the sites ,after searching i found that if i add name of the site in c:\windows\system32\drivers\etc\hosts then i can block those sites , for this i want to open this hosts file in my textbox with administrator rights …

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

hello ! use this code at the search textbox textchange event. Sub search() dim con as new sqlconnection("your connection string") con.open() dim dt as new datatable dim da as new sqldataadapter("select * from table1 where firstname like '%" & txtSearch.text & "%'",con) da.fill(dt) datagridview1.datasource= dt con.close() End Sub simple change …

Member Avatar for mzeewashooo
0
378
Member Avatar for prancode

shortcut key ? please explain little bit . and as i understand your question you can do like this. ' use this code on the textbox keypress event if e.keychar = chr(keys.f3) textbox1.text = now().tostring end if hope this will help you. Regards

Member Avatar for Pgmer
0
293
Member Avatar for M.Waqas Aslam

hello! i am developing a simple application which will get data from different database like mssql , access , foxpro , and after getting data it will create 4 text files tows.txt , customer.txt , product.text , trasection.txt , prob is this that i am very new to foxpro , …

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

hello ! i am now working on office management system. i have a code to disable the usbport , i want to use it in win7 , before this i already used it in other project on windows xp , it works fine , but now in windows 7 it …

Member Avatar for M.Waqas Aslam
0
118
Member Avatar for HibaPro
Member Avatar for Begginnerdev
0
280
Member Avatar for HibaPro
Member Avatar for HibaPro
0
153
Member Avatar for vincent5487

i cant get your point please be more specific , and little bit explain ,it .

Member Avatar for hericles
0
759
Member Avatar for M.Waqas Aslam

hello ! i am working on a simple parental lock application . i want to know all the websites visited by the user , i mean , for example now i am visiting daniweb.com , is there is any way to get the name of daniweb.com and after getting it …

Member Avatar for Pride
0
115
Member Avatar for kkhembrom

and you can use this query also. select * from myTable where MovieName = 'VI' Regards

Member Avatar for Reverend Jim
0
102
Member Avatar for romanzo

can you please just tell me your requirements , not code or what you have done so far , just to the point tell me your requirements.

Member Avatar for romanzo
0
329
Member Avatar for abhi415

please always ask to the point question , this will make easy to others to help you , now tell me the basic prob you are facing . so that i can better answer your prob. Regards

Member Avatar for M.Waqas Aslam
0
159
Member Avatar for marky101

the better way is to auto save your data after specific time as in Visual studio .VS save data i think in every 5 mint , in a temp file , so if your system restarted abnormally then VS ask you on the next start that you want to restore …

Member Avatar for M.Waqas Aslam
0
215
Member Avatar for marky101

well i think we can only get the system date time , and we consider it orignal date time , .you can get time from any server , or from any site .

Member Avatar for gusano79
0
162
Member Avatar for tendaimare
Member Avatar for sean.downes.96

try somthing like this. 'on form1 we have two textboxes (txtName ,txtAge) and one button and on form2 we have grid having two columns , 'name and age . 'now use this code at the button click event on the form1. form2.show() 'now use this code at the load event …

Member Avatar for sean.downes.96
0
283
Member Avatar for alexandra.lopez.94043

change this code with this Checkbox1.Text * TextBox2.Text ' it your code change it val(Checkbox1.Text) * val(TextBox2.Text) ' use this code.

Member Avatar for M.Waqas Aslam
0
119
Member Avatar for alexandra.lopez.94043
Member Avatar for M.Waqas Aslam
0
241
Member Avatar for iampord

if you are using vs2010 then GetAsyncKeyState lib will not work , regards

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

hello ! i want to connect foxpro db file .dbf and want to show all the records in my grid . i am using vs2008 can anyone give some idea. Regards.

Member Avatar for pritaeas
0
43
Member Avatar for Jake.20

please have a look on this link [Click Here](http://forums.asp.net/t/1163565.aspx/1)

Member Avatar for samsylvestertty
0
209
Member Avatar for cheesepotato
Member Avatar for gefen2215

ok do like this , for example your 2nd column of grid is you amount column , which you want to sum , dim mySum as integer mySum = 0 for i = 0 to datagridview1.rows.count -1 nySum = val(datagridview1.item(1,i).value.tostring) + mySum Next This will Sum all the rows of …

Member Avatar for TnTinMN
0
106
Member Avatar for alexandra.lopez.94043

well simple use this. msgbox(txtbox.text) and if you have so many txtboxes and want to show the data in masg then you can use this. msgbox("name:" & txtName.text & vbCrlf & "Age:" & txtAge.text) hopr this will help you. Regards.

Member Avatar for Reverend Jim
0
201
Member Avatar for darthswift00

yes just after the code where you assigning the datasource to your grid use this code. datagridview1.column(0).headertext = "your text" datagridview1.column(1).headertext = "your text" . . . Regards

Member Avatar for daniel955
0
137
Member Avatar for iFrolox

well i think , you can just make two public functions for got focus and lost focus , and just call them , this will reduce your code ,

Member Avatar for iFrolox
0
2K
Member Avatar for kimlong2012

please check this out [Click Here](http://www.daniweb.com/software-development/vbnet/code/366392/encryption-and-decryption-functions-in-vb.net) hope this will solve your prob :) Regards

Member Avatar for M.Waqas Aslam
0
90
Member Avatar for kimlong2012

yes you can easily do this , first just add a bindingsource in your form and do like this. dim con as new sqlconnection("your connection string") dim dt as new datatable con.open() dim da as new sqldataadapter("select * from table1 ",con) da.fill(dt) bindingsource1.datasource=dt con.close() after this you can call following …

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

hello ! may God bless all of you, i m good in mssql , but this is very first time that i am very confuse , the case is , i have a table , having fields 1- ContactPersonId 2- Name and 2nd table having fields 1- recId 2- ContactPersonId …

Member Avatar for M.Waqas Aslam
0
250

The End.