20,285 Topics
![]() | |
As some of you know I am moving to VB.net from VB5. I see that to read and write to text files there are two options 1) Use System.IO.File e.g Filewritealltext ( options...) or 2) Use Streamwriter e.g Dim ts as StreamWriter( options...) Are there any differences, apart from syntax, … | |
Hello, I have for a number of years supported a VB5 application which controls customers equipment. We are now going to do some major changes to software because hardware is changing. It now seems the ideal opportunity to upgrade to a newer/latest version of visual basic, which if we go … | |
I knew how to use combo box to read the database in Microsoft access, let say I have 7 option and I can make it into conbo box. But now I want the 7 option in the form of button (means got 7 button). Can anyone help ?? While (acsdr.Read()) … | |
For my class I am asked to complete a program: create an application that will predict the approximate sie of a population of organisms. the user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a … | |
Hi Dw. Is it possible to search through "*.COM", "*.exe" files and check if they are encrypted and so check which encryption was used in VB.NET? | |
Am having some difficulty, I had some code that had a static helper method in C#, and now I am looking to port it to vb, but unfortunately vb doesn't seem to have a yield return operator. How do most vb developers do this, and why is there no yield … | |
Public Class Form1 Dim intsum, intaverage, counter As Integer Private Sub btnAverage_Click(sender As Object, e As EventArgs) Handles btnAverage.Click For counter = 0 To lbNumber.Items.Count - 1 intsum += counter Next intaverage = (intsum / lbNumber.Items.Count - 1) lblAverage.Text = intaverage End Sub Private Sub btnSum_Click(sender As Object, e As … | |
How to block or prevent print dialog using a webcontrol from a win form in vb.net ---------------------------------------------------------------------------------------------------------------------------- In vb.net How to block or prevent print dialog show while printing a pdf using a web browser control (webcontrol) from a Windows Form | |
I have added code for plus button, but how i write code for other buttons? My code is double total1 = 0; double total2 = 0; private void plus_Click(object sender, EventArgs e) { total1 = total1 + double.Parse(textBox1.Text); textBox1.Clear(); } private void equal_Click(object sender, EventArgs e) { total2 = total1 … | |
I want to add 12 players in 1 transaction only. My codes here can only save 1 player. Here's my codes: Private Sub savebtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles savebtn.Click Dim conn As MySqlConnection Dim myCommand As New MySqlCommand Dim commandB As MySqlCommandBuilder Dim data As MySqlDataAdapter … | |
Hi Dw. I'm developing a software but now due to some complexity of the program I had to do some engine with C++ and I want to be able to call and receive the events from a service. Here's the C++ code that receives calls when an application tries to … | |
For the VB Studio 2010 software I developed, I'd like to include source code, a class maybe, written in VB (not c++) that allows me to get (and change) ID3 V1 and V2 tagging data from MP3 files. I've been looking for months and have found .exe's and someone else's … | |
hey, folks, thanks for clicking :) i want to assign a pressed key to a button, i clicked before, similar to what we know from computergames, when we change the key bindings. For example: click button1 -> the application is waiting for any key to be pressed -> we push … | |
Hi. My web app currently uses the old FedEx WSDL API for rates and tracking and I have to now test it for FedEx's SHA-2 changes coming in Jan 2016. I am a little confused about how to easily switch between "Production Environment" and "Test Environment" and need some advice. … | |
![]() | Hello everyone, what i am trying todo is get the following data from a html file.... Friday 31 - 1 - 2014 Created: 31/01/2014 2:32 PM Updated: 31/01/2014 7:03 PM Location: 37°35'13 S 145°7'41 E Shift 143 Car 7008 Bus 280 564 / 9 Car 7008 Car 7011 Bus 361 … |
I am trying to work the next and previous button to read or navigate throughrecords, please help me to correct this, I'm stuck here: Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click Dim k As Integer Dim i As Integer k = 1 i = k + 1 … | |
Why am I getting a System.StackOverflowException when assingning a value to avariable. I have used the same process on other forms in this project and they work fine, don't know why this is happening. This is the error "An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll" the exception hapens … | |
Hello, I am trying to develop VB.NET application which it will compress files one by one but the problem is the size of each file is too large in size about (1.6 GB) and when I am trying to compress it using FileStream and Buffer it shows to me Memory … | |
Group, I've expanded a small app that started with 50 textboxes and labels to 200 of each. To hide and make these visable I use the codes lblProperty01.Visible = False tbxProperty01.Visible = True lblProperty02.Visible = False tbxProperty02.Visible = True This means there are 400 lines of code to hide and … | |
i have listview named : listview1 and a button to export listview data presented. all i want is to export that data to an excel probably to edit or print them. Is there anyone can help me about it? i had gone into but still cant find exactly what I … | |
![]() | hello, i want to be able to separate the values in a textbox and display the separated values in different labels using a button this is what i want to happen: 1. input "Ac2O3" on textbox 2. Be able to separate "Ac", "2", "O", and "3". 3. show these separated … |
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, … | |
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 … | |
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 … | |
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? | |
I have 3 table which are  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 … | |
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;" & … | |
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 … | |
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 … | |
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? |
The End.