4,901 Posted Topics

Member Avatar for chad.calamba05

Use the **Replace** function to replace the commas with nulls before you do the conversion to int and the addition.

Member Avatar for nashy13
0
2K
Member Avatar for mrkm1188

What version of vb.net are you using? For 2010 you can follow the procedure in the attached (I hope) file.

Member Avatar for Reverend Jim
0
82
Member Avatar for james.lu.75491856

Conway's game of Life in one line of APL ![c0c8e8bfe2c42cb379b0068a0533673a](/attachments/large/3/c0c8e8bfe2c42cb379b0068a0533673a.jpg "c0c8e8bfe2c42cb379b0068a0533673a")

Member Avatar for vegaseat
0
171
Member Avatar for mrjekzz

That is incorrect. You have to convert txtTotal.Text to a number before doing the calculation. There is also no reason to create a temp variable for one calculation. txtTotal.Text = Convert.ToInt32(txtTotal.Text) - Convert.ToInt32(txtfoodprice1.Text)

Member Avatar for xcrunner15
0
129
Member Avatar for Ancient Dragon

I disagree with you on only one point. Coding solutions from several years ago tend not to work "out of the box". As the particular language evolves with new releases, things that once worked, work no longer. Just try running a Python 2.5 program under Python 3.x, or a vb4-5-6 …

Member Avatar for Assembly Guy
0
330
Member Avatar for tommuhumuza

>Will be glad if i get help Will be glad if you provide details. 1. what is the error message 1. what line throws the error 1. what is the connection string 1. what type of database are you connecting to 1. what is **FrmMother.Db**

Member Avatar for Reverend Jim
0
109
Member Avatar for nikki05

You didn't show us how you declared _dic, or what error message you were getting. In any case, try _dic.Add(ctl.Name, ComboBox1.Text)

Member Avatar for Reverend Jim
0
326
Member Avatar for chocomilk

I'm assuming you mean you want to separate the lines in a notepad (text) document into an array of lines. Do you need to get the text from an open instance of notepad or is it sufficient to read the text from a file? If you are reading from a …

Member Avatar for tinstaafl
0
230
Member Avatar for gerbil

You are correct in that appending **$** to the share name makes it a hidden share, however all shares are by definition restricted, it's just a matter of to what degree. You control 1. who has access to the share 1. what access rights they have If you want to …

Member Avatar for gerbil
0
229
Member Avatar for Izzy_1

You can find examples of querying tables [here](http://www.daniweb.com/software-development/vbnet/code/445801/use-parameterized-queries-to-avoid-sql-injection-attacks). For an Access database you can use the ADO or OLEDB examples. You will need to use a connection string for Access rather than MSSQL (which I used for the examples). You can find connection strings [here](http://www.connectionstrings.com/access/). If you can't follow the …

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

Why such a small drive? I'd go for 250GB at the bare minimum. But as for suggestions, when I was running XP (and I had a lot of apps installed) I allocated 30GB to C and the rest to D. I made a folder on D named **Images**. I relocated …

Member Avatar for katman
0
190
Member Avatar for IsaacMessi10

Is the code in the **ComboBox6_SelectedIndexChanged** event handler? If so it should work. It works just fine for me (vb 2010). Iincidentally you can shorten the code to TextBox10.Visible = (ComboBox6.Text = "Enabled") You don't need the parentheses but if you leave them out it looks like a multiple assignment.

Member Avatar for Reverend Jim
0
116
Member Avatar for Iggystooge
Member Avatar for vivificus

I can't imagine why you would run into memory problems by just using different colours. Using the same colour for everything or a different colour per area should make no difference to the amount of memory used. For that matter, loading a picture with thousands of different colours into the …

Member Avatar for Reverend Jim
0
254
Member Avatar for Klahr_R

In vb.net you can treat vbNullString as being equivalent to "" but they are not treated exactly the same. For example, in the following code Dim s As String = "" If s = vbNullString Then MsgBox("same") End If the message "same" will be displayed when run, however, if you …

Member Avatar for Klahr_R
1
278
Member Avatar for aVar++

I found that using compressed air on keyboards just drove a lot of the hair (two cats) and lint farther under the keys. Now I use a wide soda straw on the end of a vacuum cleaner.

Member Avatar for Reverend Jim
0
197
Member Avatar for Peter_5
Member Avatar for killer88

Isn't that pretty much just up to your imagination? That's like asking "what can I program my computer to do?"

Member Avatar for Reverend Jim
-1
104
Member Avatar for Shodow

If you define ListView1 in details view with one column, and one button named Button1 then run this Public Class Form1 Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load ListView1.Items.Add(New ListViewItem({"the"})) ListView1.Items.Add(New ListViewItem({"quick"})) ListView1.Items.Add(New ListViewItem({"brown"})) ListView1.Items.Add(New ListViewItem({"fox"})) End Sub Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for Learner010

It's going to be a problem because every time you call g.DrawString it will write overtop of the existing text as the numbers change you will end up with just a black blob. Previously rendered numbers will not be erased. You can find a custom progress bar at [Code Project](http://www.codeproject.com/Articles/26518/Custom-ProgressBar-Control) …

Member Avatar for Gé48
0
4K
Member Avatar for Shodow

One way is For Each item As ListViewItem In ListView1.Items item.Selected = True Next

Member Avatar for Reverend Jim
0
114
Member Avatar for ibpet11

You can use a sorted set as Dim sort As New SortedSet(Of String) Dim sw As New System.IO.StreamWriter("d:\temp\test2.csv") For Each line As String In System.IO.File.ReadAllLines("d:\temp\test1.csv") sort.Add(line) Next For Each line As String In sort sw.WriteLine(line) Next sw.Close()

Member Avatar for ibpet11
0
2K
Member Avatar for SenseiWuzi

How about Public Class Form1 Private Sub TextBox1_TextChanged(sender As System.Object, e As System.EventArgs) Handles TextBox1.TextChanged SetPlayQuit() End Sub Private Sub TextBox2_TextChanged(sender As System.Object, e As System.EventArgs) Handles TextBox2.TextChanged SetPlayQuit() End Sub Private Sub SetPlayQuit() 'If we are not currently playing a game, this sub will disable the 'play button if …

Member Avatar for SenseiWuzi
0
223
Member Avatar for diafol

I you think that is hard on the eyes try staring at this for a while

Member Avatar for Dani
1
209
Member Avatar for Dani
Member Avatar for Reverend Jim
3
1K
Member Avatar for sushilsth

You can iterate through all controls, or in this example, all controls of a given type. For Each ctrl As GroupBox In TabControl1.TabPages(0).Controls.OfType(Of GroupBox)() MyCustomSub(ctrl) Next Private Sub MyCustomSub(ctrl As GroupBox) . . . End Sub

Member Avatar for ShahanDev
0
141
Member Avatar for IsaacMessi10
Member Avatar for shenn.to

I'm guessing that what you are trying to say is: **I have a form with a treeview control and a tab control. When the user double-clicks on a child node in the treeview I want to create a Tab page with the selected child node name but only if that …

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

In Excel 2003 (the version I have) you can import the data directly from the database table by defining a query from DATA -> IMPORT EXTERNAL DATA -> NEW DATABASE QUERY

Member Avatar for Reverend Jim
0
267
Member Avatar for Nebil

We can answer specific questions if you have them. We expect you to show some effort first. Please read [this](http://www.daniweb.com/software-development/vbnet/threads/424836/please-read-this-before-posting)

Member Avatar for Reverend Jim
0
64
Member Avatar for Nebil

This has been asked and answered multiple times. Search this forum as well as the code snippets.

Member Avatar for Nebil
-1
7K
Member Avatar for TonyG_cyprus
Member Avatar for riahc3

CTRL-A followed by CTRL-C allows me to copy the entire post (the one I am currently entering) to the clipboard. On other posts, double clicking in a code snippet copies the entire snippet (including formatting) to the clipboard. Clicking and dragging selects a block of text, then CTRL-C copies it …

Member Avatar for riahc3
0
1K
Member Avatar for BiplabDH
Member Avatar for PDB1982

If you install MS SQL and SQL Management Studio (both free) you can run queries in Studio itself without having to create all the interface objects that you would need if running from vb. This makes it much easier to build your databases and debug/learn queries.

Member Avatar for Reverend Jim
0
209
Member Avatar for baabjitvk

All you have told us about the code is "it's about 500 lines". Based on that minimal amout of information the only reponse I can give is "write better code".

Member Avatar for rishif2
0
374
Member Avatar for Shodow

Perhaps if you asked a clearer question and told us what your code is supposed to do we might be able to help.

Member Avatar for Reverend Jim
0
285
Member Avatar for Patrick_3

I'm not sure I understand. Classes shouldn't be using external variables. If you have a file which defines variables and they are used by multiple classes then you are making the inner workings of the classes dependent on external variables. If I've completely missed the point then please elaborate.

Member Avatar for Reverend Jim
0
234
Member Avatar for naylin_1

Any software that claims to boost your wifi speed is at best only a waste of money and at worst a scam to get you to install virus/trojan laden software.

Member Avatar for jjorgensen626
0
239
Member Avatar for james.lu.75491856

Then the bartender says "we don't serve strings in here" so one of the strings tatters himself on top and ties up a few loose ends, then goes back to the bartender who says "are you a string?". To which he replies "No. I'm a frayed knot".

Member Avatar for james.lu.75491856
0
475
Member Avatar for حسنين_1

Maybe he/she is saving a spot for a later question. See [here](http://loadingreadyrun.com/videos/view/1665/Loading-Time-PlaceholderURL)

Member Avatar for Reverend Jim
-1
117
Member Avatar for yogeshsinh.chauhan

It also helps if you indent properly. You probably lost all the indentation because you didn't use the **Code** button to insert the code snippet. I fixed it up for you.

Member Avatar for Reverend Jim
0
185
Member Avatar for shenn.to

I believe this has already been asked by you [here](http://www.daniweb.com/software-development/vbnet/threads/459878/tab-control)

Member Avatar for shenn.to
0
246
Member Avatar for shenn.to
Member Avatar for shenn.to
0
176
Member Avatar for GrimJack

>And above all, don't mention the war! In the same vein have a read [here](http://www.guardian.co.uk/world/2013/jul/11/microsoft-nsa-collaboration-user-data). All of your Skype communications and Outlook email is in the hands of the NSA.

Member Avatar for diafol
0
624
Member Avatar for ComputerFirstAde

Or you could use the RichTextBox control and write to an rtf file which is readable by Word.

Member Avatar for BigFatMama
0
410
Member Avatar for dalebryant76

That depends on what, specifically you want to do. If you want to implement a search-and-replace feature where the user enters the text to search for and the replacement text then you do it one way. If you want to allow the user to select a block of text and …

Member Avatar for dalebryant76
0
197
Member Avatar for akinyi.dorah
Member Avatar for UKnod

You are not going to like this answer but don't use DAO. ADO is not confusing or riddled with problems. ADO is actually pretty straightforward. The only confusing part can be getting the connection string right and we can help you with that as long as we know what type …

Member Avatar for UKnod
0
741
Member Avatar for webecedarian

The End.