• Member Avatar for Minimalist
    Minimalist

    Began Watching vb 2008 if

    what is vb 2008 if operator
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in vb 2008 if

    You might want to check this out: http://www.dotnetperls.com/if-vbnet
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in combobox

    It is .Execute with a t not .Execule
  • Member Avatar for Minimalist
    Minimalist

    Began Watching combobox

    in combobox how do can i select the user as student not other e.g. if the user is student not Manager Private Sub loginform_Load(ByVal sender As System.Object, ByVal e As …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in combobox

    Maybe check the spelling first? sqlCMD.ExecuteScalar()
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Is anyone here that can Help Me.

    Hello I want to create the program for teaching program. In this I want to add the Topics which is almost of 50-60 now the things is that I am …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Is anyone here that can Help Me.

    So what I do in some of my programs is to read the filenames from a directory and add the found filenames to a listbox. The user clicks on a …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching visual basic calculator program problem

    hi guys i have recently come to a problem where the equal sign keeps adding after getting a sum of two numbers. for example if i add 5 + 5 …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in visual basic calculator program problem

    You only show a part of the sub. What does the rest of it look like?
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Sums of Number

    Having trouble when executed. Can someone point me the right direction? Public Class Form1 Private Sub btnEnterNumber_Click(sender As Object, e As EventArgs) Handles btnUserInput.Click 'This will sum of the numbers …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Sums of Number

    You need to take "Dim intSum As Integer = 0" out of the button click event, otherwise you always set it back to 0.
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in For Loop

    @Mr.M here is the output from your code. Also I don't know why you would insist on a mistake being correct? Have you tried to run it? I only feel …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching For Loop

    Hi! The for loop works and it reads the value of `recno()`. However, the sql code itself is being executed once only. Is there any tweak I need to do …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in For Loop

    @xuexue: If the loop only executes one time just see how often it executes if you put: For k = 0 To 4. If this works then there is something …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in How to get only numbers and - in the text box?

    O.K. I added some lines to automatically remove the wrong entry and move the cursor back to the end of the string in the textbox. Also select radiobutton1 form load. …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching How to get only numbers and - in the text box?

    How to get only numbers and - in the text box? How to get only Alphabates and . in text box? How to get uppercase alphabate in Text box?
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in How to get only numbers and - in the text box?

    It is not very hard if you use regex. Not knowing if you have three textboxes or one, here is some code using one textbox and three radiobuttons to change …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching vb.net application

    hello sir,i have created vb.net software and i try to use in my laptop ,in my lap there is no vb.net software ,when run that application it showing the error …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in vb.net application

    You need to check which framework verions are installed on boths machines, and check for which cpu you have compiled your program. For the first part follow these instructions: http://www.tech-recipes.com/rx/2959/what_version_net_framework_are_installed_pc/ …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Inserting A Picturebox Without The Radical Access Enviroment

    Your code modified would look like this. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim Seatimage As New Windows.Forms.PictureBox() Me.Controls.Add(Seatimage) Seatimage.Name = "Seatimage" Seatimage.Location = …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Inserting A Picturebox Without The Radical Access Enviroment

    O.K. here is the very very basic code to add acontrol to the controls collection, in this case a picture box and load the image into it. Private Sub Form1_Load(ByVal …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Inserting A Picturebox Without The Radical Access Enviroment

    I am trying to insert a filled picturebox when my form loads. My current code: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim Seatimage As …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Inserting A Picturebox Without The Radical Access Enviroment

    You might want to try this: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim Seatimage As New Windows.Forms.PictureBox Seatimage.AutoSize = True PictureBox1.Image …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Add a set of numbers to listbox when none of them are the same

    I want a set of not the same numbers to be added to a listbox, if there are any numbers that are the same, then they won't be added. I …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Add a set of numbers to listbox when none of them are the same

    I do think your logic is flawed. What happened if the third number is the same as the second and so on? You only test against the first.
  • Member Avatar for Minimalist
    Minimalist

    Began Watching How to make my answer to two decimal places

    This is my code Dim dblPrice As Double = 0 Dim dblTotal As Double = 0 Dim strTotal As String dblPrice = CDbl(txtPrice.Text) intQuantity = CInt(txtQuantity.Text) dblTotal = (dblPrice * …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in How to make my answer to two decimal places

    strTotal = Format(dblTotal.ToString("N")) and please read this: http://msdn.microsoft.com/en-us/library/dwhawy9k(v=vs.110).aspx#NFormatString
  • Member Avatar for Minimalist
    Minimalist

    Began Watching How to get current memory usage in vb

    I am using Visual Basic Express 2010, just normal windows forms. Anyway, i want a label to display the current memory usage, for example my computer is using 47% of …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in How to get current memory usage in vb

    Check this one out. http://stackoverflow.com/questions/1404731/how-to-get-current-cpu-and-ram-usage-in-vb-6
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Prevent randomly generated number appear twice

    You generate the five numbers in the following way. First number generated you put in the first textbox and also you copy it in an array. 2nd number you put …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Prevent randomly generated number appear twice

    I've made a timer and six labels. Then a number is being generated for each label seperately. After testing how it works, I found out that sometimes two same numbers …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Prevent randomly generated number appear twice

    First off if you don't want to allow 0 to be generated you need to use this: Dim value As Integer = CInt(Int((76 * Rnd()) + 1)). Here is what …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Key Board Event in VB.net?

    how to stimulat Ctrl+alt+i and Ctrl+alt+n keyboard key press in vb.net?
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Key Board Event in VB.net?

    O.K. just a couple of points. A) The program you want to send a key combinations to need to be programmed to accept this combination. B) Windows always intercepts key …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching the 'create new button' function

    Hi everybody i am trying to implement the 'create new button' function for my desktop replacement but i have a problem with mouse coordinates.. this is the idea: I have …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in the 'create new button' function

    O.K there are2ways of doing this. 1) create form 2 with exactly the same dimensions as form1 e.g. form2.width = form1.width etc. and in the same position, get thcoordianates of …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching FormClosing event doesn't work as I want

    Hi friends! First, I have read other similar threads but I haven't seen a complete match. It is my VB.NET app. I want the user to be logged out when …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in FormClosing event doesn't work as I want

    You need to catch the close event like: Private Sub Form1_FormClosing(sender As Object, e As FormClosingEventArgs) _ Handles Me.FormClosing If e.CloseReason = CloseReason.UserClosing Then e.Cancel = True MsgBox("CLosing") Me.Hide() End …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Data Alignment in List Box

    Friends , Is there any way for data alignment in the list box. My code is given below Private Sub TxtFdt_KeyPress(KeyAscii As Integer) Dim L, L1, L2, L3, L4, L5 …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Data Alignment in List Box

    O.K. You need to use a monospaced font which assigns each letter, number the same space, so an i would take up the same space as a w. Than you …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching how we can store values in array

    i have 2 arrray. array2 have 10 elements array 1 have 5 elements i want to copy all the element of array1 to array2 to fill all the 10spaces..ie arra2 …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in how we can store values in array

    That is one way of doing it not knowing what you want to achieve: Dim array1(5) As Integer Dim array2(10) As Integer 'array2 is filled like(1,2,3,4,5,1,2,3,4,5} Private Sub Form_Load() Dim …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Pass arguments to a Function

    I need to create a form with 2 text boxes to receive numbers as input and 1 command button that displays a message box containing the larger of the two …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Pass arguments to a Function

    You are mixing up doubles and integers, also use val(me.text1) etc. like: Option Compare Database Dim number1 As Double Dim number2 As Double Private Sub cmd1_Click() MsgBox "The largest number …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Detection using heuristic analysis

    Hi Dw Well I know this kind of question has been asked over and over again but with not straight to the point question, so since I'm also creating a …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Detection using heuristic analysis

    I don't think you will find a lot of code performing heuristic analysis. The reason is that this is used by anti virus companies, patented and copy righted. See the …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching can you help me with coding this. please.?

    create a code that will determine if a given input is(matrix) is a diagonal matrix, square matrix, or not
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in can you help me with coding this. please.?

    Your first check should be to see if the matrix is square or not because only square matrices can also be diagonal matrices. Once you have determined that the matrix …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Help loadeing textfile into array and calculateing the lowest value

    Hey, Ive recently started programming and kinda hit a wall on how to continue :S Im trying to load the values in a textfile into a array and then calculate …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Help loadeing textfile into array and calculateing the lowest value

    So this is what you can do: Declare 6 Integer variables like: hour1,min1,sec1 and three more Integer varaibles hour2,min2,sec2. Take your first string from your text. Split it into three …

The End.