4,911 Posted Topics

Member Avatar for nitin1

My first two jobs paid peanuts but the experience was priceless and the work was fascinating. My first job was at what once was a hospital but by then had been converted to a rehab facility for children recovering from surgeries for burns and amputations. We also were a leading …

Member Avatar for nitin1
-1
509
Member Avatar for happygeek

I'd like aerial shots of the cottage and land. After that I can't think of anything.

Member Avatar for ChrisHunter
0
192
Member Avatar for karabomoeng

Use [TrueCrypt](http://www.truecrypt.org/). It's free and open source, very well supported and remarkably easy to use.

Member Avatar for Reverend Jim
0
147
Member Avatar for london-G

It's a bit like driving a car. If you are going somewhere familiar you don't really think about what you are doing. If you are going someplace unfamiliar you have to watch for street signs and pay a lot of attention to every turn.

Member Avatar for <M/>
0
119
Member Avatar for Reverend Jim

Several people have asked about storing binary data in a database. I coded up an example today that uses an ADODB.Stream to copy the binary data but after some fiddling I found a more direct way. If you are using MS SQL Server, the easiest way I have found is …

0
2K
Member Avatar for chloie
Member Avatar for Rajiv9

You could try Math.Truncate(yournum + 0.5) and convert it to Int if you require an integer. I hate the way vb does rounding which is different for even numbers than for odd. Math.Round(6.5) is 6.0 Math.Round(5.5) is 6.0

Member Avatar for Rajiv9
0
2K
Member Avatar for sushilsth

The first problem is that is not VB code so the syntax is completely wrong. Please ensure that your code is actually the correct language for the forum. Next problem - a boolean variable can not be "either class a or class b". It can only be True or False …

Member Avatar for Reverend Jim
0
120
Member Avatar for Ahmed.C

You coded Using response1 = CType(ftp1.GetResponse(), Net.FtpWebResponse) dte = response1.LastModified Dim listviewitem As ListViewItem = New ListViewItem End Using but listviewitem goes out of scope as soon as you leave the **Using** block so declaring a new instance there is pointless. You then have Dim listviewitem As ListViewItem = New …

Member Avatar for Ahmed.C
0
401
Member Avatar for Klahr_R
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
328
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
231
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
230
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
191
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
279
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
106
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
115
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
268
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
476

The End.