Search Results

Showing results 1 to 40 of 52
Search took 0.01 seconds.
Search: Posts Made By: bwkeller
Forum: VB.NET Jun 6th, 2008
Replies: 1
Views: 425
Posted By bwkeller
First of all you put your code into a code block so that we can read it easier, like so:

Private Sub AutoNumberNo()
try
Dim strsql As String
strsql = "SELECT...
Forum: VB.NET May 15th, 2008
Replies: 3
Views: 823
Posted By bwkeller
If the fields in the database table are static, you can assign a number to each and use a single config variable to hold a comma-delimited list of fields in the specified order. I've done that quite...
Forum: VB.NET May 6th, 2008
Replies: 7
Views: 1,841
Posted By bwkeller
Here is a function I use in conjunction with the previous SetUpBitMap() function to convert a graphic to grayscale. I think it should help you solve your issue:

Public Shared Function...
Forum: VB.NET May 6th, 2008
Replies: 1
Views: 827
Posted By bwkeller
Apparently you can do this in the .NET 3 framework as described here (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1139309&SiteID=1).
Forum: VB.NET May 5th, 2008
Replies: 7
Views: 1,841
Posted By bwkeller
Instead of:
Dim bmData As BitmapData = glyph.LockBits(New Rectangle(0, 0, glyph.Width, glyph.Height), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb)
Dim scan0 As IntPtr = bmData.Scan0
Dim...
Forum: VB.NET Apr 30th, 2008
Replies: 7
Views: 1,147
Posted By bwkeller
I think you already had; I was just to lazy to look before speaking!
Forum: VB.NET Apr 29th, 2008
Replies: 7
Views: 1,147
Posted By bwkeller
No problem. Mark this one solved!
Forum: VB.NET Apr 29th, 2008
Replies: 7
Views: 1,147
Posted By bwkeller
Sum = Val(ExecTextBox.Text * 200) + Val(ManageTextBox.Text * 150) + Val(AssoTextbox.Text * 100) should be:

Sum = Val(ExecTextBox.Text) * 200 + Val(ManageTextBox.Text) * 150 + Val(AssoTextbox.Text)...
Forum: VB.NET Apr 29th, 2008
Replies: 1
Views: 472
Posted By bwkeller
Do you want to read raw data or interface with a driver or api? Either way, this is not a simple task. To read raw data you would have to write your own driver to interface with USB devices. Look at...
Forum: VB.NET Apr 22nd, 2008
Replies: 2
Views: 6,289
Posted By bwkeller
This should work. I would place it in a test to make sure you are properly passing the arg, such as:
If My.Application.CommandLineArgs.Count > 0 Then
...
Forum: VB.NET Apr 11th, 2008
Replies: 3
Views: 2,160
Posted By bwkeller
Forum: VB.NET Apr 11th, 2008
Replies: 3
Views: 2,160
Posted By bwkeller
I'm confused as to the need for another array. If you have an array of names that you used to populate the combobox, just tack on a field that has the name of the image you want displayed in the...
Forum: VB.NET Apr 4th, 2008
Replies: 5
Views: 849
Posted By bwkeller
On the other hand, if this is just a presentation and you don't care that the data is stored externally, you can use the my.settings values.

Create the program with a "TimesRun" User value of 0...
Forum: VB.NET Apr 3rd, 2008
Replies: 5
Views: 849
Posted By bwkeller
A point of confusion:

How are you going to keep track of the number of times the program is run without saving that information externally? Even my.settings values are saved externally.
Forum: VB.NET Apr 3rd, 2008
Replies: 4
Views: 511
Posted By bwkeller
There is really not a safe way to save information "internally" in a program. Even the .NET My.Settings will be saved externally when changed. Virus protectors will not allow you to alter the data...
Forum: VB.NET Apr 3rd, 2008
Replies: 5
Views: 849
Posted By bwkeller
To do something like this I would require an Internet connection and keep track of number of runs in an Access or SQL database based on the machine name on which the application is running and the...
Forum: VB.NET Apr 2nd, 2008
Replies: 2
Views: 513
Posted By bwkeller
Take a look at this (http://msdn2.microsoft.com/en-us/magazine/cc163944.aspx) by the great Carl Franklin.
Forum: VB.NET Apr 2nd, 2008
Replies: 2
Views: 524
Posted By bwkeller
The problem is you are not asking for help, you are asking for someone to do all the work for you while you put out no effort at all. I doubt if you will find the kind of "help" you are looking for...
Forum: VB.NET Mar 26th, 2008
Replies: 2
Views: 2,830
Posted By bwkeller
Set the DrawMode of the listbox to OwnerDrawFixed or OwnerDrawVariable, then add this code to the DrawItem event:

Private Sub ListBox1_DrawItem(ByVal sender As Object, ByVal e As...
Forum: VB.NET Mar 24th, 2008
Replies: 3
Views: 1,109
Posted By bwkeller
Is this (http://www.developerfusion.co.uk/show/4677/) what you are looking for?
Forum: VB.NET Mar 24th, 2008
Replies: 4
Views: 4,226
Posted By bwkeller
You are missinjg some data here:

Is this the main form of a project?

Are you counting times the program has run, or times the form is loaded during a single run?

Are you connecting to a...
Forum: VB.NET Mar 22nd, 2008
Replies: 6
Views: 623
Posted By bwkeller
And that should solve this issue.
Forum: VB.NET Mar 22nd, 2008
Replies: 6
Views: 623
Posted By bwkeller
OK, you have a number of problems:

First, you should not use integers for money math, it looks plain strange.

Dim intOwed, intPaid, intDue, intD, intQ, intI, intN, intP As Integer
should be ...
Forum: VB.NET Mar 20th, 2008
Replies: 4
Views: 1,754
Posted By bwkeller
Well that is a different matter. You would have to look up the different APIs for the different file formats. This...
Forum: VB.NET Mar 20th, 2008
Replies: 6
Views: 891
Posted By bwkeller
One way to learn VB.NET is to use a C#-to-VB.NET converter to look at the differences in code you already understand. I think this (http://labs.developerfusion.co.uk/convert/csharp-to-vb.aspx) is the...
Forum: VB.NET Mar 20th, 2008
Replies: 4
Views: 1,754
Posted By bwkeller
You might find this code (http://www.vbdotnetheaven.com/UploadFile/mahesh/BLOBinAdoDotNet04232005065613AM/BLOBinAdoDotNet.aspx) easier to understand as it is not ASP code.
Forum: VB.NET Mar 20th, 2008
Replies: 8
Views: 2,840
Posted By bwkeller
OK, this article (http://aspnet.4guysfromrolla.com/articles/092403-1.aspx) should get you going as it covers how to use the System.Xml.XmlTextWriter class. The example code is in C# but just cut and...
Forum: VB.NET Mar 20th, 2008
Replies: 4
Views: 1,754
Posted By bwkeller
If using SQL Server create an Image or nVarChar field in your database table to hold the data. The process is not that different from storing a picture so this code...
Forum: VB.NET Mar 19th, 2008
Replies: 2
Views: 1,540
Posted By bwkeller
I'm working on a graphics editor in VB 2005 as well, just for the heck of it and to see how far can I go and I haven't tackled the problem you are having yet, but I know it is coming.

Two...
Forum: VB.NET Mar 19th, 2008
Replies: 8
Views: 2,840
Posted By bwkeller
Well, you could save to an Access database that you would update over time or an XML file that you would replace each time if you don't want a database, but you need to decide what method you want to...
Forum: VB.NET Mar 18th, 2008
Replies: 8
Views: 2,840
Posted By bwkeller
I'm not clear what you mean by this, can you elaborate?
Forum: VB.NET Mar 16th, 2008
Replies: 6
Views: 623
Posted By bwkeller
Narue has a great answer for this one in this (http://www.daniweb.com/forums/thread113416.html) thread. Your main problem is you are not decrementing what you count, i.e., once you count dollars, you...
Forum: VB.NET Mar 16th, 2008
Replies: 13
Views: 2,443
Posted By bwkeller
I'm not trying to be negative and I am sorry if you took it that way. I'm trying to point you in the right direction without writing your code for you. That would teach you nothing.

Read what...
Forum: VB.NET Mar 14th, 2008
Replies: 4
Views: 2,681
Posted By bwkeller
Please use code tags. Nobody wants to wade through this code without it being properly formatted.
Forum: VB.NET Mar 14th, 2008
Replies: 5
Views: 795
Posted By bwkeller
Yeah, this is just unreadable
Forum: VB.NET Mar 12th, 2008
Replies: 6
Views: 2,709
Posted By bwkeller
Seems like this could be marked as "Solved."
Forum: VB.NET Mar 11th, 2008
Replies: 2
Views: 1,960
Posted By bwkeller
Change:

WebBrowser1.Url = New Uri(TextBox1.Text)

to:

WebBrowser1.Url = New Uri("http://www.somesite.com/" & TextBox1.Text & "/profile/info.html")

I ran this pointing to a real website and...
Forum: VB.NET Mar 11th, 2008
Replies: 6
Views: 2,709
Posted By bwkeller
I used to do this same thing in VB6, using a third-party OCX (XCeed) to compress the images and then splitting the hex values into two bytes to remove any exotic characters. Works like a charm.
Forum: VB.NET Mar 10th, 2008
Replies: 2
Views: 4,525
Posted By bwkeller
should be:

If IsNumeric(Me.txtFirstName.Text) Or IsNumeric(Me.txtLastName.Text) Or strLastName = "" Or strFirstName = "" Then
MessageBox.Show("Error")
End If
Forum: VB.NET Mar 10th, 2008
Replies: 6
Views: 2,709
Posted By bwkeller
Blobs. This link (http://www.vbdotnetheaven.com/UploadFile/mahesh/BLOBinAdoDotNet04232005065613AM/BLOBinAdoDotNet.aspx) should more than help.
Showing results 1 to 40 of 52

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC