Forum: VB.NET Jun 6th, 2008 |
| Replies: 1 Views: 171 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 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 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 |
Forum: VB.NET May 5th, 2008 |
| Replies: 7 Views: 588 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 |
Forum: VB.NET Apr 29th, 2008 |
| Replies: 7 Views: 362 |
Forum: VB.NET Apr 29th, 2008 |
| Replies: 7 Views: 362 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 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 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 |
Forum: VB.NET Apr 11th, 2008 |
| Replies: 3 Views: 523 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 |
Forum: VB.NET Apr 3rd, 2008 |
| Replies: 5 Views: 344 |
Forum: VB.NET Apr 3rd, 2008 |
| Replies: 4 Views: 216 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 |
Forum: VB.NET Apr 2nd, 2008 |
| Replies: 2 Views: 194 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 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 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 |
Forum: VB.NET Mar 24th, 2008 |
| Replies: 4 Views: 798 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 |
Forum: VB.NET Mar 22nd, 2008 |
| Replies: 6 Views: 314 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 |
Forum: VB.NET Mar 20th, 2008 |
| Replies: 6 Views: 290 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 |
Forum: VB.NET Mar 20th, 2008 |
| Replies: 8 Views: 1,025 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 |
Forum: VB.NET Mar 19th, 2008 |
| Replies: 2 Views: 636 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 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 |
Forum: VB.NET Mar 16th, 2008 |
| Replies: 6 Views: 314 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 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 |
Forum: VB.NET Mar 14th, 2008 |
| Replies: 5 Views: 404 |
Forum: VB.NET Mar 12th, 2008 |
| Replies: 6 Views: 850 |
Forum: VB.NET Mar 11th, 2008 |
| Replies: 2 Views: 586 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 |
Forum: VB.NET Mar 10th, 2008 |
| Replies: 2 Views: 1,512 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 |