Search Results

Showing results 1 to 40 of 455
Search took 0.19 seconds.
Search: Posts Made By: waynespangler ; Forum: VB.NET and child forums
Forum: VB.NET Apr 13th, 2009
Replies: 1
Views: 360
Posted By waynespangler
A third party control is a control written by someone other than the people that wrote the program. i.e. A column control for vb2008 writen by someone other than Microsoft, A control writen for use...
Forum: VB.NET Apr 11th, 2009
Replies: 4
Views: 499
Posted By waynespangler
http://www.devcity.net/Articles/119/1/vb2005_wallpaper.aspx
Forum: VB.NET Apr 10th, 2009
Replies: 2
Views: 253
Posted By waynespangler
Use a FileInfo class:
Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim file As New...
Forum: VB.NET Apr 10th, 2009
Replies: 4
Views: 499
Posted By waynespangler
Try this:
Imports System.Drawing

Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.BackgroundImageLayout...
Forum: VB.NET Apr 10th, 2009
Replies: 10
Views: 656
Posted By waynespangler
By using text changed you are checking everytime a new character is entered. So the first character entered is 1 and you get a <100. The next character makes it a 10 so it is still less than 100. If...
Forum: VB.NET Mar 24th, 2009
Replies: 1
Views: 839
Posted By waynespangler
The purpose of inherits is code reuse. Therefore you can't change anything from an inherited form. You can add to it but no changes allowed.
Forum: VB.NET Mar 23rd, 2009
Replies: 3
Views: 751
Posted By waynespangler
If it is always .xx then divide by 100.
Dim num As Decimal = 899
Dim s As String = CStr(num)
If s.IndexOf(".") < 0 Then
TextBox1.Text = (num / 100D).ToString...
Forum: VB.NET Mar 20th, 2009
Replies: 2
Views: 650
Posted By waynespangler
First I don't know what F is returning. Is it a decimal?
Next you are converting a decimal to a string and then converting it back to a decimal. Big waste of resources. If F is returning a decimal...
Forum: VB.NET Mar 20th, 2009
Replies: 1
Views: 2,106
Posted By waynespangler
Try this site:
http://msdn.microsoft.com/en-us/library/ms996492.aspx
Forum: VB.NET Mar 15th, 2009
Replies: 1
Views: 759
Posted By waynespangler
You must be using vb6.
Your timer logic is wrong.
1. when you come into the timer you are setting the timer enable and then checking to see if it is enabled. Which will allways be true.
2. The...
Forum: VB.NET Mar 13th, 2009
Replies: 5
Views: 680
Posted By waynespangler
This is what I ran and it worked fine.
Public Class Form1
Dim heads As Integer = 0
Dim tails As Integer = 0
Dim totals As Integer = 0
Dim coin As New Random

Private Sub...
Forum: VB.NET Mar 12th, 2009
Replies: 5
Views: 680
Posted By waynespangler
Add this to your loop.
Imports System.Drawing

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If...
Forum: VB.NET Mar 10th, 2009
Replies: 6
Views: 1,640
Posted By waynespangler
Double click on the My Project. On the left hand side toward the bottom in the Shut Down Mode select "After last form closes".
If you don't then when you close the startup form the program ends.
Forum: VB.NET Mar 9th, 2009
Replies: 6
Views: 1,640
Posted By waynespangler
try:
For i As Integer = 0 To users.Count -1
Forum: VB.NET Mar 8th, 2009
Replies: 1
Views: 264
Posted By waynespangler
Try this:
Public Class Form1
Private count As Integer = 5

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim tb As...
Forum: VB.NET Mar 6th, 2009
Replies: 4
Views: 1,359
Posted By waynespangler
Another way. If your text is in a textbox then click between the "" marks and then press a button. as:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)...
Forum: VB.NET Mar 6th, 2009
Replies: 4
Views: 1,359
Posted By waynespangler
Here is one way to do it. It assumes that the structure of the string remains the same all the time.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
Forum: VB.NET Mar 6th, 2009
Replies: 3
Views: 1,690
Posted By waynespangler
You can't change the path. I would suggest you use Inno setup instead.
Forum: VB.NET Feb 10th, 2009
Replies: 4
Views: 1,394
Posted By waynespangler
You have to copy the images into the resources. Copy your images to the clipboard. Double click on the MyProjects in the Solution Explorer. Click on the resources tab. Now right click on the...
Forum: VB.NET Feb 9th, 2009
Replies: 4
Views: 1,394
Posted By waynespangler
You still have to tell it where the file is. It it something I have always had trouble with because your program is run in bin subdirectory and either debug subdirectory or release subdirectory and...
Forum: VB.NET Jan 28th, 2009
Replies: 14
Views: 995
Posted By waynespangler
I put this in a wrong thread but:
I don't have Visual Studio 2008 but I have Visual Studio 2005. In 2005 if you go to New Project then Other Project Types. You should see several setup projects...
Forum: VB.NET Jan 28th, 2009
Replies: 6
Views: 1,879
Posted By waynespangler
Sorry about my answer I don't know what happened but I ment to put that in another thread. Again, Sorry.
Forum: VB.NET Jan 28th, 2009
Replies: 6
Views: 1,879
Posted By waynespangler
I don't have Visual Studio 2008 but I have Visual Studio 2005. In 2005 if you go to New Project then Other Project Types. You should see several setup projects including Setup Wizard.
Express...
Forum: VB.NET Jan 18th, 2009
Replies: 5
Solved: handle buttons
Views: 1,155
Posted By waynespangler
Try this:
Double click on your button. This will take you to the code page showing the click event.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
Forum: VB.NET Jan 14th, 2009
Replies: 3
Views: 441
Posted By waynespangler
As long as you use it on windows. VB Express 2008 is free. Get it here: http://www.microsoft.com/Express/VB/
Forum: VB.NET Jan 12th, 2009
Replies: 5
Views: 724
Posted By waynespangler
Try this (a couple of suggestions):
http://social.msdn.microsoft.com/Forums/en-US/vbide/thread/894ed8bf-22a7-444d-838c-59b79dbef448/
Forum: VB.NET Jan 10th, 2009
Replies: 5
Solved: Find occurance
Views: 1,184
Posted By waynespangler
If you take the remarks out it is not that long.
This might be a bit shorter:
Dim MyString As String = "now is the now is the not now is th"
Dim str As String = "now is" ' the search...
Forum: VB.NET Jan 7th, 2009
Replies: 2
Views: 3,057
Posted By waynespangler
vb 2005 and vb 2008:
Forum: VB.NET Jan 7th, 2009
Replies: 5
Views: 404
Posted By waynespangler
Yea, love Cass myself. This summer we are going to take the Mistery Train ride and see if I'm smart enought to solve the crime. I was away from West Virginia for 40 years and now I will never leave...
Forum: VB.NET Jan 7th, 2009
Replies: 5
Views: 404
Posted By waynespangler
create a new project and add this code. Start it with the window minimized.
Public Class Form1
Private bmp As Bitmap = New Bitmap(100, 200, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
...
Forum: VB.NET Jan 7th, 2009
Replies: 5
Views: 404
Posted By waynespangler
Instead of using the form graphics use a bitmap and set the form background equal to the bitmap image. Now when you write to the bitmap it will be transfered automatically to the form background...
Forum: VB.NET Jan 1st, 2009
Replies: 3
Views: 1,076
Posted By waynespangler
As RamyMahrous said use an array. If you deceide to add or remove anything later you only need to do it in one place.
Dim ary As String() = {" single space", "- hyphen", " - <single...
Forum: VB.NET Dec 22nd, 2008
Replies: 1
Views: 789
Posted By waynespangler
Try this:
Dim ary(,,) As Integer
ReDim ary(10, 3, 5)
ary = Nothing
ReDim ary(2, 3, 4)
Forum: VB.NET Dec 21st, 2008
Replies: 7
Views: 2,324
Posted By waynespangler
If you are using xp or down to 98, you can use Beep(frequency,duration) api. Vista apparently dorped the Beep api.
Forum: VB.NET Dec 21st, 2008
Replies: 20
Views: 1,472
Posted By waynespangler
A static variable is used when you leave a subroutine and return to it the variable hasn't changed. If it were 5 then the next time you called the routine it would still be 5. It is not a public...
Forum: VB.NET Dec 20th, 2008
Replies: 7
Views: 2,324
Posted By waynespangler
I found this. You could download it, see how they store thier data and how they handle things.
http://www.brothersoft.com/acid-6347.html
Forum: VB.NET Dec 20th, 2008
Replies: 7
Views: 2,324
Posted By waynespangler
Yes I think it is possible. It woluld take a lot of disk space for each note that could be played. A long time ago in a land far away in Windows 3.1 I did something like that. I know I don't have...
Forum: VB.NET Dec 20th, 2008
Replies: 20
Views: 1,472
Posted By waynespangler
There doesn't seem to be an edit so do this.
Delete this:
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
Forum: VB.NET Dec 20th, 2008
Replies: 20
Views: 1,472
Posted By waynespangler
First of all - When submitting code please use comments inside the code so we know what you are doing or thinking.
1. Your code in TextBox1_TextChanged creates an infinite loop. You are changing the...
Forum: VB.NET Dec 19th, 2008
Replies: 1
Views: 718
Posted By waynespangler
Showing results 1 to 40 of 455

 


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

©2003 - 2009 DaniWeb® LLC