19,728 Topics

Member Avatar for
Member Avatar for sing1006

I had 3 datagridview in visual basic, and each of them is linked to each other. 1 Main component can have many Failure Mode and 1 Failure Mode can have many Critical. [Click Here](http://i1333.photobucket.com/albums/w631/lloyd1006/1_zpsapbu0wla.png) [Click Here](http://i1333.photobucket.com/albums/w631/lloyd1006/2_zpsbe2c2u3n.png) [Click Here](http://i1333.photobucket.com/albums/w631/lloyd1006/3_zpsw2s2weo6.png) I want to duplicate selected row or record including their children details, …

0
156
Member Avatar for sing1006

Dim DMC_No As New List(Of Integer) cmd.CommandText = "SELECT MC_No FROM tbl_MainComp WHERE EquipTag= '" & TextBox1.Text & "'" Using reader As OleDb.OleDbDataReader = cmd.ExecuteReader() While reader.Read() DMC_No.Add(reader.GetInt32(reader.GetOrdinal("MC_No"))) End While End Using Dim DFM_No As New List(Of Integer) For i = 0 To DMC_No.Count - 1 MessageBox.Show(DMC_No.Item(i)) 'This line to …

Member Avatar for Reverend Jim
0
391
Member Avatar for Papa_Don

Group, 10 months ago I posed the same question as to how to programatically create the variable names via the loop. However I'm now in real need of doing this and I don't fully understand what each step of the syntax actually means and what it does. Therefore I need …

Member Avatar for Papa_Don
0
1K
Member Avatar for hefaz

Hi all, i am using a ribbon in my c# 2010 project, first i had .net framwork problem while i was running the form then i changed that to .net framework 4.0 now it says Win32 exception Unhandled. What is the problem? is the problem in debugger?

Member Avatar for rproffitt
0
543
Member Avatar for sing1006

I have 3 table which are ![zz.PNG](/attachments/large/3/f81c645612d06529dba9af30a4a314ac.PNG "align-center") I want to duplicate a record from the master table in the same time it will duplicate all children table. I will assign new primary key to the new duplicate record. For the tbl_System and tbl_MainComp work fine. But when i have …

0
304
Member Avatar for wilsonchama

Hi guys, am trying to populate textboxes with data from sql server database. below is the code I am trying to use in Visual studio 2012, Vb.net. Private Sub btnSave_Click(sender As Object, e As EventArgs) Handles btnSearch.Click Dim query As String Dim MyConnection As SqlConnection = New SqlConnection("Initial Catalog=PayRoll;" & …

Member Avatar for Reverend Jim
0
312
Member Avatar for JohnT1

Hello, I created a small windows service in VB.net, intended to run on a MS Windows server 2012, which uses the EventLog.WriteEntry Method to write entries to a custom log file. All works as intended, however, I am wondering if there would be a better way to write to the …

0
247
Member Avatar for savedlema

Greetings! I have been using the code below to restore backups of mysql database taken utilizing the mysql dump for a few years, but suddenly, this does not restore database backups anymore. Is there any change within mysql? code: Dim myProcess As New Process() myProcess.StartInfo.FileName = "cmd.exe" myProcess.StartInfo.UseShellExecute = False …

0
133
Member Avatar for Miurei

How to pass Listview contents to a crystal report for printing purposes using VB net..? i got 1 listview which shows the results of some queries. Now my problem is how can i pass those data in my listview to the crystal report?

0
117
Member Avatar for major_lost

Rev Jim: I need to get a random file name from a specific directory (folder) each time this routine is called. I was given these steps on another website, but I need to be shown how this is done. Can you please assist? Get the files - Directory.GetFiles or DirectoryInfo.GetFiles …

Member Avatar for Reverend Jim
0
1K
Member Avatar for LukeJWhitworth

Hi, Does anyone know how to have a dropdown appear when typing in a multi line text box? I want it to work in the same way it does in Visual Basic, suggesting what could be inserted based on what the user is typing. Thanks guys, Regards, Luke

Member Avatar for Reverend Jim
0
187
Member Avatar for Sherwin Paul

Hi Expert, would it be possible to list all the current active Domain equivalent Active Directory in a network? Hoping to here from you. Thanks.

Member Avatar for Sherwin Paul
0
184
Member Avatar for Miurei

I need help about this, I've been working for this a quiet while... I want to log-in using one login form for both admin and normal user but after log in, some of its form and/or buttons in the form should not be available for normal users. here is my …

Member Avatar for Miurei
1
7K
Member Avatar for Papa_Don

Hi group, I'm modifying a VB.net app where I need to loop through an Excel spreadsheet for data out of two column. In essence the code will need to read: For i = 2 to end of file propNo = Cells(i, 2).Value crms = Cells(i, 8).Value If crms = "Y" …

Member Avatar for Teme64
0
16K
Member Avatar for major_lost

I know that this probably has been done by someone, but I want to learn how to do this using VB 2010 express. I cannot seem to get the numbers to stay in the text boxes that they are dropped in. The numbers always go to the last box (#81). …

Member Avatar for Reverend Jim
0
476
Member Avatar for nosfa

Hi. I have a MVC project with a form and a submit button. The values are passed to the controller. One method will fetch data from the dataset according to the parameters passed. Then some VB functions will work with the data retrieved. Currently I have the whole dataset being …

Member Avatar for Reverend Jim
0
216
Member Avatar for thedonedeal

I'm currently in the middle of making a VB.NET project. I want to have the VB.NET project control the actions of the Flash projector. (Stop, play, change text of text control in the Flash projector, etc.) This is a one way control however, nothing about the SWF projector will interact …

Member Avatar for rproffitt
0
2K
Member Avatar for JVAII

Hello everybody, I'm doing a colleague a favor by looking into a VBA formula to make her reporting tasks a little easier, poor her, but I need help myself now. this is how her tabsheet is set up: ![CVDV__tab.jpg](/attachments/large/4/d71dd2333b4335e71abd83448f735d91.jpg "align-center") this is how the end result should look like in …

Member Avatar for ddanbe
0
383
Member Avatar for DenisOxon

I need to interface to a USB device from VB.net, where I both read and write to the device. Are there any programing differences between the different USB interfaces, i.e 1,2 and 3 that I should be aware ? Does it matter if say a USB 3 device is plugged …

Member Avatar for rproffitt
0
261
Member Avatar for Erald

I'm updating my database using this code. only id and attendance date is updated but the time(AM_TIME_IN etc...) is not updating. What could be wrong? I'm using access and time(AM_TIME_IN etc...) datatype is shorttext Dim a As String = Now.ToShortTimeString If a.Contains("AM") Then a = "AM" Else a = "PM" …

Member Avatar for Taywin
0
199
Member Avatar for OTOSystem

I want to play random sounds, one after another. I can get one sound to play, but nothing more. It should play 10 random sounds from the list of 6. It just plays 1. How do I get it to play all 10? `Private Sub RandomNote() For Me.a = 1 …

Member Avatar for Reverend Jim
0
1K
Member Avatar for OMER AHMED

Hi i am making an application in vb.net and i need help. The user will send me his issues or information through attachment. but i want a restriction on filesize that he can not attach file more then 20MB i did some coding but its not working. it will show …

Member Avatar for Minimalist
0
388
Member Avatar for vb.n
Member Avatar for rproffitt
0
83
Member Avatar for vb.n

how to login flash site in vb.net ? ex http://chatrandom.com/webcamchat/ http://free.123flashchat.com/room/Best+Tour+Chat

Member Avatar for vb.n
0
96
Member Avatar for Johnny Joe

hi.i need help on this... i have a datagridview and when i clicked the datagridview shows in textbox and i have this one problem with my picture box...it only shows the same picture even if the saved picture in my database is not the same... Private Sub Button1_Click(ByVal sender As …

Member Avatar for renzlo
0
258
Member Avatar for Mitha_1

Hi, everyone! I want to make search a student's grade. Each student follows the 10 subjects. I want to make a search of students in certain grades. I made 10 textboxs to input the value I want to search. I put a combobox on left of each textbox to select …

Member Avatar for Reverend Jim
0
228
Member Avatar for Christopher_12

i want to save data entered into my form into the database but it is telling "column name or number of supplied values does not match table definition" here is my code help please Private Sub BtnSave_Click(sender As Object, e As EventArgs) Handles BtnSave.Click 'Error checking:Personal information Try cmd.CommandType = …

Member Avatar for Miurei
0
355
Member Avatar for Johnny Joe

i used pcode as my primary key which has a datatype of short text Private Sub RefreshData() If Not conn.state = ConnectionState.Open Then conn.Open() End If Dim DATA1 As New OleDb.OleDbDataAdapter("SELECT pcode as [Item Code], psup as [Supplier], pcat as [Category], pdescript as [Description], pstock as [In Stock], piprice as …

Member Avatar for Miurei
0
611
Member Avatar for ajit.nayak

Dear all, I have created project database in msaccessdatabase. It contail ![Msaccess.jpg](/attachments/large/4/a91d2278c08f244b439891bcf7c3b36e.jpg "align-center") form layout as shown in image & i have attached code for reference Imports System Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the …

Member Avatar for Miurei
0
327
Member Avatar for farahinsamsudin

Hi, I have try to insert edit and delete feature in my gridview app. however, the code is not really work. when I click the edit or delete button it keep adding the blank line. It supposed show textbox with data and Update Cancel link button, when I click the …

Member Avatar for Miurei
0
234

The End.