User Profile

Collapse

Profile Sidebar

Collapse
Crusader2010
Crusader2010
Last Activity: Jun 30 '12, 03:44 PM
Joined: Nov 17 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Your WebBrowser1.Doc ument does not exist or hasn't been properly defined as an object, or one of the elements (email,password ,signin) don't exist... Or something along those lines
    See more | Go to post

    Leave a comment:


  • Are you raising the event properly in class B? Did you try

    Private WithEvents _b as B = New B() ??

    Check http://devcity.net/PrintArticle.aspx?ArticleID=102
    See more | Go to post

    Leave a comment:


  • Crusader2010
    replied to Textbox.TextChanged
    When/how is your textbox's Enabled property becoming FALSE? You said you made it to accept a certain input format. Are you also putting Enabled=false in there? Or somewhere else? Do you have any code in EnabledChanged event? My guess is that either it enters some kind of infinite cycle of Enabled/Disabled, or it cannot retrieve the data properly (matching your input)...
    See more | Go to post

    Leave a comment:


  • I don't understand, does the user see the question(s) and the answers somewhere and has to paste into a textbox whatever he thinks is the correct one? After pasting one answer, is he shown all the answers as correct/incorrect? If yes:

    - basically you have to concatenate all of your possible answers into one string(use a stringbuilder for efficiency), with a space between each other.
    - check for whatever the correct answer was...
    See more | Go to post

    Leave a comment:


  • Crusader2010
    replied to Incrementing a field
    Not the loops are the problem. It's strange there is no error. Did you do the following? (i've made the text bold and inclined)

    Code:
    Try
                build()
                'Using a SQL statement INSERT INTO to include data to access table
                strSql = "INSERT INTO tblClassification(Code, Description) SELECT (SELECT isnull(MAX(Code),0) FROM tblClassification)+1, '" & Description & "'"
    ...
    See more | Go to post

    Leave a comment:


  • Crusader2010
    replied to Incrementing a field
    Did it give you any error? Try running that insert query directly on the database (NOT from code). Something like:

    INSERT INTO tblClassificati on(Code, Description) SELECT (SELECT isnull(MAX(Code ),0) FROM tblClassificati on)+1, 'Mammals'

    and see what happens. It might be a syntax problem like i said before. It depends on what kind of database you are using and if it connects to it properly, and if you have enough rights to...
    See more | Go to post

    Leave a comment:


  • Crusader2010
    replied to Incrementing a field
    Don't worry about it. So you should have something like this(in vb.net):

    Code:
    Dim description As String
    ' ...
    ' Here you determine the value of description
    ' by asking the user for it or something (see Inputbox function).
    ' So you should end up having description = "Mammals" and so on.
    ' ...
    strSql = "INSERT INTO yourTable(Code,Description) SELECT (SELECT isnull(MAX(Code),0)
    ...
    See more | Go to post

    Leave a comment:


  • That code computes how many times a certain response was given. A response can be between 1 and 10. So,

    frequency(1) = frequency of response 1 = how many times 1 appears in responses.
    frequency(7) = frequency of response 7 = how many times 7 appears in responses.

    Now, since you have an array of responses, from 0 to responses.getup perbound(0), you cycle through this array and you increment the value of the corresponding...
    See more | Go to post

    Leave a comment:


  • Crusader2010
    replied to Incrementing a field
    Code:
    strSql = "INSERT INTO tblClassification SELECT ((select 
    MAX(Code)from tblClassification)+1 ,[ID]) VALUES ('" & ID & "')"
    The problem is here, in your AddID function. One tip i can give you is to research the INSERT INTO SELECT combination on google to get a better understanding, and the INSERT INTO VALUES also. What i mean is this(just an example):

    Code:
    INSERT INTO table(ID,table_string,table_number)
    ...
    See more | Go to post

    Leave a comment:


  • Basically you need to look up the System.Drawing. Graphics class on how to draw lines and points from code. After that simply create 2 perpendicular axes. Your function should look something like:

    Code:
    Public Function y(byval x as double) as double
      Return (5*x) + Math.Cos(2*x)
    End Function
    If you happen to pass degrees don't forget to convert them to radians before, x*Math.pi/180. Now you can give...
    See more | Go to post

    Leave a comment:


  • Crusader2010
    replied to Incrementing a field
    I believe you are talking about autonumbers for fields in a database, right? In vb.net simply use a command (and a dataReader if you need more stuff) on a query like

    INSERT INTO yourTable SELECT ((select count(*) from yourTable) + 1), ...

    But be careful, when you delete a row from that table, the COUNT(*) might return an already existing index and cause an error.

    EDIT: you can also do (if this is what you wanted)...
    See more | Go to post

    Leave a comment:


  • Read on the Backgroundworke r and you should be able to do it yourself. Some tips:

    In the DoWork event run your procedure and call ReportProgress with a value related to how much of your data was loaded compared to the total amount (basically a percentage), and as well send any value you might also need(UserState parameter).

    In the ProgressChanged event adjust the progressBar1.Va lue to the percentage(or a variation of it...
    See more | Go to post

    Leave a comment:


  • How to send a structure from VB .NET to C++ with SendMessage?

    Hello. I am trying to send a structure from VB .NET 2008 framework 3.5 to an application made in VC++ 6.0, using SendMessage and WM_COPYDATA. Here is the code:

    Code:
    <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Ansi)> _
        Public Structure MsgSTR
            Public code As String
            Public index1 As Integer
            Public index2 As Integer
            Public arr() As Integer
    ...
    See more | Go to post
No activity results to display
Show More
Working...