• Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Date Function

    There are a few pitfalls working with dates as it always depends on how the compiler works these and can make decisions on what it thinks you want. ALso if …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Arrays

    I am new to VB, and I am trying to add data to an array from a textbox and have the data display in a listbox on a different form. …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Arrays

    What is the event you want to use to move the data? Keypress? Buttonclick? Why do you want to move data into an array before moving it into a listbox? …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Date Function

    Friends again problem with date function In my form there is a text field -txtDod- of Date type formated like "dd-MMM-yyyy" My input is also formated like "dd-MMM-yyyy" Now see …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Date Function

    Why don't you use datedifference function? http://msdn.microsoft.com/en-us/library/b5xbyt6f(v=vs.90).aspx
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Slot Machine Game in VB.NET

    Well what is the idea of line 7? Maybe you should get rid of it. I thought you want to count the number of puls there consequently my idea of …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Slot Machine Game in VB.NET

    I'm suppose to create a Slot Machine game. The user starts with 100 tokens. With each "pull", the user loses 1 token and the computer "spins" three wheels, each consisting …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Slot Machine Game in VB.NET

    O.K I assume you need to put some of your code into a button event which becomes your pull. In ther you need a counter to count the number of …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Zoom Picturebox to the center of the cursor location

    My bad. Thought it would be easier to change the code. I use vb 13 express and no you just can't expect to import and run the code - it …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Zoom Picturebox to the center of the cursor location

    I'm trying to zoom in on a Picturebox when scrolling the mousewheel, the code below zooms in on the image only to the center of the image, not at the …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Zoom Picturebox to the center of the cursor location

    Do check this out: http://www.vbforums.com/showthread.php?654846-ZoomPictureBox-picture-control-with-mouse-centred-zooming
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Values to different array

    Am doing an application to allocate the seats to the students in a building with rooms. I have almost done to allocate the students appropriatly in the rooms. The problem …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Values to different array

    Its not really clear if you want 1 var or 3 var.You always can put them into an array: arr1(6) as string =New String(){"200","100"......} and so on
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Convert DAO code to ADO

    I have an old access 2.0 database, i converted it in access 2007 but the old code doesn't work.. i heard that it is about DAO and ADO anyone can …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Convert DAO code to ADO

    This link might be useful to you as it shows you the steps to take. http://www.timesheetsmts.com/adotutorial.htm
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Crop Visible Section Of Image

    Hello Community, I was wondering if there is a way to get only the visible section of the image from picturebox1 and place it in picturebox2. So what I have …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Crop Visible Section Of Image

    Maybe this is what you want? Dim x As Integer = PictureBox1.Width Dim y As Integer = PictureBox1.Height Dim bm As New Bitmap(x, y) PictureBox1.DrawToBitmap(bm, New Rectangle(0, 0, x, y)) …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Asking about "ScrollX"

    Since I run all this old stuff in virtual machines I got some problems retrieving the code. However, have a look at this likn which shows the different graphs you …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Asking about "ScrollX"

    I used the controls that shipped with vb6. In projects, components you can add different controls to your project. I have used MS chart wizard which you can add to …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Separate a number input and show a corresponding output

    Replace line 14 with all of the following code: If st = "zero" Then lbl.Text = st & " 0" Else If st = "one" Then lbl.Text = st & …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching What's Wrong

    Hi What have I done that is wrong the Excell sheet will not be visible I will have it visible when I press the command button Dim objXl As New …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in What's Wrong

    xlTmp.Workbooks.open ("app.path & \kundreg\bokfaktura2.xls") 'don't work should be: xlTmp.Workbooks.open ("app.path" & "\kundreg\bokfaktura2.xls") 'don't work
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Saving 1 Listview Column Values

    Was trying to save the contents of a listview column (2nd column) into a table in the dbase, 1 column of the table per content of the listview column, meaning …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Saving 1 Listview Column Values

    Maybe this link helps, struggle myself with the listview code: http://social.msdn.microsoft.com/Forums/en-US/292ac5c0-a06b-4a77-be52-8ca3282e2edf/loop-through-listview-getting-items-and-sub-items?forum=vbgeneral
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Asking about "ScrollX"

    1) From my understanding it is used to allow scrolling of bitmaps and sprites in games. I only read up on it when I came across your question and post …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Separate a number input and show a corresponding output

    look at line 14, put an if statement in and lbl.Text = st & " 0". Don't forget to mark the thread as solved. Thanks
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Key Press event

    @ cambalinho Why don't you create a project, 2 textboxes and copy my code into the key_down event in the first textbox. It works perfect as you only catch the …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Key Press event

    @ cambalinho Read the OP's question carefully and before telling me my code is incomplete try it first and put it in the correct event, keydown on textbox1.
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Key Press event

    Friends I am new to VB.Net Please help me I have two text boxes. When I press the 'Enter' key in the first text box the focus should go to …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Key Press event

    You can use something like this: Private Sub TextBox1_KeyDown(sender As Object, e As KeyEventArgs) Handles TextBox1.KeyDown If e.KeyCode = Keys.Enter Then TextBox2.Focus() End If End Sub
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Creating an array

    When the array is declared,the size of an array is supplied in the following way: dim inquirybyyearmonthday(20)()() as byte My question is why there are extra 2 opening & closing …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Creating an array

    Private Sub byteTest() Dim inquirybyyearmonthday(20) As Byte End Sub Do you get an error if you use it like this? I didn't get the extra brackets.
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Separate a number input and show a corresponding output

    Just put an if i= 0 then put label location for the first label end if
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Asking about "ScrollX"

    Hi All, I would like to ask one question about "ScrollX". After using this component, my whole porgram is closed automatically when I close the "Form". Does anyone have better …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Asking about "ScrollX"

    Just reading up on it the problem might be with directx. Find out which version is running on the computer you want to run the game.
  • Member Avatar for Minimalist
    Minimalist

    Began Watching ArgumentOutOfRangeException

    hello, ahm, can somebody help me, i'm always getting this error InvalidArgument=Value of '25' is not valid for 'index'. Parameter name: index this is my code: Dim currrentRow As Integer …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in ArgumentOutOfRangeException

    The problem lies with you assigning the currentRow to items.count. You need to find the currentRow based on some criteria - this is only pseudo: dim intCount ,i as Integer …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Logical Error using multiple AND

    I'm having trouble with the AND operator when I used it 3 times. If Text1.Text = "THIS" And Text2.Text = "THAT" and Text3.Text = "THOSE" then Call Display elseIf Text1.Text …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Logical Error using multiple AND

    The code works fine Private Sub Command1_Click() If Text1.Text = "This" And Text2.Text = "That" And Text3.Text = "Those" Then MsgBox ("1") ElseIf Text1.Text = "This" And Text2.Text = "That" …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in App.PrevInstance is not working

    O.K. make it as simple as possible. This code works for me: Private Sub Form_Load() If App.PrevInstance Then Msgbox("Running") End Else Form1.Show End If End Sub
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Find part of a word in a string

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim strComNAme As String = "DT-WAR-BISMITH" Dim strEx As String = "SMITH" If strComNAme.Contains(strEx) Then Debug.Print("Found") End If End Sub …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Find part of a word in a string

    Sorry I was too hasty, you do already.
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Find part of a word in a string

    How do I find parts of a word in a string using an array for the keywords? I need to run a program on computers but exclude certin users based …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Find part of a word in a string

    You don't need the split method. Use the contain method. See the examples here:http://www.dotnetperls.com/contains-vbnet
  • Member Avatar for Minimalist
    Minimalist

    Began Watching School Timetable

    Hi comrades. I am new to VB6 and I have a problem. I would like to develop a programme that generates a school timetable. The school is three steamed from …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in School Timetable

    Well, I do think you might want to reconsider. 1)There are already lots of these programs around. 2)VB6 doesn't cut it anymore. Why? 3)I have coded and sold a program …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Separate a number input and show a corresponding output

    For i As Integer = Me.Controls.Count - 1 To 0 Step -1 If TypeOf Me.Controls(i) Is Label Then Me.Controls.RemoveAt(i) End If Next
  • Member Avatar for Minimalist
    Minimalist

    Began Watching App.PrevInstance is not working

    how can i know My Application is already running.I want to abort new application and pop up to user to close already running application.I am using App.PrevInstance object but its …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in App.PrevInstance is not working

    Use App.PrevInstance: 'this code would be in a bas module for start up.' Private Sub main() 'Check for previous instance and exit if found.' Dim rc As Long If App.PrevInstance …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Separate a number input and show a corresponding output

    My 2 last posts didn't display so I try again. Just insrt my code into a new project and play around with the labels. Imports System.Drawing.Color Public Class Form1 Inherits …

The End.