Forum: VB.NET Nov 12th, 2008 |
| Replies: 3 Views: 797 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,298 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,627 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: 533 Set TopMost property of form. |
Forum: VB.NET Jun 17th, 2008 |
| Replies: 7 Views: 684 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,696 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,433 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,222 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,275 Set item 0 to "Please select an item" and the listindex to 0. |
Forum: VB.NET Jul 23rd, 2007 |
| Replies: 6 Views: 10,064 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,064 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: 21,666 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,314 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,304 Today = CType("05/14/2007", Date)
TimeOfDay = CType("11:32", Date) |
Forum: VB.NET May 12th, 2007 |
| Replies: 8 Views: 2,686 |
Forum: VB.NET Apr 27th, 2007 |
| Replies: 14 Views: 7,509 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: 15,718 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,139 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: 17,597 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
... |