9 Topics

Member Avatar for
Member Avatar for cambalinho

these is the VB6 function for RayCasting: Private Sub DrawRays() Dim StepX As Double Dim StepY As Double Dim VertX As Double Dim VertY As Double Dim HorizX As Double Dim HorizY As Double Dim MapX As Long Dim MapY As Long Dim HorizDist As Double Dim VertDist As Double …

1
23
Member Avatar for cambalinho
Member Avatar for JModak

The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) My Code is Private Function GetXlUsedRange(ByVal filePath As String) As Object(,) Dim xlApp As Excel.Application Dim xlWorkbooks As Excel.Workbooks Dim xlWorkbook As Excel.Workbook Dim xlSheets As Excel.Sheets Dim xlWorkSheet As Excel.Worksheet Dim xlRange As Excel.Range xlApp = New Excel.Application xlWorkbooks …

Member Avatar for tinstaafl
0
37
Member Avatar for nadiam

Hi, i have a datagridview : grd_ol and i added a button to it: Dim btnColumn As New DataGridViewButtonColumn() btnColumn.HeaderText = "Invoice" btnColumn.Text = "View Invoice" btnColumn.UseColumnTextForButtonValue = True grd_ol.Columns.Add(btnColumn) the table sort of looks like this: | ORDER_ID | CUSTOMER_ID | STAFF_ID | ORDER_DATE | TOTAL(RM) | INVOICE | …

Member Avatar for tinstaafl
0
411
Member Avatar for nadiam

Hi. im trying to get data from table TBL_ORDERITEM FLD_ORDERITEM_ID | FLD_ORDER_ID | FLD_PRODUCT_ID | FLD_QTY | FLD_SUBTOTAL grd_productlist.DataSource = ("SELECT FLD_ORDER_ID,FLD_PRODUCT_ID,FLD_QTY,FLD_SUBTOTAL FROM TBL_ORDERITEM_A15428 WHERE FLD_ORDER_ID = '" & id & "' IN (SELECT '" & id & "' FROM TBL_ORDERITEM_A15428 GROUP BY '" & id & "' HAVING COUNT(*) …

Member Avatar for nadiam
0
359
Member Avatar for nadiam

Hi. so this is actually a continuation from another question of mine[Here](https://www.daniweb.com/programming/software-development/threads/506795/dynamically-add-values-into-datagridview-cell-from-listbox-vb2010) but i was advised to start a new thread as the original question was already answered. This is the result of previous question answered : code for the listbox - datagridview interaction At the top of the code …

Member Avatar for nadiam
0
608
Member Avatar for nadiam

Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order. btn_addline : Private Sub btn_addline_Click(ByVal …

Member Avatar for nadiam
0
615
Member Avatar for nadiam

Hi. Im using vb 2010. I want to dynamically add textboxes to my form by clicking on a button. I've google searched and so far this code worked: Private Sub btn_addline_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_addline.Click Dim txtB1 As New TextBox Dim i For i = …

Member Avatar for Xavier_5
0
543
Member Avatar for nadiam

Hi guys. Im trying to delete a row from a table in DataGridView (**VB 2010**) and my database (**MS Access 2013**) but on "Delete" it shows that it doesnt get the ID of that data row, so it wouldnt actually know what data to "Delete" delete btn: Private Sub btn_dlt_Click(ByVal …

Member Avatar for nadiam
0
530

The End.