Search results for query: *

  1. M

    Fibonacci Sequence

    For the answer use: Dim numlng As Integer = 5 Dim total As Integer Dim x As Integer For x = 1 To numlng total += x MsgBox(total) Next TextBox1.Text = total For the equation use: Dim numlng As Integer = 5 Dim equation As String Dim x As Integer For x = 1 To numlng...
  2. M

    How do you programmatically click the mouse?

    Er...I don't have an original thread. All I want to do is have the mouse button click. The exact same as if you click the mouse yourself, but do it with code instead of a finger. The same basic idea is here for vb6: http://www.vb-helper.com/howto_move_click_mouse.html Although all I want to...
  3. M

    How do you programmatically click the mouse?

    No that is for programatically clicking a button in the program. I need the code for clicking the mouse button on whatever it is currently hovering over so that the program thinks the mouse clicked without me having to hit the mouse button.
  4. M

    How do you programmatically click the mouse?

    I can program it in vb6 but I can't seem to find information on doing it in vb.net. I don't need anything fancy just the code to click the left mouse button.
  5. M

    Loading a Specified .txt file to a textbox.

    At the very top of the forms code add: Imports System.IO To use the code just add the following to your program: Dim sr As StreamReader = File.OpenText("file_name_here") textbox1.text = sr.ReadToEnd
  6. M

    Calculation Total on Data Grid

    What are you calculating?
  7. M

    extraction of info/data from a logfile

    You could use streamreader to read it line by line, and the use instr to search for "Warning Error". If it is found then split the line into an array seperating it by the :'s, then just rearange the parts of the array and put it back together.
  8. M

    MSCOMM component

    If you are using it in a loop so it adds one line or piece of data at a time you need to use "&=" instead of "=".
  9. M

    please Help!!IF statement........

    Oh, lol. Glad to help.
  10. M

    please Help!!IF statement........

    What do you mean not in the right places? Are you trying to center it or somthing?
  11. M

    quick question

    Lucky for you I just did something with that earlier... If InStr(textbox1.Text, ",", CompareMethod.Binary) Then Else Dim x As Integer Dim splitout = Split(textbox1.Text, " ") textbox1.Text = splitout(UBound(splitout)) & "," For x = 0 To UBound(splitout) - 1...
  12. M

    Is there an alternative to axwebbrowser for viewing html.

    Looks nice, but just a bit to expensive for a program only I will use.
  13. M

    Is there an alternative to axwebbrowser for viewing html.

    Yet again I answer my ow question.... I found one that showed just html but it cost a descent amount of money for a liscense and really didn't work well, so I kept looking and found one that runs off gecko (mozilla) rather than IE and by using it rather than the webbrowser control it just about...
  14. M

    windows application in startup

    Easiest way is to add a shortcut into the start>programs>startup folder. Takes 10 seconds max to add it to your program's set up file.
  15. M

    Is there an alternative to axwebbrowser for viewing html.

    I found one called Iecontrol but it doesn't do what I need, all I want is a control that shows html like a webbrowser and that is all the rest is unneeded. Does anybody know of one, or if they don't know of one, have a suggestion for making one?
  16. M

    How to only open a form once

    just use variables to see if it is allowed to open it. eg public Shared noopen as integer if noopen = 1 then elseif noopen = 0 then form2.show noopen = 1 end if Then in form2 have an on closing event that sets form1.noopen back to 0.
  17. M

    loop problem

    Every time you ran the code you reset the value of I Dim i As Integer and then seperatly: i = i + 1 Select Case i Case 1 Label1.BackColor = BackColor.Yellow() Label2.BackColor = BackColor() Label3.BackColor = BackColor() Label4.BackColor =...
  18. M

    about integer counts

    'Display the total number of deposits, checks and service charges If radDeposit.Checked = True Then mintTotalDeposits.text += 1 ElseIf radCheck.Checked = True Then mintTotalChecks.text += 1 ElseIf radServiceCharge.Checked = True Then...
  19. M

    VB.NET Question on a calculation

    Dim points As Integer = 0 points += 10 * (AnnualIncome.Text / 1000) points += -25 * (RevolvingDebit.Text / 10000) points += LatePayments .Text * -25 points += Dependents .Text * -15 points += 15 * (Cash.Text / 10000) If CheckBox4.Checked = True Then points += 50 Label1.Text =...
  20. M

    Removing rows from a datagrid

    To remove a single row: Dim currRow As DataRow If datagrid1.CurrentCell.RowNumber < (datagrid1.VisibleRowCount - 1) Then ' Set the current row using the RowNumber property of the CurrentCell. currRow = CType(datagrid1.DataSource, DataTable). _...
Back
Top