Posts
 
Reputation
Joined
Last Seen
Ranked #306
Strength to Increase Rep
+8
Strength to Decrease Rep
-2
88% Quality Score
Upvotes Received
69
Posts with Upvotes
63
Upvoting Members
40
Downvotes Received
11
Posts with Downvotes
10
Downvoting Members
4
16 Commented Posts
10 Endorsements
Ranked #180
Ranked #227
~229.88K People Reached
Favorite Tags
Member Avatar for JModak

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 = {"[", "!", "#", "$", "%", "&", "'", "(", ")", "*", "+", ",", "\", "-", ".", "/", …

Member Avatar for Minimalist
0
681
Member Avatar for Micheal87

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,

Member Avatar for Minimalist
0
57
Member Avatar for kasmar45
Member Avatar for Minimalist

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 …

0
577
Member Avatar for SoftBa

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 …

Member Avatar for Minimalist
0
902
Member Avatar for Paturo.po
Member Avatar for Minimalist
0
385
Member Avatar for gloria_4

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

Member Avatar for mukiibi
0
9K
Member Avatar for Nbrase

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.

Member Avatar for Minimalist
1
2K
Member Avatar for Brage

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 …

Member Avatar for Minimalist
0
412
Member Avatar for Dexter_4

You are assigning a double to a string. Should probably be like: dim num as double num=CDbl(txtMonthly.Text) / CDbl(txtdr.Text)

Member Avatar for Reverend Jim
0
419
Member Avatar for peter_73

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?

Member Avatar for Minimalist
0
445
Member Avatar for Tito_3

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 …

Member Avatar for Minimalist
0
489
Member Avatar for sashiksu

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 …

Member Avatar for Elvis J.
0
6K
Member Avatar for Reverend Jim

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. …

Member Avatar for xrjf
0
2K
Member Avatar for itprosam

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 …

Member Avatar for Minimalist
0
450
Member Avatar for Minimalist

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 …

Member Avatar for ddanbe
0
837
Member Avatar for Minimalist

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 …

Member Avatar for Minimalist
0
308
Member Avatar for Papa_Don

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

Member Avatar for Papa_Don
0
5K
Member Avatar for Javed_5

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)

Member Avatar for Minimalist
0
100
Member Avatar for Calvince

First thing to remark is your dim of gpa as Integer. It most likely is a decimal.

Member Avatar for Minimalist
0
215
Member Avatar for jeffersonalomia

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. …

Member Avatar for Minimalist
0
289
Member Avatar for jeffersonalomia

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 …

Member Avatar for Minimalist
0
880
Member Avatar for Koriewhite

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.

Member Avatar for rproffitt
0
202
Member Avatar for Papa_Don

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

Member Avatar for Minimalist
0
5K
Member Avatar for Papa_Don
Member Avatar for Link_1

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/>", ",") …

Member Avatar for Mr.M
0
240
Member Avatar for kberrianjr

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 …

Member Avatar for Minimalist
0
499
Member Avatar for Mr.M

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 …

Member Avatar for Mr.M
0
636
Member Avatar for johndohmen1963

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 …

Member Avatar for johndohmen1963
0
215
Member Avatar for Noorul Ariff
Member Avatar for Steffany
0
8K