20,284 Topics

Member Avatar for
Member Avatar for madao

Our prof gave us this code Dim sql As String sql = "INSERT INTO OrderDetails" _ & "(orderid,prodid,price,qtyordered,amount,status)VALUES(" _ & "'" & OrderDetail.Orderid & "','" & OrderDetail.Prodid & "'," _ & "'" & OrderDetail.Price & "','" & OrderDetail.Qtyordered & "'," _ & "'" & OrderDetail.Amount & "','open')" I know this …

Member Avatar for kingsonprisonic
0
85
Member Avatar for gerchi152

will someone help me on how to solve this error? The database 'D:\FEB. 29, 2012\WAIS SYSTEM-UPDATED JAN25\WAIS SYSTEM\BIN\DEBUG\WAIS.MDF' cannot be opened because it is version 661. This server supports version 655 and earlier. A downgrade path is not supported. Could not open new database 'D:\FEB. 29, 2012\WAIS SYSTEM-UPDATED JAN25\WAIS SYSTEM\BIN\DEBUG\WAIS.MDF'. …

0
61
Member Avatar for vivekanandaan

[CODE]insert into po_detail (item_code,qty,item_rate,item_tax) select a.item_code,qty,item_rate,item_tax from mr_detail a,mr_head b where a.mr_no = " & combo_mr_no.Text & " and a.mr_no=b.mr_no""[/CODE] what's the error in the above code ?

Member Avatar for Reverend Jim
0
78
Member Avatar for jaimin4829

'i am trying to get f_name + m_name + l_name three diferent columns combined from data grid view on cell content click into combobox. [CODE] Private Sub bugdgv_CellContentDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles bugdgv.CellContentDoubleClick Dim row As Integer = bugdgv.CurrentCell.RowIndex frmbug.bugcmbdeliver.Items.Clear() Try obcon.cmd.CommandText = "select d.del_name from …

Member Avatar for jaimin4829
0
706
Member Avatar for daydie

Hello guys i'm getting a massive memory leak which over period of 1min its increase alot and always increases. How to i prevent the memory stacking? I looked all around the internet as im not just posting coz im lazy, i cant find a solution for my code. [CODE] Private …

Member Avatar for daydie
0
1K
Member Avatar for mrbungle

I can't seem to figure this out- I have a single text box that has text in it. When I put the mouse in it and click it, I need the text to clear so new text can go in. Does anyone have a sample? TIA

Member Avatar for ajayantm
0
182
Member Avatar for choosechrist

i'm a relative newbie in vb.net and at an earlier thread i got the code as to how to add a datetimepicker to datagridview. it's just i dont know how to access this with my datagridview. [CODE]Public Class CalendarColumn Inherits DataGridViewColumn Public Sub New() MyBase.New(New CalendarCell()) End Sub Public Overrides …

0
80
Member Avatar for ng5

I have two different forms. one has a listbox and the other has a masked textbox. the masked textbox is used as a login and i would like the masked textbox to be checked against the listbox items to be able to "gain access" and login Any ideas?

Member Avatar for M.Waqas Aslam
0
161
Member Avatar for timosoft

Hello How do i reset 2 textbox text of out four textbox at random avoiding a textbox whose text = 'A' for clarification. i have Textbox1.text = "B" Textbox2.text = "C" Textbox3.text = "A" Textbox4.text = "D" how do i set an empty value "" to any two textbox at …

Member Avatar for timosoft
0
188
Member Avatar for LFCDay123

I'm new to Visual Basic and I am trying to set up a currency converter. I have converted a currency to UK Sterling on the first form and on the second form I want to have the same label with the same amount of UK Sterling as on the first …

Member Avatar for poojavb
0
146
Member Avatar for networkmancer

Im having problem downgrading because it will show error from resource file that has 4.0.0.0 in the line .. I try changing it to 2.0.0.0 but now my body form will not show up. I tried removing my resource file and upload it again but still wont work..

Member Avatar for kingsonprisonic
0
61
Member Avatar for Farhan_B

im working on this piece of code and for sum reason i cannot understand why i keep getting this message can you please advise me thanks in advance [CODE] 'sql statements strsql = "insert into c_security_user (user_name, user_pwd,) values ('" & txtuser.Text & "','" & txtpass.Text & "')" Dim acscmd …

Member Avatar for kingsonprisonic
0
210
Member Avatar for whitetigerz79

Public Class Projectile_Motion 02 Dim initialHeight As Double ' Holds beginning height 03 Dim initialVelocity As Double ' holds velocity 04 Dim time As Double ' holds time 05 Dim heightVal As Double ' holds height at different intrvals in time 06 07 Private Sub btnmaxheight_click(ByVal sender As System.Object, ByVal …

Member Avatar for kingsonprisonic
0
207
Member Avatar for ISH777

ISH777 //Hello Everyone, I have a Problems Regarding with the IMAGE I create a Program That save Information of END USERS including Image... but the Image will save into Bytes.....and I have no Problem in that as you seen below..... [CODE]Dim xx As String = "insert into tbl_BorrowersInfo (accountno, sname, …

0
74
Member Avatar for ng5

i have a list box and a button. i would like when the button is clicked the selected item in the list box is deleted. any ideas?

Member Avatar for ng5
0
174
Member Avatar for ng5

I have a form with a text box and a form with a list box. I would like to be able to push a button on the form with the text box and have it be added to a list box. any help?

Member Avatar for ng5
0
208
Member Avatar for smudehelper

I have two combobox. I want to transfer all elements from combo1 to combo2 but with a filter only those item from combo1 will go to combo2 which are not in combo2. For example Combo1 ________ This Is Help But Not Combo2 _______ Is But And Quick So after clicking …

Member Avatar for smudehelper
0
111
Member Avatar for macdunk11

I am trying to write a program that will tell me how many calories are in a certain number of eggs, cups of flour, cups of sugar, etc. I have a set number of calories for each of the items (i.e. each egg has 72 calories), but I ask the …

Member Avatar for kingsonprisonic
0
81
Member Avatar for nettripper

I have 1 listbox, 1 textbox, and 2 buttons (for start, and stop) if I press the the buton for start the textbox will display (one by one) the items in listbox.. and if i press stop the textbox will stop displaying items.. is it possible? do i have to …

Member Avatar for nettripper
0
707
Member Avatar for Jx_Man

This Code is easy way to load / show data in Datagrid. This Code write in vb.net 2003 and use sqlserver 2000 as database. I use module to connected VB.Net with SqlServer 2000. so the function to connected can be use in every form in this project.

Member Avatar for neronero
1
2K
Member Avatar for Waldek

Has anyone succeeded in creating a class library solution/project in VB.net VS2010 4.0 Net Framework for COM to run on WindowsXP Excel 2003. I created a dll which changed specific data in an excel worksheet. The dll worked just fine on the development computer but wont work on any other. …

Member Avatar for rubberman
0
155
Member Avatar for Tobyjug2222

Hey guys, I've been having a bit of a problem using the while function. Here is my code (Simplified): [CODE]Dim RandomNumber3 As Random Dim RandomOutput3 As Integer RandomNumber3 = New Random() RandomOutput3 = RandomNumber3.Next(1, 9) Dim RandomClass As Random RandomClass = New Random() While (RandomOutput3 = RandomOutput Or RandomOutput2) RandomOutput3 …

Member Avatar for Tobyjug2222
0
231
Member Avatar for gozo12

in form it have 2 listbox and in listbox1 and listbox2 items have "s1" , "s2" "s3" [CODE] Select Case ListBox1.Text And listBox2.Text Case "s1" p1.visible=tre Case "s2" p2.visible=tre Case "s3" p3.visible=tre End Select[/CODE] i want that the code check it item in listbox1 or 2 then do the same …

Member Avatar for gozo12
0
175
Member Avatar for dilse4sk

hi every 1. i am trying to make a search form with 1 label(surname) and textbox. i have 1 gridview on the form aswell. can you plz provide me any code so that when i type in textbox i should c the result in the gridview. wat i have done …

Member Avatar for M.Waqas Aslam
0
858
Member Avatar for moone009

Hi there I am new to .net and I have put at least 4 hours in to figuring out why i cannot view my results when I run a datagrid in my 2010 visual studio WPF application. Also, it looks like it is only filling one record in the datagrid. …

Member Avatar for M.Waqas Aslam
0
298
Member Avatar for gozo12

[CODE] Private Sub save_Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim i As Integer w = New IO.StreamWriter("e:\test.txt") For i = 0 To ListBox1.Items.Count - 1 w.WriteLine(ListBox1.Items.Item(i)) Next w.Close() End Sub[/CODE] this code will save all items in listbox but i want when u click an item(selecteditem) …

Member Avatar for M.Waqas Aslam
0
167
Member Avatar for renzlo

Hi All, I can't figure this out, I have a listview and I want to export it and finally found how to do it but I'm stuck here.. Here's the code. [CODE] Dim Row0 As WorksheetRow = sheet.Table.Rows.Add Row0.AutoFitHeight = False Row0.Cells.Add("PROJECT_NAME", DataType.[String], "s67") Row0.Cells.Add("USER_NUMBER", DataType.[String], "s68") Row0.Cells.Add("JOBNAME", DataType.[String], "s68") …

Member Avatar for renzlo
0
281
Member Avatar for easygi

The startup that I set in my project is not the same when I open the exe file of my project. Someone can help me? tnx

Member Avatar for easygi
0
70
Member Avatar for flywheeljack

Hi there, I am currently working on an application that prints out several labels from 2 different printers. The printers use the same 3rd party software though so currently i am just passing command line arguments to the 3rd party application to print the labels. However there is very little …

0
54
Member Avatar for sirmcfly.works
Member Avatar for Mitja Bonca
0
162

The End.