568 Posted Topics

Member Avatar for M.Waqas Aslam

hello ! i want to disable my usb port using c# or vb.net ,is it possible to do so using .net ? if yes then any idea how i can do this ? Regards

Member Avatar for PriyaVijay
0
528
Member Avatar for de Source

use this ddl_Course.DisplayField = "course_name"; ddl_Course.ValueField = "course_id";

Member Avatar for de Source
0
252
Member Avatar for Affable zaki

tola = grams/12.5 masha = (grams/12.5)/12 or tola/12 ratti = ((grams/12.5)/12)/8 or masha/8

Member Avatar for Affable zaki
0
5K
Member Avatar for cproger
Member Avatar for 404notfound

i dont know , in which database your are working , here is a query you can use for mssql server. hope this will help you Select p.EmpNumber,p.ss,q1.wages,q2.wages From Personel p left outer join q1 on p.personelid = q1.personelid left outer join q2 on p.personelid = q2.personelid Regards

Member Avatar for G_Waddell
0
119
Member Avatar for taekiewzz
Member Avatar for abbOoOoOod
Member Avatar for prince.abankwah.5

there are many ways to do so , 1-If your application has database then store time and date of first run of your application and then check remaining days on load time. 2-If your application has no database then you can store installed date and time in registry of windows. …

Member Avatar for Mr.M
0
218
Member Avatar for xLuFeT

i think you should configure your sql server before .click on start --> microsoft sql server 2005 --> configuration tools --> sql server surface area configuration ---> surface area configuration for services and connections --> select remote connection option from the list on left side. then enable local connections and …

Member Avatar for M.Waqas Aslam
0
305
Member Avatar for George_91

try something like this reportViewer1.report= new myReport(); This code works for telerik reports. hope this will help you Regards

Member Avatar for M.Waqas Aslam
0
221
Member Avatar for vinay7868

i never used rdlc . but normally there are two methods to show data in report. 1- use wizard .2- set datasource to your report and map your fields with columns of datasource.

Member Avatar for vinay7868
0
434
Member Avatar for Ann95

no one will give you complete code . try to make it by your self. then in case of any issue post your query here. people of daniweb are not here to provide complete solutions. Regards

Member Avatar for M.Waqas Aslam
0
114
Member Avatar for mayuri.koul

as guru iyer said try to call the grdLoad method on the combobox selected index changed event and add connection to the sqldataadapter like this SqlDataAdapter sqlDataAdap = new SqlDataAdapter(sqlCmd,con); Regards

Member Avatar for TnTinMN
0
1K
Member Avatar for Contagious98

hello ! use this code to open another form , on the click event [CODE] formEventRegistration.show () [/CODE] Regards

Member Avatar for Mapz Xate
0
2K
Member Avatar for khair.ullah

Please visit this link hope you find solution of your prob [Click Here](http://www.codeproject.com/Articles/11142/Generate-a-Random-String-Key-in-VB-NET) Regards

Member Avatar for khair.ullah
0
168
Member Avatar for renzlo

you want to make log of specific applications or every thing user do ?. Please be more specific

Member Avatar for tinstaafl
0
287
Member Avatar for rehanul.bappy

try this int id ; sqlconnection con = new sqlconnection("your connection string"); sqlcommand cmd = new sqlcommand(); con.Open(); cmd.Connection = con; cmd.CommandText = "select isnull(max(loading_record)) + 1 from testing "; sqldatareader dr = cmd.executereader(); while(dr.read()) { id = convert.toInt16( dr["loading_record"].toString()); } string ID = "PA-"+DateTime.Now.Day+"-"+DateTime.Now.Month+"-"+DateTime.Now.Year+"-"+id; dr.close() con.close i typed this …

Member Avatar for ljbbq
0
5K
Member Avatar for davidmr

i cant get your point ,i think you want to delete the selected record from the grid and also from db. you can do this on button click event after selecting your row from grid. dim con as new sqlconnection("your connection string") con.open() dim cmd as new sqlcommand() cmd.connection=con cmd.commandtext="delete …

Member Avatar for TnTinMN
0
378
Member Avatar for ImZick

if there is any control on form2 , you can just set focus to that control on the load event of your form 2. like me.comboBox1.focus() Hope this helps you.

Member Avatar for Begginnerdev
0
218
Member Avatar for willlotr

dear ninjastormns you can just change the following value Txtrandom.Text = Gen.Next(1, 101).ToString to Txtrandom.Text = Gen.Next(1, 100).ToString it will generates from 1 to 100. Regards

Member Avatar for G_Waddell
0
877
Member Avatar for GolDRoger00

Hello ! If you are using windows form application and want to show the records from database to your from you can do like this .First add a textbox name txtSearch and then a button name btnSearch and a gridview name dgvSearch . now use this code. sqlConnection cn = …

Member Avatar for tinstaafl
0
641
Member Avatar for rockout15

as tinstaafl said object reference is not set to an instance may occur if you create any instance with out new keyword. but this error normally comes when we get null value and assign it to some variable ,object etc. It is always better to convert null into empty string. …

Member Avatar for ChrisHunter
0
117
Member Avatar for thanzeem7

hello ! you can simple disable the datetimepicker like this Me.dateTimePicker1.Enabled = false Regards

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

please check these links , hope you will find something usefull in them [Click Here](http://www.codeproject.com/Articles/9196/Links-with-arbitrary-text-in-a-RichTextBox) in my point of view you have to format part of the string here are some links please check them out [Click Here](http://vbcity.com/forums/t/143833.aspx) [Click Here](http://www.startvbdotnet.com/controls/rtb.aspx) [Click Here](http://stackoverflow.com/questions/109032/vb-net-richtextbox-apply-formatting-to-sele) Regards

Member Avatar for Dani
0
461
Member Avatar for bwaha

first install sql server management studio , then make sure server computer is connect with your computer , then give that server name like server/sqlexpress , then connect it ,

Member Avatar for adam_k
0
3K
Member Avatar for Depreciated

in case if you have to use lots of images then reduce the size and resolution of images . then set the strech property of your image. Regards

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

Dear All! I want to get my columns value into rows . i am taking sum of qty of each month . like this select sum(Case when month(invoicedate) = 1 then qty else 0 end) as janQty, sum(Case when month(invoicedate) = 1 then qty else 0 end) as febQty, sum(Case …

Member Avatar for adam_k
0
245
Member Avatar for Thomas7399

hello ! i think there is prob with your query , you are using this one INSERT INTO Sensor Table (Equipment ID, Location, Supervisor, Alarm Start, Alarm Stop) Values (@Id, @Loc, @Sup, @Astr, @Asto) in above mentioned query if your table name is sensor then remove word table after sensor …

Member Avatar for poojavb
0
288
Member Avatar for huntvbcode

for vs2008 win xp or 7 , and for vs2010 win 7 , just install vs your mssql server will auto installed with that setup , in case of vs2008 mssql 2005 will installed and in case of vs2010 mssql server 2008 will be installed. after installation you just have …

Member Avatar for M.Waqas Aslam
0
286
Member Avatar for vijaycare

you can use three datatables for this , get required records for each datatable and then assign them to your grids.

Member Avatar for vijaycare
0
198
Member Avatar for kazekagerandy
Member Avatar for M.Waqas Aslam
0
154
Member Avatar for jbutardo

hello ! u have to import ur data from excel to access then u can put all ur data in dataset for populating ur grid then save it in MSSQL , but first u have to import ur excel data in access Regards M.Waqas Aslam

Member Avatar for edgar.alexander.315
0
2K
Member Avatar for nore

Hello nore ! you can do like this , just take a bindingsource and use this coding [CODE] Sub MyGridData() dim mycon as new sqlConnection("your conn string") dim myDataTable as new DataTable myconn.open() Dim myDataAdapter as new SqlDataAdapter("your query ", mycon) myDataTable.table("MyTable").clear MyDataAdapter.fill(myDataTable,"MyTable") BindingSource1.datasource = myDataTable.table("MyTable") GataGridView.DataSource = bindingsource1 EndSub …

Member Avatar for pcs77
0
15K
Member Avatar for tendaimare

ok lets assume if we have two textboxes , txt1 and txt2 , i want to get control on txt2 if i press enter and also got control txt1 if i press enter in txt2 , use this code [CODE] '---use this code at the keypress event of the control …

Member Avatar for safrans
0
3K
Member Avatar for dr.syroj

i second you sir ancient dragon. vb.net is not able to make your own operating system but if you are very good in assembly and C then you can make a try . here is a book having detailed information about 32 bit operating system [Click Here](http://www.amazon.co.uk/Developing-Your-32-bit-Operating-System/dp/0672306557/ref=sr_1_1?ie=UTF8&s=books&qid=1215589290&sr=8-1) Regards

Member Avatar for Reverend Jim
0
110
Member Avatar for blanco.mop

what do mean by file , do you want to open text file ? or want to execute any application's exe file? . Regards

Member Avatar for khair.ullah
0
69
Member Avatar for paoi00

here is a link , hope this will help you [Click Here](http://www.dreamincode.net/forums/topic/44150-printing-in-vbnet/) Regards

Member Avatar for paoi00
0
163
Member Avatar for jemz

dataadapter get all data and put it in dataset at once ,but datareader get data line by line . so what i think dataadapter is faster then datareader. one more thing in datareader data is only readonly . here is a link please visit it for more information [Click Here](http://social.msdn.microsoft.com/Forums/nl/csharplanguage/thread/93f9f5a7-cb04-4963-8e32-60359add8036) …

Member Avatar for M.Waqas Aslam
0
115
Member Avatar for khair.ullah

try something like this, combobox.selectedValue= form1.gridview1.item(1,2).value.toString

Member Avatar for khair.ullah
0
1K
Member Avatar for jhedonghae

yes you can do same by using datetime picker .try something like this, 'here is a code to show the data in grid dim con as new sqlconnection("your connection string") dim strQuery as string strQuery = "select * from table1 where 1=1 " 'here is a code to add from …

Member Avatar for Icone
0
167
Member Avatar for jemz

to insert record you can do this dim con as new sqlconnection("connection string") dim cmd as new sqlcommand() con.open() cmd.connection = con cmd.commandtext="insert into table1 (field1,field2) values(@field1,@field2)" cmd.parameter.addwithvalue("@field1",txtfield1.text) cmd.parameter.addwithvalue("@field2",txtfield2.text) cmd.executenonquery() con.close() Regards

Member Avatar for jemz
0
350
Member Avatar for kenomote

can you please repharse your question i dont get you , well what i understand is that you want to filter your datagrid by selecting values from 2nd form ? Regards

Member Avatar for kenomote
0
343
Member Avatar for Rasool Ahmed

well if you want to run you application at the startup of windows then you can simply do this , when you make setup of your application in vs , you have 3 items on your left , 1-application folder 2-user desktop 3-i dont remember right now:P on this list …

Member Avatar for TheQuestor
0
280
Member Avatar for judd

what i understand is that you have two forms , having datagrid , when you click datagrid1 on form one or select any customer form the grid then the second grid will populate with all related data of selected customer , if yes then you can do like this . …

Member Avatar for M.Waqas Aslam
0
126
Member Avatar for sean.downes.96

well , you can do by saving all your data in a text file , and read that file at the load event , and simply fill your controls with that data. Regards

Member Avatar for jireh
0
143
Member Avatar for annquin

can you please explain little bit , ?what you want to do ? may be we can give to better solution . Regards

Member Avatar for TimCadieux
0
211
Member Avatar for Hazuan Nazri
Member Avatar for Hazuan Nazri
0
1K
Member Avatar for jhusthine

what do you mean by sliding forms ? do you want to move your form from one location to another or you want to change your forms size (width and height) ? Regards

Member Avatar for akasekaihime
-1
112
Member Avatar for benjie.v.sanpedro
Member Avatar for steadi

The End.