Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: DataMiser

Page 1 of 80 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    1
    Views
    275

    Re: Calculations not working (listbox)

    intTotalRooms = intOccupiedRooms / intVacantRooms

    Shouldn't that be


    intTotalRooms = intOccupiedRooms + intVacantRooms
  2. Replies
    2
    Views
    263

    Re: Help With Key Press Commands

    You could also shorten that code up quite a bit by setting all those buttons to visible=false before the select case statement and then in each case only set the one that needs to be visible. Should...
  3. Replies
    2
    Views
    263

    Re: Help With Key Press Commands

    Use a variable as a flag. Set it to false when the question is displayed then when a key is pressed check the value of the flag

    If false then set to true and accept the key
    If true then a key has...
  4. Replies
    3
    Views
    330

    Re: Help With High Score Leaderboard

    Why not use a list or listview or grid view instead of text boxes?
  5. Replies
    3
    Views
    374

    Re: Int() behaviour

    Have you tried CInt()

    Another question would be why are you using a double? For numbers that have up to 4 decimal places Currency is generally a better choice.

    Double may very well be the most...
  6. Replies
    3
    Views
    374

    Re: Int() behaviour

    Private Sub Command1_Click()
    Dim dblVal As Double
    dblVal = 2.375
    Debug.Print Int(dblVal * 100 * 10)
    Debug.Print dblVal * 100 * 10
    End Sub

    Output is
  7. Replies
    4
    Views
    185

    Re: Visual Basic and Reg

    So you mean you want to merge the reg file into the system registry then? That is the default behavior in windows but can be changed to have it open in notepad or some other program. It will not...
  8. Replies
    4
    Views
    185

    Re: Visual Basic and Reg

    I'm not sure what you mean by "run a reg file" a reg file is not executable so it can't be "ran"
    Are you wanting to view? edit? merge? copy? move? delete?
  9. Replies
    1
    Views
    169

    Re: help with loop

    Why are you using a loop there? As is if inttotal> inttotal2 then it will show a msgbox and go into a semi endless loop showing as not responding. It should crash if you let it run long enough as it...
  10. Re: Move Data from One ListView Control to A Second without Selecting

    If NumlvRemovedListItems = 0 Then
    ' here you remove an item
    Else
    'here you do not remove an item
    End IF

    the result of course is it will only remove an item when the list is...
  11. Re: Please help - how to change default printer in vb 6 using list box

    When you use Set Printer= ....

    You are not changing the system default printer, rather you are changing which printer VB will use during that session.

    You also do not need to use the wmiservice...
  12. Thread: Help!

    by DataMiser
    Replies
    7
    Views
    288

    Re: Help!

    What?
  13. Thread: Help!

    by DataMiser
    Replies
    7
    Views
    288

    Re: Help!

    Thread moved to .Net forum
  14. Thread: Help!

    by DataMiser
    Replies
    7
    Views
    288

    Re: Help!

    Yeah that is pretty far off. Should result in an endless loop.

    Where is the math?

    Your var intfactorial will be set to true if the text box is empty or false if it is not empty
    You code will...
  15. Thread: Help!

    by DataMiser
    Replies
    7
    Views
    288

    Re: Help!

    Looks pretty simple, you just need to construct a loop that will multiply by each number needed and keep track of the total.

    Show what you have so far
  16. Re: SQL database, extract data in descending order to TextBox using VB.NET 4.5 OR SQ

    Use the datatable with the order by clause like in the first piece of code and then step through the data
  17. Replies
    1
    Views
    369

    Re: Security of activex

    You can have it use a lic file so that it can not be used in the designer without the proper lic present.
  18. Re: Remote File Manager: From direct connection to reverse connection

    You must make sure that you have closed the socket before you try to use it to make another connection.
  19. Re: How to Link a folder and file with Button/Menu List

    Thread moved from VB6 section to VB.Net section.

    Not sure what you mean by attach folder or file.

    You can certainly place code in the related click events to open a folder or file of your...
  20. Replies
    3
    Views
    280

    Re: Transparent activex (OCX)

    Yes you use the RaiseEvent method
  21. Replies
    3
    Views
    280

    Re: Transparent activex (OCX)

    If it has no graphics then why an activex control? A class would seem to be a better choice.
  22. Re: New to Programming - need help understanding code.

    You are dealing with an array of numbers.

    Sales(0) would be 5601 Sales(1) would be 8502 and so on for each number in the array
    The code is simply looping through the array, formatting the...
  23. Re: VS 2013 Substract from textbox (hexadecimal)

    You need to make it hex


    TextBox2.Text = Hex (Val(TextBox1.Text) - Val("2222"))
  24. Re: Can somebody help me with my scoring system?

    You need to get that part in red off that line.
    If you want to add to the score then that is one line
    display the score should be another line.

    Also note that you should not start more than one...
  25. Re: Convert Back to Visual Studio 2008 - Please Help

    Actually I use 2008 also. One major reason is that they dropped support for Windows CE and Windows Mobile devices after 2008.

    While I have not had a need to go backwards I am thinking that the...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center