- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 69
- Posts with Upvotes
- 63
- Upvoting Members
- 40
- Downvotes Received
- 11
- Posts with Downvotes
- 10
- Downvoting Members
- 4
Re: Public Class Form1 Dim myarr() As Char 'create an array to hold the specil characters' Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load TextBox1.Text = "Hi! Hello, How are you?" myarr = {"[", "!", "#", "$", "%", "&", "'", "(", ")", "*", "+", ",", "\", "-", ".", "/", … | |
| Re: You need to make sure that you do understand the difference between a string and a number. Label5.Text = 0 should be Label5.Text = "0" . You are mixing this up throughout your code. Switch Option Strict on in the editor, |
So I got a problem with the settings Tab in VB.Net. The settings are not displaying properly. There is a gap in the middle of the display. ![set.jpg](/attachments/large/4/ce53b8bed890123494c52258313e0760.jpg) The second problem I have is this: VB creates a settings file in the App Data folder: InClass.exe_Url_eoaehkudo2dalqpbmdabua2u0ulhsacj However, If I try … | |
Re: Maybe using show and hide is abetter way to deal with the issue. Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Form2.Show() Me.Hide() End Sub End Class Public Class Form2 Private Sub Form2_Load(sender As Object, e As EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(sender … | |
Re: Mybe try to assign a string to lblcs.Text like: lblcs.Text = cstr(Val(lblcs.Text) + 1) | |
Re: Tis is a solution for vb.net Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click Dim num1 As Double Dim num2 As Double Dim num3 As Double num1 = Convert.ToDouble(TextBox1.Text) num2 = Convert.ToDouble(TextBox2.Text) num3 = num1 + num2 TextBox3.Text = CStr(num3) End Sub | |
Re: In cases where I need to check my printouts I have installed a virtuel pdf printer and print to this one before committing to paper. I use Cute PDF Writer on these occasions. | |
Re: So o.k ifyou want to stick with vb6 then you could do the following; Dim txtlen As Integer ' the length ofwords Dim lencount As Integer ' the integer to hold the number of words longer then 6 lencount = 0 ' inialise to 0 Dim wordarray() As String' an … | |
Re: You are assigning a double to a string. Should probably be like: dim num as double num=CDbl(txtMonthly.Text) / CDbl(txtdr.Text) | |
Re: You should check first if the list contains the item you want to add and then decide what to do. You might want to exit the sub after line 37. Also make sure to post in the correct forum. Vb.net? | |
Re: O.K. I assume that you have added a totalsum row to your database which will give you a field that contains the total. If not then check this out: https://www.gcflearnfree.org/access2016/how-to-create-calculated-fields-and-totals-rows/1/ To display this one field in your textbox you need a query against your database and display the result. Here … | |
Re: Well there are different ways of printing certain columns of a dataviewgrid, I think this is what you mean? Here are two links: http://stackoverflow.com/questions/24058180/how-to-print-selected-column-in-datagridview-in-vb-net http://www.codeproject.com/Articles/16670/DataGridView-Printing-by-Selecting-Columns-and-Row the second one displays c# code but can be downloaded for vb.net. I did it a bit differently because I need to manipulate the columns … | |
Re: Teme64 was correct in his first explanation of the probabilty, so one mark up. The theory has been proven an can be assumed to be true. What then follows is that any computer program that tries to mimick reality has to come as close as can be to that reality. … | |
Re: First of all set options to strict on and infer to off. You find these by clicken on myproject in solution explorer and the compile option. To set a variable for the class or module declare these before the Load method like: Public Class TheName Dim LastName as string="" or … | |
Good day guys, here is another question I have, working with vb.net community 15. I have a large datagridview to display all lessons for my school timetabling program. There could be up to 14 timeslots = lessons per day. Now I like a timetabler to be able swap days like … | |
Good day community, I have completed vb.net program (a school timetabling program) and I am in the process to create a website. At the moment word -press on wamp server and parallel Microsoft Expression Web 4. To sell the program off the website, either clickonce or downloaded, I request the … | |
Re: The sledgehammer method would be to close all excel processes. This can be done with: Dim obj1(1) As Process obj1 = Process.GetProcessesByName("EXCEL") For Each p As Process In obj1 p.Kill() Next However, if others are also using excel , their processes will also be killed. Reference the this discussion: http://stackoverflow.com/questions/11761379/excel-process-still-runs-after-closing-in-vb-net | |
Re: You want to try it this way: dim a, b, res as integer dim c as string a=10 b=5 res= a+b c= res.tostring Debug.Print(c) | |
Re: First thing to remark is your dim of gpa as Integer. It most likely is a decimal. | |
Re: Its properly much easier to work from the lefthand side of the list. You just roughly know the max length of the first string, give some space and add the second. so if x is the length of the max length string ,say 12, you do space(-x+15) & next string. … | |
Re: You can check for various types. This comes from stackoverflow: Private Sub Command1_Click() Dim x As Variant ''//These are all different types: x = "1" 'x = 1 'x = 1& 'x = 1# Select Case VarType(x) Case vbEmpty Case vbNull Case vbInteger Label1 = "Integer" Case vbLong Case vbSingle … | |
Re: Did you check the rules for uploading files to the server. Most enforce some rules. Just google: "upload fiels restrictions" and you will find heaps of different entries to different servers. | |
Re: Thereare a few videos you can follow and see if it gives the required result: https://www.youtube.com/watch?v=FPBMoibAmU0 https://www.youtube.com/watch?v=vQhjnMxRuGs | |
Re: You need to show the code where the error happens. | |
Re: You can only split on a charcter I think. So you need to replace "<br/>" with say "," and then you split the string, like: Dim s As String = "cat dog <br/> red green <br/> car box <br/> " Dim s2 As String = "" s2 = s.Replace("<br/>", ",") … | |
Re: There is good code here how this works. I think you need to rethink your saving of the file and how you load it. https://msdn.microsoft.com/en-us/library/system.windows.forms.textbox.autocompletemode(v=vs.110).aspx Here is a complete snippets how it works: Imports System.IO Public Class Form1 Dim path As String = "C:\Test\Copiers" Private Sub Form1_Load(sender As Object, e … | |
Re: Here I have used only your string in a textbox to sort your conditions out. Also notice that string.trim only trims one character. So I successivly remove the parts you don'want and at the end move it into a listbox. You can than use the items in the listbox as … | |
Re: You are using your type cast wrongly. Sender is a callback function: http://stackoverflow.com/questions/11713250/vb-net-what-is-sender-used-for Leave this out and you may use: Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click If TextBox1.Text.Contains("Aan De") = True Then Dim wordString As String = TextBox1.Text TextBox1.Text = Replace(wordString, "Aan De", "aan de") ElseIf … | |
Re: Hey people maybe you check how old the posts are. This original one is 4 years old. |