20,285 Topics

Member Avatar for
Member Avatar for dongtrien

I want to color cell of the listview, how to write code ? You see my image file. http://www.mediafire.com/view/uoq3qw4o9c90jwd/chamcong5.jpg/file

Member Avatar for rproffitt
0
983
Member Avatar for Reverend Jim

vb.net 2010 Windows Pro 7 ## Create a Video Library with an Embedded Windows Media Player ## I have close to 400 video clips in my home movie library. In order to quickly locate any given video I have added certain words into the file names. Even so, locating specific …

Member Avatar for Reverend Jim
1
3K
Member Avatar for Rhys_3

Hi, For a school assenment I was tasked to make a small database solution for a medical clinic. I am wanting to select an access database table after gaining the ID for the table. I will be needing to read and write to this table as well if it makes …

Member Avatar for pty
0
346
Member Avatar for dongtrien

Suppose there are two forms: frmMain and frmPopup, frmPopup is always on frmMain, when select frmMain inputting data then frmPopup always on frmMain, frmPopup is always on frmMain, how is it to write code ? you see attach file http://www.mediafire.com/view/bq32fcb3ept329r/PopUpInput.jpg/file

Member Avatar for ddanbe
0
298
Member Avatar for Dexter_4

i need to format my textbox result into two decimal places after i divide two textbox here is my code. If String.IsNullOrEmpty(txtMonthly.Text) OrElse String.IsNullOrEmpty(txtdr.Text) Then Exit Sub If Not IsNumeric(txtMonthly.Text) OrElse Not IsNumeric(txtdr.Text) Then Exit Sub txtDaily.Text = CDbl(txtMonthly.Text) / CDbl(txtdr.Text) Thanks in Advance

Member Avatar for Reverend Jim
0
425
Member Avatar for josh_9

dbconn.Open() s = "Select Max(cheque_no) + 1 As NewValue From tblEntry" Dim cmd As SqlCommand = New SqlCommand(s, dbconn) Dim dr As SqlDataReader = cmd.ExecuteReader() If dr.HasRows Then dr.Read() If IsDBNull(dr("NewValue")) Then empId = 1 Else empId = CInt(dr("NewValue")) + 1 End If Else empId = 1 End If dr.Close() …

Member Avatar for josh_9
0
208
Member Avatar for imBaCodes

Below is my code for adding parameters in my vb .net code for prepared statements of npgsql. Dim xConn As NpgsqlConnection = ConnectDB() Dim xCmd As NpgsqlCommand = xConn.CreateCommand() xCmd.CommandText = "UPDATE " & xTable & " SET previous_tot_adj = @prev_adj ,tot_adj = @tot_adj WHERE version = " & _version …

Member Avatar for rproffitt
0
675
Member Avatar for joshi1984

Hello, I´m not a professional in vb.net, but i try to make a tool for my colleague and me. I got a XMLTreeView on my form and i load a XML-File in it. Now, I want to set each node in the XMLTreeView another icon, but it must set by …

Member Avatar for joshi1984
0
2K
Member Avatar for Joshiko

hey guys, I already have a database that can add a person with the RFID card number, I just want a little help of you guys if how can I code the rfid and when I tap the card, the RFID# of that person will be there together with the …

Member Avatar for Joshiko
0
935
Member Avatar for Daniel_93

I am becoming confused with visual studio v. Vb.net. I am findings hundreds of pieces of code tells me how to connect. Snippets elsewhere that tell me how to access data in the database I connected to. I am not finding snippets/examples that walk one thru connecting, adding, deleting etc. …

Member Avatar for JamesCherrill
0
570
Member Avatar for jaimin4829

we r trying to insert date from datetime picker into mssqlserver 2005 but it also enter defult time(00:00) with it in database. using we want only date... [CODE]& xyzdtp.value.date &[/CODE]

Member Avatar for uzma_2
0
27K
Member Avatar for sidyusuf

how can i limit a user to enter 10 digit no like telephone no in textbox without using regular expressions?????

Member Avatar for ddanbe
0
16K
Member Avatar for Alzen John

Hi, I would like to know how to get IP Address of the devices connected to the hotspot of my PC using a VB program that will run on the same PC where the hotspot is running. I have no idea how to get it strated. I searched internet but …

Member Avatar for Reverend Jim
0
736
Member Avatar for JModak

Sir. I create a project in vb.net 2010 sql server 2008r2 and crystal report 13. i use this code for showing the report. Public Sub PrintSaleRInvoice() Dim PrintSale As New DataSet objsale.saleinvid = txtSaleInvid.Text PrintSale = objsale.PrintSaleInvoice() ' Procedure name PrintSale.Tables(0).TableName = "DataTable1" Dim rpt As New SaleInv rpt.PrintOptions.PaperOrientation = …

Member Avatar for rproffitt
0
586
Member Avatar for tshukela.george

what is causing this error here "Operator '&' is not defined for string "select * from Miscellaneouse whe" and type 'DataRowView'." provider = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source =" dataFile = "C:\Users\PrintServer\Documents\Visual Studio 2010\Projects\Hr and Payroll1\HR and Payroll.accdb" ' Change it to your Access Database location connString = provider & dataFile myConnection.ConnectionString = …

Member Avatar for Reverend Jim
0
266
Member Avatar for Juan_16

Hi folks, i am making a simple program using vb.net 2017 i want to make a hot key like pressing keys.decimal + keys.enter at the same time to shutdown my pc. i am using a bluetooth usb numpad so crtl key is not an option. thanks for your help. Cheers!

Member Avatar for Reverend Jim
0
681
Member Avatar for Sam_49

Try Dim Adapter As New OleDbDataAdapter Dim Command As New OleDbCommand Dim xFrom As String = dtpFrom.Value.ToString.Substring(0, dtpFrom.Value.ToString.IndexOf(" ")) Dim xTo As String = dtpTo.Value.ToString.Substring(0, dtpTo.Value.ToString.IndexOf(" ")) sqlQuery = MainQuery & " Select TOP 100 LOANS.LoanID," sqlQuery = sqlQuery & " Borrowers.NAME," sqlQuery = sqlQuery & " Barangay.BRGYNAME," sqlQuery = …

Member Avatar for Reverend Jim
0
411
Member Avatar for Naveed_786

Dear All, I am trying to read a CSV file into VB.NET datagridview which is fine i did already but one of datagridview coloumn is date and time i want to convert it to human readable format and want to read the correct format in date and time column in …

Member Avatar for rproffitt
0
2K
Member Avatar for Alphex_1

I have an anti-virus in **Visual Basic .Net**. I want to have a real-time protection engine in my program, but I'm having some issues with the code I'm using now, which is this: Private Sub FileSystemWatcher1_Changed(ByVal sender As System.Object, ByVal e As System.IO.FileSystemEventArgs) Handles FileSystemWatcher1.Changed Try labellastreal.Text = e.FullPath ListBox3.Items.Add(labellastreal.Text) …

Member Avatar for rproffitt
0
508
Member Avatar for JUNG_1

Hi! My name is Jung and I'm new to VBNET I have already tried many ways to write codes for "btnSearch" but seems like nothing works.. I really need help for this as the deadline is around the corner :'( Below are my codes for Search button.. ![btnsearch.PNG](/attachments/large/4/76be068c625e23d9a57e969a97509bee.PNG "align-center")

Member Avatar for JUNG_1
0
687
Member Avatar for JModak

Vshost.exe has stopped working... Posted A minute ago vshost.exe has stopped working this error showing after using the Crystal Report. The error show when I closed the application. If I not use the crystal report then the error not showing. I am creating a program in vb with visual studio …

Member Avatar for rproffitt
0
674
Member Avatar for JModak

hello sir how can I get my system short date format in a label in vb. net. I try this code : Label1.Text = System.Globalization.CultureInfo.CurrentUICulture.DateTimeFormat.ShortDatePattern() but show wrong data. all time show "M/d/yyyy" format. I change it(to "dd/MM/yyyy") manually and by coding result is same("M/d/yyyy") please help me..... For Change …

Member Avatar for xrjf
1
8K
Member Avatar for Stephen_28

Hi, I am currently working on a VB form for a college assignment. I am trying to add quantities from a ListBox and then display the result in a TextBox for a pizza delivery order by using a button. So far, the Listbox shows: pizza type Quantity pizza price Total …

Member Avatar for Santanu.Das
0
2K
Member Avatar for virusisfound

I was working on C# windows application as front end and SQL as back end I have display my sql table data in dtatgridview. [B]I want to display the data in textbox whatever row i select in datagridview.[/B] I have write some code but its not showing data in textboxes. …

Member Avatar for pritam_4
0
6K
Member Avatar for Divinedar_1

Ok I have a workbook that have 5 worksheets for a 5 year span. On each of the worksheets are there is a list of countries that make up the combobox (which works perfectly). On my userform I have a frame on the userform that represent each worksheet. **My problem …

Member Avatar for Divinedar_1
0
617
Member Avatar for IsaacMessi10

I'm trying to make a button that when pressed for a short while will close the form but when pressed for a long time *e.g. 5s* the form's process will be killed. I'm trying to achieve this with a timer. Private Sub CloseLongTimer_Tick(sender As Object, e As EventArgs) Handles CloseLongTimer.Tick …

Member Avatar for ersinkecis
0
2K
Member Avatar for Lol_1

I am a drafter using autocad and I know a littttttle bit of VB6. We just happen to have it installed on our computers and I wanted to create an application that can do this: 1. Takes the # input from text1 and text2 and waits for the user to …

Member Avatar for JustMarkInAz
0
556
Member Avatar for pardeep3dec

Dear Experts, I want to develop a application that send sms on any mobile. if any one done this project then kindly give some important consideration for developing this application. Best Regards, Pardeep

Member Avatar for Tran_10
0
528
Member Avatar for devfeel

I have developed a sniffer code in C language. Now i am creating user interface for that. I am using visual C++ to design user interface. Once the program starts it stores each packets ip address, port number , protocol type ,time etc in respective variables. Now i want to …

Member Avatar for k_8
0
2K
Member Avatar for Sara_18

I am working on the workshop selector in Visual Basics 7th Edition chapter 5 and I just can't get the calculate total button to work after trying numerous different codes. Here is the criteria for the program. 3 list boxes, 4 buttons, 2 labels. The application allows the user to …

Member Avatar for rproffitt
0
2K

The End.