Begginnerdev 256 Junior Poster

Think about it this way.
You are drawing a square....yes a square. The square is devided from corner to corner. HINT You are drawing characters that the user can see and characters that the user can not see. HINT

Next it is as simple as decing how wide/tall you want your triangle to be.

Begginnerdev 256 Junior Poster

Will this build? It seems you are missing your End Sub on your first sub procedure.

Begginnerdev 256 Junior Poster

I am not so sure that query is returning anything.

You have to give a table.column on the select when two tables are being passed in on the FROM clause.

Try adding an alias and prefixing your columns.

For Example:

str1 = "SELECT DISTINCT ts.[Sched_Code] As [No], ts.[Course], ts.[Year]........ FROM tblSchedule ts, tblCurriculum tc WHERE ts.[Subject] = tc.[Subjects]"
Begginnerdev 256 Junior Poster

Sorry for the hiatus.

Have you checked to verify if the correct number of BUTTONX Outputs exists?

For example, press button one 3 times then press button two 3 times.

Or is the output returning empty string on some of the button presses?

Begginnerdev 256 Junior Poster

Are you using an interpreter on your Arduino? If not, then this should be posted in the C++ forum.

Also, you will have to post your code the application if you wish for us to help find your problem! :)

Begginnerdev 256 Junior Poster

The auto update feature provided in the MyProject > Publish section are for ClickOnce deployment. Have a look at this article that shows you how to update the application with an updater.

Begginnerdev 256 Junior Poster

With the following prompt that you described - I assume that you are using click once deployment.

Here is an article on MSDN where some one asked a similar question.

Begginnerdev 256 Junior Poster

You need to look into using the DateDiff Function.

You will receive the day value by passing in the day interval and your two dates.

DateDiff(DateInterval.Day,dtStart,Now()) 'Will return number of days between now and the start date

You can place this function in your check-out code. Just pull in the check-in date and pass in the current date, et viola!

Begginnerdev 256 Junior Poster

Hello!

Please elaborate as to which programming language you are using. There are many ways to count the number of days between two dates, but we can not give any if we don't know your desired language!

Begginnerdev 256 Junior Poster

Are you interested in something like this?

Begginnerdev 256 Junior Poster

I see a couple of problems that may occur.

First, you need to change this code:

 For i = 0 To rsSearch.Tables.Count Step 1

To this:

 For i = 0 To rsSearch.Tables.Count - 1 Step 1

To safeguard from index out of range.

Second, do you know that the stored procedure is actually returning a value?

Have you fired the store procedure in DB2 to see the data?

Begginnerdev 256 Junior Poster

Here is a link to an article with the same question. (A few seconds of google)

Begginnerdev 256 Junior Poster

Resuse types in all referenced assemblies the reference is added but it throws conversion error string to Guid, i am troubling to find out the issues last whole day but doesn't come with any solution,

If it throws this error in code, post that code that you are having problems with. If it throws this error while adding the reference, then screep capture the error and post it here.

Pretty please!

Begginnerdev 256 Junior Poster

You can write a function to issue the update if you wish, something like:

Protected Friend Sub UpdateTable(ByVal da As SqlDataAdapter, ByVal ds As DataSet)
    Try
        If Not IsNothing(da) Then
            If Not IsNothing(ds) Then
                da.UpdateCommand = New SqlCommandBuilder(da).GetUpdateCommand
                da.Update(ds)
            Else
                Throw New ArgumentException("The dataset can not be null!")
            End If
        Else
            Throw New ArgumentException("The data adapter can not be null!")
        End If
    Catch ex As Exception
        MsgBox(ex.ToString)
    End Try
End Sub

Your update code will then look something like:

Private Sub cmdDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdDelete.Click
    Try
        ds.Tables(0).Rows((CInt(txtCurrent.Text) - 1).Delete()
        UpdateTable(New SQLDataAdapter(myConnetion),ds)

        EnableNavigation()
        cmdSave.Enabled = True
    Catch ex As Exception
        MsgBox(ex.ToString)
    End Try
End Sub
Begginnerdev 256 Junior Poster

You are not updating the table, you are just deleting the local copy.

To update the table, issue an update with a data adapter.

da.UpdateCommand = New OleDBCommandBuilder(da).GetUpdateCommand
da.Update(_DataSet)
Begginnerdev 256 Junior Poster

The problem you are running in to would most likely be cause by a lack of the proper version of the .NET framework on the older machine.

When building an application, it is built using the targeted framework.

See Project > (My Project Name) Settings > Compile > Advanced Compile Options > Target Framework (all configurations)

Please note that this was done in VS2010, and may not be the exact steps you will need to take to find this.

As shown here, the .NET framework is supported as far back as Windows 98.

The Other Version selection can be changed to see the requirements for each version selected.

Begginnerdev 256 Junior Poster

even 400 record it is normal to react that kind of slowdown?

From my experience (limited) I have had 700+ records queried in take less than a second. (All codebehind using a data reader/adapter and writing my own fill functions.)

Begginnerdev 256 Junior Poster

You could store the files as serialized files and use your application to serialize/deserialize them as needed.

Have a look at this.

Begginnerdev 256 Junior Poster

You will have to store the audio file's raw binary in the database.

Here is a nice article that does this in ASP.NET (VB.NET code behind)

Begginnerdev 256 Junior Poster

Here is a VERY OLD article that does this exact thing.

Begginnerdev 256 Junior Poster

I am unsure, but if I understand what you are asking - you may be implying that hardware and software are synonymous.

If you wish for a program to run off the disk only, then create an autorun to install the software, but point to the disk for resources. As for locking/unlocking on a car stereo - you will have to know what type of code the stereo can execute. (Guarantee that not .NET will not be available for a VERY large amount.)

The better question would be: Why are you locking/unlocking the folder so much?

Why not just force the user to use the CD if they want use your application.

Begginnerdev 256 Junior Poster

You are talking about Operating System features here. To do something like this you will have to do some reasearch into the Windows API to see if this is possible(Most likely).

If it did, I might even go as far to say that this may cause your application to be flagged as a malicious application by anti virus software.

Another thing: You don't have to use VB 5.0 for the executable. You can create an executable from a VAST majority of lanuages floating around out there. (VB.NET included)

Begginnerdev 256 Junior Poster

You can emplement some form of Data Paging to speed the process up.

For exmaple: Query in 100 records at a time then post those out to your control.

If the user starts scrolling the control, and is nearing the bottom - add another 100. Rinse and repeat!

Begginnerdev 256 Junior Poster

Sounds like an assignment to me.

Here is a library that might help.

As for code, you might be on your own until you can prove you have code.

Begginnerdev 256 Junior Poster

Have you verified the directory?

Why are you installing Windows in code?

-OR-

Ați verificat directorul?

De ce a instala Windows în cod?

Begginnerdev 256 Junior Poster

You might have to set your command for the update:

da.UpdateCommand = New OleDBCommandBuilder(da).GetUpdateCommand()

Then issue the update.

See if this helps.

Begginnerdev 256 Junior Poster

As for CSV, it does not matter what application is writing - it is the format of the data that qualifies it for a CSV. See this. (Yes, I know it is Wikipedia.)

If you are needing the file to be unreadable to an unautherized user then you should look into file serialization.

This can be used to serialize the file and only access it from the application. This will not stop a user from deleting the file if they do happen to find it.

Just don't name it "YourApplicationName History".

If you are wanting to retreive the top 10/20/50 records - just modify the code to reflect this:

Dim iRecordCount As Integer = 1
While sr.Peek <> -1
    lstStrings.Add(sr.ReadLine.Split(",").ToList)
    iRecordCount += 1
    If iRecordCount = iNumberOfRecords Then Exit While
End While

This will get the oldest 10/20/50 (Entries are stored in a FIFO method.)

If you want the newest 10/20/50 you will have to change the code that populates the listview:

Dim iRecordCount As Integer = 1
For Each lst As List(Of String) In lstHistory

    Dim lvi As New ListViewItem
    lvi.Text = lst(0) 

    lvi.SubItems.Add(lst(1))
    ListView1.Items.Add(lvi)

    iRecordCount += 1
    IF iRecordCount = iNumberOfRecords Then Exit For
Next

Either way, it is a simple refactor/recode.

Begginnerdev 256 Junior Poster

Are you passing a handle to your application using the API, or a whole form?

If it is a form then you can set the form as Modal.

For example see this.

If not, there is a great example here for using a window handle.

Begginnerdev 256 Junior Poster

Have you contacted Siemens to see if an option exists? Without having any access to this application only a select few people will be able to help you. (possibly no one)

Are you using an API to integrate the application into your own custom application?

Begginnerdev 256 Junior Poster

You are so close that it is not even funny.

You will have to devise a method of determining if the user is finished entering data. For example, maybe a next and finished button?

After the user enters a VALID number in the text box, add it to a class level variable string, then delimit the string with the "," char.

But do not add the "," at the very end of the string! Hint (Use the next to add to to the string. Use the finish to add the last number.)

Again, you are so close!

Begginnerdev 256 Junior Poster

When you say that you are saving the data in the settings, are you referring to application settings? If so, then this will be an extremely inefficient method of storage.

Why not store the history in a csv? (If the data is not confidential!)

Then you could load your listview with the data from the CSV.

When saving, create a small function to write to the file and return a value.

For example:

Private Function SaveHistoryItem(ByVal sDateString As String, ByVal dTimeOfDay As DateTime) As Boolean
    Try
        Dim fp As String = My.Settings.FilePath 'String variable in Application settings containing the full path to the CSV File

        'Check if the file exists, if not, create it.
        If Not File.Exists(fp) Then File.Create(fp)

        Dim sw As New StreamWriter(fp, True)

        'Formats the data:
        '01/20/2013,11/21/2013 14:36:04'
        sw.WriteLine(sDateString & "," & dTimeOfDay.ToString)

        sw.Close()
        sw.Dispose()
        fp = Nothing

        Return True 'SAVED
    Catch ex As Exception
        MsgBox(ex.ToString)
        Return False 'FAILED
    End Try
End Function

You can use a function like this like so:

If SaveHistoryItem("01/01/2013",Now()) Then
    'Clean Up
Else
    'Didn't save, do something!
End If

Now, to load the data, write another small function to retreive the values from the CSV file and to pass them to your form.

For example:

Private Function ReadFromHistory() As List(Of List(Of String))
    Try
        Dim fp As String = My.Settings.FilePath

        If Not File.Exists(fp) Then Return New List(Of List(Of String))

        Dim sr As New StreamReader(fp)
        Dim lstStrings As New List(Of List(Of String))

        While sr.Peek <> -1
            lstStrings.Add(sr.ReadLine.Split(",").ToList)
        End While

        'List …
Reverend Jim commented: Very thorough +12
Deep Modi commented: good suggestion but can you still do something? +3
Begginnerdev 256 Junior Poster

Would something like this:

TabControl1.SelectedTab.Controls.Find("MyRichTextBox", [True])

Be the answer you are looking for?

Just replace the "MyRichTextBox" with the tab title, et voila.

Begginnerdev 256 Junior Poster

Have you declared Grades?

Do you mean something like this:

Dim Grades As Decimal = ClassAverage("TESTSTRING")
Begginnerdev 256 Junior Poster

The code was meant to help point you on your way, but not fix the problem for you.

Begginnerdev 256 Junior Poster

I would check with the manufacturer to see what your options are for flashing the bios.

BEWARE!!! If done improperly you can brick your motherboard.

Begginnerdev 256 Junior Poster

You will have to post your code if you would like us to debug it, friend.

Begginnerdev 256 Junior Poster

I have had the same problem with a motherboard, but on contacting the manufacturer they recommended that I flash the bios to the newest version.

Is the motherboard an OEM motherboard or an aftermarket motherboard?

Begginnerdev 256 Junior Poster

Do you know how to reset the CMOS?

Look on your motherboard manual for a CMOS jumper or CMOS reset.

You will want to do this after a major change such as this.

Begginnerdev 256 Junior Poster

Have you checked with your motherboard manufacturer to see if the processesor you installed is supported by your BIOS?

Begginnerdev 256 Junior Poster

Are students not even trying anymore?

This is a direct copy/paste from an assignment decription.

We are a Help forum, not a DO forum.

If you would like help, please attempt the project first and then seek assistance.

Begginnerdev 256 Junior Poster

This looks like homework. Homework that has been copy/pasted directly from the assignement description.

Begginnerdev 256 Junior Poster

Have you checked to see if you are using any depricated features in your function?

Begginnerdev 256 Junior Poster

How are you certain that the vga output is working if you can't see anything?

Can you see the bios post? Can you hear a bios post?

If not, do you have an onboard gpu or dedicated gpu?

If onboard, have you checked your ram?

If dedicated, have you tried swapping it with a working one?

Begginnerdev 256 Junior Poster

The software you would be looking for would probably be found when googling print job management.

The problem being is that most of the software is free for 30 days then licensed for a small phenomenal fee.

You might want to scour sourceforge or other freeware/shareware sites.

Begginnerdev 256 Junior Poster

When removing the LCD from a laptop you will run into problems with any antennae that the manufacturer may have placed in the LCD enclosure.

I would consult the laptop maintenance manual, which can moslty be found on the manufacturers website.

As for power, if the desktop monitor has a higher resolution than that of the laptop lcd (most likely) you will be forced to run at a more native resolution for that monitor.

This could cause problems with the gpu or integrated graphics.

Begginnerdev 256 Junior Poster

Check the configuration of the drives. Check master/slave status in bios and on the drive.

Begginnerdev 256 Junior Poster

Way back when (about 7 years ago) I tried this for a friend. He had an old busted dvr he wanted fixed. I fixed it....so I thought. Turns out that some of the manufacturers key the hard drives to the recorders and once the drive is removed and replaced (same drive) it gives a message saying something to the effect of "Device has been modified".

I would do a couple of days searching on google before I broke it open.

Begginnerdev 256 Junior Poster

Are you receiving a prompt saying that the system time is wrong?

Something that may be saying, "Press F2 to enter setup" ?

Have you checked your memory?

Begginnerdev 256 Junior Poster

Seems like Daniweb removed the file?

I'll try again.

Begginnerdev 256 Junior Poster

Sounds like an assignment, but hey - I'll give you the doubt. You can start by declaring your tables.

Sounds like you need some lookup tables and a main table.

Something like this:
a30819fe0887588372aaafb950b79cce