Forum: VB.NET Apr 13th, 2009 |
| Replies: 1 Views: 296 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: 405 http://www.devcity.net/Articles/119/1/vb2005_wallpaper.aspx |
Forum: VB.NET Apr 10th, 2009 |
| Replies: 2 Views: 237 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: 405 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: 605 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: 711 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: 664 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: 558 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: 1,686 Try this site:
http://msdn.microsoft.com/en-us/library/ms996492.aspx |
Forum: VB.NET Mar 15th, 2009 |
| Replies: 1 Views: 643 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: 592 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: 592 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,342 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,342 try:
For i As Integer = 0 To users.Count -1 |
Forum: VB.NET Mar 8th, 2009 |
| Replies: 1 Views: 251 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,141 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,141 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,420 You can't change the path. I would suggest you use Inno setup instead. |
Forum: VB.NET Feb 10th, 2009 |
| Replies: 4 Views: 1,179 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,179 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: 888 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,666 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,666 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 Views: 1,032 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: 378 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: 635 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 Views: 1,051 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: 2,483 |
Forum: VB.NET Jan 7th, 2009 |
| Replies: 5 Views: 382 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: 382 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: 382 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: 938 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: 716 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,193 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,410 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,193 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,193 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,410 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,410 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: 638 Answer deleted. I don't know. |