User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 374,505 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,777 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 52
Search took 0.01 seconds.
Posts Made By: bwkeller
Forum: VB.NET Jun 6th, 2008
Replies: 1
Views: 171
Posted By bwkeller
Re: AutoNumberNo

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 MAX(Serial_No)+1...
Forum: VB.NET May 15th, 2008
Replies: 3
Views: 344
Posted By bwkeller
Re: Saving settings in a VB Program

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: 588
Posted By bwkeller
Re: Converting from C# .NET 1.0 to VB.NET 2.0

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: 250
Posted By bwkeller
Re: Cheking for printer availability

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: 588
Posted By bwkeller
Re: Converting from C# .NET 1.0 to VB.NET 2.0

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: 362
Posted By bwkeller
Re: set TextBoxes equal to zero

I think you already had; I was just to lazy to look before speaking!
Forum: VB.NET Apr 29th, 2008
Replies: 7
Views: 362
Posted By bwkeller
Re: set TextBoxes equal to zero

No problem. Mark this one solved!
Forum: VB.NET Apr 29th, 2008
Replies: 7
Views: 362
Posted By bwkeller
Re: set TextBoxes equal to zero

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: 208
Posted By bwkeller
Re: Commands to interface with peripheral

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: 1,166
Posted By bwkeller
Re: Command line parameters

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: 523
Posted By bwkeller
Forum: VB.NET Apr 11th, 2008
Replies: 3
Views: 523
Posted By bwkeller
Re: PictureBox Array Issue

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: 344
Posted By bwkeller
Re: How do i make my program work for 5 times and then Expire

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 and...
Forum: VB.NET Apr 3rd, 2008
Replies: 5
Views: 344
Posted By bwkeller
Re: How do i make my program work for 5 times and then Expire

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: 216
Posted By bwkeller
Re: please help, im really stuck :-(

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: 344
Posted By bwkeller
Re: How do i make my program work for 5 times and then Expire

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: 194
Posted By bwkeller
Re: ok how about this

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: 223
Posted By bwkeller
Re: Help make mobile imaging app

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: 787
Posted By bwkeller
Re: Text in a listbox

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: 284
Posted By bwkeller
Re: Pictures from VB to Word

Is this (http://www.developerfusion.co.uk/show/4677/) what you are looking for?
Forum: VB.NET Mar 24th, 2008
Replies: 4
Views: 798
Posted By bwkeller
Re: How to generate auto increment number?

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 database...
Forum: VB.NET Mar 22nd, 2008
Replies: 6
Views: 314
Posted By bwkeller
Solution Re: Where did I go wrong anyone knows?

And that should solve this issue.
Forum: VB.NET Mar 22nd, 2008
Replies: 6
Views: 314
Posted By bwkeller
Re: Where did I go wrong anyone knows?

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

Dim...
Forum: VB.NET Mar 20th, 2008
Replies: 4
Views: 515
Posted By bwkeller
Re: Storing Data from different file formats to a Database

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: 290
Posted By bwkeller
Re: merge from c# to VB

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: 515
Posted By bwkeller
Re: Storing Data from different file formats to a Database

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: 1,025
Posted By bwkeller
Re: Saving textbox data based on date selected

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: 515
Posted By bwkeller
Re: Storing Data from different file formats to a Database

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: 636
Posted By bwkeller
Re: GDI+ trouble (VB 2005)

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 solutions...
Forum: VB.NET Mar 19th, 2008
Replies: 8
Views: 1,025
Posted By bwkeller
Re: Saving textbox data based on date selected

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: 1,025
Posted By bwkeller
Re: Saving textbox data based on date selected

I'm not clear what you mean by this, can you elaborate?
Forum: VB.NET Mar 16th, 2008
Replies: 6
Views: 314
Posted By bwkeller
Re: Where did I go wrong anyone knows?

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: 996
Posted By bwkeller
Re: How can I declare this?

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: 1,087
Posted By bwkeller
Re: Contactless Card Reader problem

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: 404
Posted By bwkeller
Re: Multiple Form Problem

Yeah, this is just unreadable
Forum: VB.NET Mar 12th, 2008
Replies: 6
Views: 850
Posted By bwkeller
Re: how to store and retreive images from MS SQL Serer

Seems like this could be marked as "Solved."
Forum: VB.NET Mar 11th, 2008
Replies: 2
Views: 586
Posted By bwkeller
Solution Re: Web browser with predermined par of URL

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 it...
Forum: VB.NET Mar 11th, 2008
Replies: 6
Views: 850
Posted By bwkeller
Re: how to store and retreive images from MS SQL Serer

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: 1,512
Posted By bwkeller
Re: Validating data in a Textbox

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: 850
Posted By bwkeller
Re: how to store and retreive images from MS SQL Serer

Blobs. This link (http://www.vbdotnetheaven.com/UploadFile/mahesh/BLOBinAdoDotNet04232005065613AM/BLOBinAdoDotNet.aspx) should more than help.
Showing results 1 to 40 of 52

 
All times are GMT -4. The time now is 2:19 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC