Search Results

Showing results 1 to 19 of 19
Search took 0.15 seconds.
Search: Posts Made By: waynespangler ; Forum: VB.NET and child forums
Forum: VB.NET Nov 12th, 2008
Replies: 3
Views: 864
Posted By waynespangler
try:
TextBox1.Text = TextBox1.Text.Substring(0, TextBox1.SelectionStart) & ComboBox1.Text & TextBox1.Text.Substring(TextBox1.SelectionStart)
Forum: VB.NET Nov 9th, 2008
Replies: 6
Views: 3,494
Posted By waynespangler
Do you really need a 1d array. Why not just put the info into the listbox. i.e.
Public Class Form1
Dim ary(4, 3)

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As...
Forum: VB.NET Sep 19th, 2008
Replies: 1
Views: 3,837
Posted By waynespangler
You have to redimension your lines array:
Dim sr As StreamReader = New StreamReader("csvSTOCKS.TXT")
Dim lines() As String
Dim index As Integer = 0

Do While...
Forum: VB.NET Aug 5th, 2008
Replies: 2
Views: 542
Posted By waynespangler
Set TopMost property of form.
Forum: VB.NET Jun 17th, 2008
Replies: 7
Views: 695
Posted By waynespangler
I just ran your code. All the group boxes showed up like they should. I did see that you are hiding some controls in places in your code and not showing them again. Click on "Daily Pescription" and...
Forum: VB.NET May 12th, 2008
Replies: 6
Views: 3,820
Posted By waynespangler
I don't like to correct anyone but you need to get away from vb6. To do it the net way
TextBox1.Text = TextBox1.Text.Substring(1) & TextBox1.Text.Substring(0, 1)
The first pram is the starting...
Forum: VB.NET Jan 21st, 2008
Replies: 2
Views: 1,485
Posted By waynespangler
Try this:
Dim d As DateTime = CDate(TextBox1.Text)
If (DateTime.Compare(Now, d) > 0) Then
MessageBox.Show("Entered date has already happened. Please enter a future...
Forum: VB.NET Oct 26th, 2007
Replies: 4
Views: 2,278
Posted By waynespangler
I use another form with a webbrowser on it. On the form I have a property:
Public WriteOnly Property HelpFile()
Set(ByVal value)
Me.WebBrowser1.Navigate(value)
End...
Forum: VB.NET Jul 26th, 2007
Replies: 11
Views: 5,401
Posted By waynespangler
Set item 0 to "Please select an item" and the listindex to 0.
Forum: VB.NET Jul 23rd, 2007
Replies: 6
Views: 10,294
Posted By waynespangler
Try this:
Dim process As New Process
process.StartInfo.FileName = "perl.exe"
process.StartInfo.Arguments = "filename.pl"
process.StartInfo.WorkingDirectory = "C:\Perl\eg"...
Forum: VB.NET Jul 21st, 2007
Replies: 6
Views: 10,294
Posted By waynespangler
Try this in your main form load event:
Private Sub frmMain_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim process As New Process
With process
With .StartInfo...
Forum: VB.NET Jul 11th, 2007
Replies: 6
Views: 22,507
Posted By waynespangler
I assume you are putting your input to a textbox. So try this:
TextBox1.Text = InputBox("Enter number")
TextBox1.Text = TextBox1.Text.Substring(0, TextBox1.Text.Length - 1)
Forum: VB.NET Jun 16th, 2007
Replies: 4
Views: 7,411
Posted By waynespangler
Try this and see if it is what you want.
Private Sub btnCropImage_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCropImage.Click
If PictureBox1.Image Is...
Forum: VB.NET May 14th, 2007
Replies: 1
Views: 3,428
Posted By waynespangler
Today = CType("05/14/2007", Date)
TimeOfDay = CType("11:32", Date)
Forum: VB.NET May 12th, 2007
Replies: 8
Views: 2,739
Posted By waynespangler
Forum: VB.NET Apr 27th, 2007
Replies: 14
Views: 7,629
Posted By waynespangler
Here is how I did a undo:
Dim UndoStack As New Stack(Of Bitmap)() 'holds the backup images

'==========================================================================
' Saves...
Forum: VB.NET Dec 19th, 2006
Replies: 8
Views: 16,424
Posted By waynespangler
I see by your signiture that you know c# and vb6. You should have no problems picking up on vb net as it is not that different from either of them.
If you don't have it get the vb express 2005 (it's...
Forum: VB.NET Oct 17th, 2006
Replies: 5
Views: 7,381
Posted By waynespangler
There are several ways.
1. Dim x As Integer = CInt(TextBox1.Text)
2. Dim y As Integer = Val(TextBox1.Text)
3. Dim z As Integer = CType(TextBox1.Text, Integer)
If you are...
Forum: VB.NET Oct 4th, 2006
Replies: 9
Views: 18,235
Posted By waynespangler
This is for VB Express 2005:
For i As Integer = My.Application.OpenForms.Count - 1 To 0 Step -1
If My.Application.OpenForms.Item(i) IsNot Me Then
...
Showing results 1 to 19 of 19

 


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

©2003 - 2009 DaniWeb® LLC