CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 81

Threaded View

  1. #24
    Join Date
    Nov 2004
    Location
    Slough, UK
    Posts
    184

    Re: Problem with module and form load slow

    Quote Originally Posted by mark103
    @Oblio: Your post was the same when I HAVE already tried out using with your code so DO NOT repost with the old same crap again. Your code shows nothing from my code. So now I am going to stick with my code. I am trying to find any situations to get the code successful but I have no luck so far...



    I think its best for you guys to read it again what's going on....
    When I type the value numbers on textbox and if I type higher than 1.0 which it greater than 1000 for trakbar value, I received the textbox.showdialog which it works great BUT when I try to move the trackbar value to the lower value, I received the textbox.showdialog immediately everytime. I am not over the limit of the strings. And when I type the lowest strings numbers like 9, the textbox.showdialog also display. See the trouble I has....




    You guys need to reread on my 55th post carefully as there is NO need to repeat it again, I don't want to say it again, again, again, again and again as it getting on my nervous and I'm getting boring of sayin this again.



    Code
    Code:
                If Val(Form2.Textbox.Text) <= 999 Then
                    Form2.TrackBar2.Value = Val(Form2.Textbox.Text)
                End If
    
                If Form2.Textbox.Text = "1.0" Then
                    Form2.TrackBar2.Value = 1000
                End If
    
    
                If Form2.Textbox.Text > 1.0 Then
                    Form2.TrackBar2.Value = 1000
                    Textbox.ShowDialog()
                End If
            End If



    However, I don't want to write the longest code to make my form slowing down like this.....


    Code:
                If Form2.Textbox.Text = 1.0 Then
                    Form2.TrackBar2.Value = 1000
                    Textbox.ShowDialog()
                End If
            End If
    
    
                If Form2.Textbox.Text = 2.0 Then
                    Form2.TrackBar2.Value = 1000
                    Textbox.ShowDialog()
                End If
            End If
    
    
                If Form2.Textbox.Text = 3.0 Then
                    Form2.TrackBar2.Value = 1000
                    Textbox.ShowDialog()
                End If
            End If
    
                If Form2.Textbox.Text = 4.0 Then
                    Form2.TrackBar2.Value = 1000
                    Textbox.ShowDialog()
                End If
            End If
    
    ETC.....


    This is why I am HERE to require for some help, because the strings is greater than or equal to the following number but I CANNOT move the trackbar value or type any of the less numbers.




    I don't want to write from 1.0 to 10 which is the crazy job to write the longest numbers. To write If Form2.Textbox.Text > 1.0 Then is much quicker than the longest job to write but I am having trouble with the loops.



    I need this to get fix asap.



    Thanks,
    Mark
    I don't like to get personal here, but you are telling us to "read your posts". Yet, you are not reading any of the replies to your posts. I understand that you need help but you need to understand but in order for us to help you, you need to help yourself.

    You have been told no less than 6 times what the problem is. You have been old more than ten times that you cannot compare a string to a number i.e If Textbox1.Text > 1.0 and you have completely ignored us.

    So if you have indeed read more than the first two words in this post please answer the following questions:
    • Why can you not use oblio's code?
    • Which part of use Float.Parse or Integer.Parse instead of String > 1.0 do you not understand?
    • Are you just waiting for some sucker to come along and post the code for you so all you have to do is copy and paste it?
    • What is the code modelling? What real world situation is it mimicking; if any? We may be able to suggest an even faster algorithm than the one you are already using.


    If you cannot answer these questions, I see little point sticking around and helping you. I have not reported you for the language you used in your previous posts, so I suggest you remove it before a moderator stumbles upon it and you get ousted from this forum too.

    If you work with us you will solve the problem. If you work against us you will get nowhere.

    P.s: I think it strange that the quality of English in your posts has reduced significantly since your first post. May I suggest that you cease pretending to be a non-English speaker.
    Last edited by visualAd; April 27th, 2008 at 03:42 PM.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || ClickOnline ||

    Did I ever say I was an expert?

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Please mark threads resolved by going to the thread tools menu and clicking the Mark Thread Resolved button.

    Has a post really helped you? Please Rate it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured