oussama_1 39 Posting Whiz in Training

One of the many choices is the label tool, for example when i install a game, there's a label under the progress bar that changes its text along with the progress, from "copying files to.." to "installing x.." to "installation complete".
Label.text = "String"

oussama_1 39 Posting Whiz in Training

how about storing your numbers in an array or my.settings?

oussama_1 39 Posting Whiz in Training

VB.Net never meant for games! it's more recommended for software developement, but hey why not have some fun.
If anyone out there is looking to create an Angry Birds Game-like or a Simulator for throwing an object, you've come to the right place, this code will give you great start/push to build your own app.

Trajectory

dd5f632319f6a4422579ce0a7c3db41e

A Trajectory for a projectile have a bunch of formulas, the more equations you use, the more realistic motion you'll get.
As a start i used only 3 formulas which they're the essentiel ones,the X and Y coordinates and the angle, containing the gravity and the velocity with the respect to time.
Have fun!

ScreenShot:

7e1985143cfac0fb9ff793ae9e0a1476

J.C. SolvoTerra commented: Very Cool, I love this stuff. +3
oussama_1 39 Posting Whiz in Training

In my opinion there is no easy language! let me put it this way, in every language there is a basic , intermediate and advanced level, you always start easy and then you build your way up. Besides your choice highly depends on what do you want to do (ex: software/web/game/etc.) and on which platform?

oussama_1 39 Posting Whiz in Training

Even if you find a ready tool you'll have to write code in it, so take that effort and create your own toolBar that will suit your needs.
There's a lot of video tutorial on how to use or design your toolstrip, give it a try. Youtube.com

oussama_1 39 Posting Whiz in Training

I find this interesting, hope it help. Click Here

oussama_1 39 Posting Whiz in Training

Actually there is one in vb toolbox, it's "ToolStrip".

oussama_1 39 Posting Whiz in Training

Check This
in this link the levels are in a method.

oussama_1 39 Posting Whiz in Training

You need to target the table inside the datatable:
If i < dt.Tables(0).Rows.Count - 1 Then

oussama_1 39 Posting Whiz in Training

BackgroundWorker Tutorial video
Export your resources to a folder in the BackgroundWorker_DoWork method.
and you can give a value to your progressbar in this method BackgroundWorker_ProgressChanged.

oussama_1 39 Posting Whiz in Training

my bad i forgot it's c sharp thread.
Your connection string links your program to only one database and in your query you are trying to select from both databases, what you need to do is to create 2 connection strings, each one for its own database and import your wanted columns into the same datatable (dt)

oussama_1 39 Posting Whiz in Training

Actually you can take only the columns that you want instead of the whole database, change your command to something like this:

 Dim Command As New System.Data.OleDb.OleDbDataAdapter()
Command = New System.Data.OleDb.OleDbDataAdapter("select ColumnName from TableName", yourConnection)
oussama_1 39 Posting Whiz in Training

oops sorry.

without using %

oussama_1 39 Posting Whiz in Training

So..it's a code snippet?

oussama_1 39 Posting Whiz in Training

if any number modulus 2 is zero then it's even otherwise it's an odd number so your condition would be
if (Num%2==0) sop("EVEN");

oussama_1 39 Posting Whiz in Training

Use a backgroundworker, Click Here

J.C. SolvoTerra commented: Probably the most accurate supply on demand I've ever witnessed hahaha +3
oussama_1 39 Posting Whiz in Training

The Problem is in your intPosition.

        Dim strSelectedword As String = "office"
        lblHiddenWord.Text = ""
        For intCount = 1 To strSelectedword.Length
            lblHiddenWord.Text &= "*"
        Next

        Dim intBad As Integer = 0
        Do Until intBad = 10 Or Not lblHiddenWord.Text.Contains("*")
            Dim Entry As String
            Entry = InputBox("Guess a letter")
            If Not Entry = "" Then
                If Not Entry = "!" Then
                    If strSelectedword.Contains(Entry.ToString) Then
                        Dim Index As String = strSelectedword.IndexOf(Entry)
                        strSelectedword = strSelectedword.Remove(Index, 1).Insert(Index, "!")
                        lblHiddenWord.Text = lblHiddenWord.Text.Remove(Index, 1).Insert(Index, Entry)
                    Else
                        MessageBox.Show("Try Again")
                    End If
                    intBad += 1
                End If
            End If
        Loop

        If lblHiddenWord.Text.Contains("*") Then
            MessageBox.Show("Sorry, you lost")
        Else
            MessageBox.Show("Congratulations, you won!")
        End If
oussama_1 39 Posting Whiz in Training

It's not the DLL, it's your program, you need to build it in a way to work on both systems.
In your program project go to Build >> Platform >> New >> X86.

oussama_1 39 Posting Whiz in Training

"the other way around":

 for(int i=1; i<=loop; i++){
System.out.println("Enter a number: ");
number = input.nextInt();

if(i==1){
maxValue = number;
minValue = number;
}
else{
if (number > maxValue) {
maxValue = number;
}
if (number < minValue){
minValue = number;
}}}

Good luck

oussama_1 39 Posting Whiz in Training

Just some side notes.
change this

while (Sum < 10 || Sum > 50)

to this

while (Sum > 10 || Sum < 50)

and in line 27 to this

if (integers[j] > integers[j + 1])
oussama_1 39 Posting Whiz in Training

for seconds you need the remainder:

int seconds = second%60;
Gl753 commented: Ah jeez I'm slipping, I knew it was only something small it was missing :) Thank you +0
oussama_1 39 Posting Whiz in Training

Same here, i use My.Settings.

oussama_1 39 Posting Whiz in Training

There is a way to find the physical location of a computer, by using signals between router and a computer you can find the distance.
Use the formula of Distance Calculation. Router Calculator

oussama_1 39 Posting Whiz in Training

I'll ask you this, Why not both?!

oussama_1 39 Posting Whiz in Training

Your strUserInput should be a string, so:

Dim strUserInput As String
oussama_1 39 Posting Whiz in Training

I agree with james, Thumbs up.
for example
String S1 = "Hello";
String S2 = "Hello";
String S3 = new String("Hello");
S1 and S2 they have one memory address with tow labels (S1 and S2) and they are equal, but S3 creates another address in the memory and for that reason S3 is different from S1 and S2 hence not equal.
So the best way is like what james posted. if (string1.equals(string2))...

I like the fact that since you are searching for the largest palendrome you started your nested loops with the largest int, so why not take advantage from that, you see your first print will be the answer and you don't need to keep the loop to display all the remaining results.
You should add a break; to stop the loop but since you have a nested loop you should label it.

TheLoop:
  for(int i=999;i>=100;i--){
    for(int n=999;n>=100;n--){
       product = n*i;
       stringproduct = product +"";
       new problem004().reverse(stringproduct);
       //if the string is a palendrome
          if(stringproduct == new problem004().reversed){ // edit here
             System.out.println("answer is"+stringproduct);
             Break TheLoop;
}}}

Good Luck

oussama_1 39 Posting Whiz in Training

Your problem is in the invoice class, instead of setting your variables properly you are giving them a value of 0.
so change these:

 public void setPartNumber(String pNumber){
pNumber = partNumber;
}
public void setPartDescription(String pDesc){
pDesc = partDescription;
}
public void setQuantityPurchased(int qPurchased){
qPurchased = quantityPurchased;
}
public void setPricePerItem(double pItem){
pItem = pricePerItem;
}

to:

 public void setPartNumber(String pNumber){
partNumber = pNumber;
}
public void setPartDescription(String pDesc){
partDescription = pDesc;
}
public void setQuantityPurchased(int qPurchased){
quantityPurchased = qPurchased;
}
public void setPricePerItem(double pItem){
pricePerItem = pItem;
}
oussama_1 39 Posting Whiz in Training

Ok since you are using time to start your sound, add the stop code and initiate it at let's say 12:01AM fair enough?

oussama_1 39 Posting Whiz in Training

Welcome :)

oussama_1 39 Posting Whiz in Training

No put the check code before "cmd1.ExecuteNonQuery" in the button1_click event and change this:

            If DtSet.Tables(0).Rows(i).Item(0).ToString = Login.txtEmpID.Text Then
                Button1.Enabled = False
                Exit sub
            End If
oussama_1 39 Posting Whiz in Training

hmm.. you can make this even faster by selecting only your id column.
btw this "select * " means select everything

oussama_1 39 Posting Whiz in Training

ok this is what i came up with for now..should work though

        Dim cmd2 As New System.Data.OleDb.OleDbDataAdapter()
        cmd2 = New System.Data.OleDb.OleDbDataAdapter("select * from [" + Label11.Text + "] ", cn)
        Dim DtSet As System.Data.DataSet
        DtSet = New System.Data.DataSet
        cmd2.Fill(DtSet)
        For i As Integer = 0 To DtSet.Tables(0).Rows.Count - 2
            '' i'm guessing that your EmpID is your first column in your database
            If DtSet.Tables(0).Rows(i).Item(0).ToString = Login.txtEmpID.Text Then
                Button1.Enabled = False
            End If
        Next
oussama_1 39 Posting Whiz in Training

of course your way works..just give me a sec.

oussama_1 39 Posting Whiz in Training

oh ok hah...just disable the submit button
cmd1.ExecuteNonQuery
Button1.enabled = false

oussama_1 39 Posting Whiz in Training

There's a short way to do it, change button1_click to this:

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Try
            Dim cn As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\pant.16\Desktop\Projects\Microsoft - MSV\Microsoft - MSV\bin\Debug\MSVDB.accdb")
            If cn.State = ConnectionState.Open Then
                cn.Close()
            End If
            cn.Open()
            ''
            ''____________________________________________
            ''
            If MsgBox("Confirm Submit?", MsgBoxStyle.YesNo Or MsgBoxStyle.Question) = MsgBoxResult.Yes Then
                ' of course label11 should be your table name in the access file
                ' the command is like this: (insert into Mytable (columnName1,columnName2) values (MyInput1,MyInput2), cn)
                Dim cmd1 As New OleDb.OleDbCommand("INSERT INTO [" + Label11.Text + "](EmpID,Answer1,Answer2,Answer3,Answer4,Answer5,Answer6,Answer7,Answer8,Answer9,Answer10) values('" & Login.txtEmpID.Text & "','" & ComboBox1.Text & "','" & ComboBox2.Text & "','" & ComboBox3.Text & "','" & ComboBox4.Text & "','" & ComboBox5.Text & "','" & ComboBox6.Text & "','" & ComboBox7.Text & "','" & ComboBox8.Text & "','" & ComboBox9.Text & "','" & ComboBox10.Text & "')", cn)
                cmd1.ExecuteNonQuery()
        Catch ex As Exception
            MsgBox(ex.Message(), MsgBoxStyle.Critical, "Error")
            Exit Sub
        End Try
    End Sub

Good luck

oussama_1 39 Posting Whiz in Training

Your code will not loop the sound! is this code placed inside a loop? if yes add break; to it.

oussama_1 39 Posting Whiz in Training

Ok here's couple of things you can try:

  • Find out what the error is by adding this code:

    Try
    'your code here
    Catch ex As Exception
    MessageBox.Show(ex.Message & " - " & ex.Source)
    End Try

  • Go to your project properties >> publish >> then check the "application files" and the "prerequisites" button, so that you can add everything your program needs to operate properly, everything you add will be added to the installer.

  • Change your targeted platform to X86 bit so that your program will work on both systems (32-bit and 64-bit).
    go to Build >> configuration manager >> platform >> new >> X86 >> ok.

Good Luck

oussama_1 39 Posting Whiz in Training

The application startup path is not the location of your resources folder.
here's a better way to do it:

image1.image = my.resources.yourImageName
oussama_1 39 Posting Whiz in Training

Night.

What is your favourite secret?

oussama_1 39 Posting Whiz in Training

Add this to line 88

YourDatagrid.DataSource = ds.tables(0)
oussama_1 39 Posting Whiz in Training

Put the if statement at the bottom of your code
If (hours >40)
grosspay= (40 * rate) + ((1.5 * rate)*(hours-40));

oussama_1 39 Posting Whiz in Training

Such as:
3d (cubes,spheres,planes..)
meshes
objects
physics
rendering
shadow coocking
etc..

oussama_1 39 Posting Whiz in Training

They are all good, but from experience i recommend maya, it's great software just create your models and drop them in unity. and btw unity 3d have a lot of features that already exist in maya and 3d max.

oussama_1 39 Posting Whiz in Training

Your question seems to be answered Here

oussama_1 39 Posting Whiz in Training

@stultuske Logically the sum here is a variable, for ex: Sum of the Addition of 1 2 3 4 is 10

@OMDYD Try this

String output="Sum of the Addition of "+num1+" "+num2+" "+num3+" "+num4+" is "+Sum;
oussama_1 39 Posting Whiz in Training

beat

oussama_1 39 Posting Whiz in Training

You are welcome, about the code you can put it in a form load event so that when the program start everything falls into place

oussama_1 39 Posting Whiz in Training

Try this:

if Not YourConnection.state = ConnectionState.Open Then
'promot user
end if
oussama_1 39 Posting Whiz in Training

For input letter+number:

r = Integer.parseInt(choice.substring(1, 2)) - 1;
c = (int) (choice.charAt(0) - 'A');

and for the part "loop for once" i didn't understand but as far as i know, there's no such a thing, you want to loop once; just write the code without a loop.
hope this helps.

oussama_1 39 Posting Whiz in Training

@ddanbe
It's impossible that this code adds an extra hours other than one hour to the current time (meaning whatever time it is, it'll only add only one hour to it), and i recommended the timer tick event other than ValueChanged event for one important thing, that is he want to show the seconds in the control
so the control needs to change every second to display a proper time.
i'm sorry i didn't clear that out in my first post.

the date in the format of h:mm:ss tt

ddanbe commented: Good point. +15