• Member Avatar for oussama_1
    oussama_1

    Began Watching Invoice

    I have a simple class named as Invoice, in which I'm taking four instance variables to intialize PART NO, PART DESCRIPTION, QUANTITY PURCHASED & PRICE PER EACH ITEM. I have …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Invoice

    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 = …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in need help with sound

    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?
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Prevent from Posting Duplicate Values in Access Database

    Welcome :)
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Prevent from Posting Duplicate Values in Access Database

    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
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Prevent from Posting Duplicate Values in Access Database

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

    Replied To a Post in Prevent from Posting Duplicate Values in Access Database

    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) …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Prevent from Posting Duplicate Values in Access Database

    of course your way works..just give me a sec.
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Prevent from Posting Duplicate Values in Access Database

    oh ok hah...just disable the submit button cmd1.ExecuteNonQuery Button1.enabled = false
  • Member Avatar for oussama_1
    oussama_1

    Began Watching Prevent from Posting Duplicate Values in Access Database

    Hi Team, I understand that there are numerous number of Articles with the following Title and I should have gone through them before posting but believe me, I've done it …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Prevent from Posting Duplicate Values in Access Database

    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 …
  • Member Avatar for oussama_1
    oussama_1

    Began Watching need help with sound

    how can i stop looping sound in c# (visual studio) if (ConditionTrue) { SoundPlayer simpleSound = new SoundPlayer(@"C:\Users\BIB HUTI\Desktop\beep.wav"); simpleSound.Play(); } // it keeps playing and never stops.
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in need help with sound

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

    Began Watching SQL Query not executed

    Hi! I am doing the programming on my computer and it works fine-the program, the database itself, inserting to the database is also working fine. But when I publish it …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in SQL Query not executed

    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 & " …
  • Member Avatar for oussama_1
    oussama_1

    Began Watching Load Image

    Ive save my image on the resources folder abd i want to load picture on picbox... i used this method image1.load(Application.startUpPath+ "\sub" & 1 &".png" my problem is that.. there …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Load Image

    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
  • Member Avatar for oussama_1
    oussama_1

    Gave Reputation to ElliotNorton in What movie have you seen lately?

    Since it is worth to say, the movie I watched lately is, the Oscar winner "Gravity." What a movie it is!!! Simply fantastic and no wonder for winning Oscar.
  • Member Avatar for oussama_1
    oussama_1

    Began Watching Your favorite...

    What is your favorite thing/person/animal/etc.? Basically, all you do is say what is your favorite based off of the previous persons subject. For example, **Favorite Forum** Response: **Daniweb**. And after …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Your favorite...

    Night. What is your favourite secret?
  • Member Avatar for oussama_1
    oussama_1

    Began Watching Unknown connection option in connection string: database.

    I am trying to show data on datagridview but error occurs Form1.vb code is as below Imports System.Data Imports System.Data.Sql Imports System.Data.SqlClient Imports System.Data.SqlClient.SqlDataReader Imports System.String Imports System.Configuration Imports System.ComponentModel …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Unknown connection option in connection string: database.

    Add this to line 88 YourDatagrid.DataSource = ds.tables(0)
  • Member Avatar for oussama_1
    oussama_1

    Stopped Watching Beards

    I have contributed to the 'Real World Computing' section of PC Pro magazine here in the UK for, come the next edition, what will be 20 years. During all of …
  • Member Avatar for oussama_1
    oussama_1

    Began Watching cant seem to fix the overtime pay

    double hours=0, rate=0; double Federaltaxes, Ficataxes, Statetaxes; double netpay=0, grosspay=0, totaltaxes; if (hours <= 40){ System.out.println("how many hours did you work"); hours= input.nextDouble(); System.out.println("what is the rate you get paid"); …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in cant seem to fix the overtime pay

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

    Stopped Watching Scrabble

    So the game works like this: We start with a word, and each person must change that word. You must change **one letter only**, and you **may not add or …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in 3d modeling ?

    Such as: 3d (cubes,spheres,planes..) meshes objects physics rendering shadow coocking etc..
  • Member Avatar for oussama_1
    oussama_1

    Began Watching 3d modeling ?

    hello im sort of new to game development and i want to know how to make my own 3d models i searched online and found alot of tools to use …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in 3d modeling ?

    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 …
  • Member Avatar for oussama_1
    oussama_1

    Began Watching Switch cases, and 2D array print help!

    hey guys, -So in case 2, i'm trying to have the user to input elements (N,Y,P,D,G) only with specific Array location. I used switch inside a switch, but how do …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Switch cases, and 2D array print help!

    Your question seems to be answered [Here](http://stackoverflow.com/questions/26008633/switch-questions-array-printing)
  • Member Avatar for oussama_1
    oussama_1

    Began Watching unclosed string literal error

    hi guys am new please i your help to debug the error with this code am working with String output="Sum of the Addition of "+num1+" "+num2+" "+num3+" "+num4+" Sum
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in unclosed string literal error

    @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 …
  • Member Avatar for oussama_1
    oussama_1

    Began Watching Scrabble

    So the game works like this: We start with a word, and each person must change that word. You must change **one letter only**, and you **may not add or …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Scrabble

    beat
  • Member Avatar for oussama_1
    oussama_1

    Gave Reputation to docfnt in Make user and custom controls operate at design time

    My horrible bad, and deepest apologies... I forgot to say "Thanx a Million!" to both of you, Oussama 1 and Deep Modi !!!! I greatly appreciate you taking the time …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Make user and custom controls operate at design time

    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
  • Member Avatar for oussama_1
    oussama_1

    Began Watching How do I prompt user to get help for making ConnectionString ?

    I am now in a problem to prompt user at the first run of my program. The Server is msSql Server 2008 R2 and Plaform vb.Net 2010. At the time …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in How do I prompt user to get help for making ConnectionString ?

    Try this: if Not YourConnection.state = ConnectionState.Open Then 'promot user end if
  • Member Avatar for oussama_1
    oussama_1

    Began Watching 2D Array Seating Coding Changes

    Hi , my friend pass this coding to me , to change it on few things , i try to change it first , to make a while looping ... …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in 2D Array Seating Coding Changes

    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 …
  • Member Avatar for oussama_1
    oussama_1

    Gave Reputation to ddanbe in Using DateTime to make the default time one hour ahead c#

    Weel, I must admit you got a point there. :)
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Using DateTime to make the default time one hour ahead c#

    @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 …
  • Member Avatar for oussama_1
    oussama_1

    Stopped Watching Your favorite...

    What is your favorite thing/person/animal/etc.? Basically, all you do is say what is your favorite based off of the previous persons subject. For example, **Favorite Forum** Response: **Daniweb**. And after …
  • Member Avatar for oussama_1
    oussama_1

    Began Watching Using DateTime to make the default time one hour ahead c#

    I am creating a form that uses a DateTimePicker control to display the date in the format of h:mm:ss tt. I am trying to make the default time one hour …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Using DateTime to make the default time one hour ahead c#

    First of all, DateTimePicker have nothing to do with DateTime they are two seperate things. Second, the problem is in your method,you see you have a method(deliveryTime_ValueChanged) and when this …
  • Member Avatar for oussama_1
    oussama_1

    Stopped Watching Things I hate about TV shows

    Cop shows that include a 5 minute foot chase. This is usually the result of the cops shouting out a suspect's name from half a block away instead of waiting …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Arrays and more ...

    Ok i get it now. public static int[][] Puzzle(int[] numbers, int x) { int rows = 0,a = 0; for (int i = 0; i<numbers.length;i++){ for (int j = 1;j>=i …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Arrays and more ...

    In the picture; line 7 change it to: for (int j = 1;j>i && j<numbers.length;j++){
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Arrays and more ...

    Make sure it's the same code i posted, because there's no way you'll get a {0,0} in the output, or send me your final code and i'll take a look …

The End.