• Member Avatar for oussama_1
    oussama_1

    Began Watching Detect similar copied rows from Datagrid to another Datagrid

    Hi guys about my previous post on [Copy Selected rows from Datagrid to another](http://www.daniweb.com/software-development/vbnet/threads/471088/copy-selected-rows-from-datagrid-to-another) that was answered by oussama_1 and Deep Modi, I was wodering if is it possible to …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Detect similar copied rows from Datagrid to another Datagrid

    For indx = 0 To DataGridView2.Rows.Count - 1 If DataGridView1.CurrentRow.Cells("ID").Value = DataGridView2.Rows(indx).Cells(1).Value Then Dim ask = MessageBox.Show("Record Already Exist, Replace existing record ?", "Records", _ MessageBoxButtons.YesNoCancel) If ask = DialogResult.Yes …
  • Member Avatar for oussama_1
    oussama_1

    Began Watching Add Files to application itself.

    This thread may be some what confusing, and not yet sure is this can be done or not. I just get a an idea to this (and yet I am …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Add Files to application itself.

    Yes, it's possible. read about how WINRAR works [Data Compression](http://en.wikipedia.org/wiki/Data_compression) [File Archiver](http://en.wikipedia.org/wiki/7-Zip) [deflate algorithm](http://en.wikipedia.org/wiki/DEFLATE_(algorithm))
  • Member Avatar for oussama_1
    oussama_1

    Began Watching Save Datagridview to Access at one click

    Dear All Master, please help me for my first program that i want to create...i have problem for save from datagridview to access database...everytime i try to save , only …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Save Datagridview to Access at one click

    Dim i As Integer For i = 0 To DataGridView1.Rows.Count - 1 With DataGridView1.Rows(i) Dim insertCommand As New _ OleDb.OleDbCommand("insert into students_grade (student_no, student_name, grade) values ('" & _ .Cells(0).Value …
  • Member Avatar for oussama_1
    oussama_1

    Began Watching data transfer from textbox to datagridview in another form

    i have 2 textbox in form1 as Name & Age and one datagridview in another form2 with column as Name & Age. I want to transfer data form these textbox …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in data transfer from textbox to datagridview in another form

    DataGridView1.Rows(0).Cells(0).Value = form1.name.Text DataGridView1.Rows(0).Cells(1).Value = form1.age.Text
  • Member Avatar for oussama_1
    oussama_1

    Began Watching Directory already exist in the path error

    Hi Dw I'm trying to copy a chosen file to a directory under 'C:\example' directory folder, I have a textbox to store the address (path) to the selected file, a …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Directory already exist in the path error

    in the destination, you need to put the file directory not the folder that contains it. My.Computer.FileSystem.FileCopy(your file,new file directory) ' ex: i want to copy this file(C:\sound.wav) to (c:\music) …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Get userchoice Radio button when save as word

    @ ryanjayson do you even understand my code before suggesting your solution!
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Vb 2012 Express Listview SelectedIndex no where to be seen xD

    the text of selected item in listview ListView1.SelectedItems(ListView1.SelectedItems.Count - 1).text
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Memorable Quotations

    an Arabic proverb The enemy of my enemy is my friend ex: Britain and France uniting together in World War I against Germany
  • Member Avatar for oussama_1
    oussama_1

    Began Watching Vb 2012 Express Listview SelectedIndex no where to be seen xD

    lol Hi people its been 2 years im back :D I finshed high school but had too stop programming so im back to noob The problem is i cant seem …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Vb 2012 Express Listview SelectedIndex no where to be seen xD

    ListView1.SelectedItems(ListView1.SelectedItems.Count - 1).Index
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Application Exception

    Public Class TempIsZeroException : Inherits ApplicationException **Public** means that other code can see it **class** is A container for data and code **TempIsZeroException** is the name of the Class **Inherits** …
  • Member Avatar for oussama_1
    oussama_1

    Began Watching Thoughts, Poetry and Much More...

    Hi All, I am starting this article so that we may share various motivational thoughts (your own creation will be great), poetry, short stories and all. This goes my own …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Thoughts, Poetry and Much More...

    *CONSOLATION GROOK* lol
  • Member Avatar for oussama_1
    oussama_1

    Began Watching Get userchoice Radio button when save as word

    Hi All, How do i get user choice Radio button text from multiple radio button, When i save as word document. Below code is what i did: "Food :" & …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Get userchoice Radio button when save as word

    For i = 0 To 2 Dim RadioButton As RadioButton = CType(Me.Controls("RadioButton" & i + 1), RadioButton) If RadioButton.Checked = True Then MsgBox("Food :" & RadioButton.Text & ", Quantity :" …
  • Member Avatar for oussama_1
    oussama_1

    Began Watching Application Exception

    Module throtemp Public Class TempIsZeroException : Inherits ApplicationException Public Sub New(ByVal msg As String) MyBase.New(msg) End Sub End Class Public Class temp Dim tmp As Integer = 1 Sub showtmp() …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Application Exception

    when exception(problem) occurs in a program, we handle it by Try, Catch and Finally. You can also define your own exception and your code is a perfect example for it. …
  • Member Avatar for oussama_1
    oussama_1

    Gave Reputation to Reverend Jim in Memorable Quotations

    He gave the English translation. Same thing.
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in TTS Free Arabic .net framework 3 compatible

    here's the solution Dim WithEvents Player As WMPLib.WindowsMediaPlayer Private Sub PlayFile(ByVal url As String) Player = New WMPLib.WindowsMediaPlayer Player.URL = url Player.controls.play() End Sub Private Sub Button1_Click(ByVal sender As System.Object, …
  • Member Avatar for oussama_1
    oussama_1

    Began Watching TTS Free Arabic .net framework 3 compatible

    Dear Experts, Simple question , I need TTS , Text To Speech engine that should be Free Arabic .net independent , OR compatible with .net 3 framework. Thanks, Waleed
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in TTS Free Arabic .net framework 3 compatible

    sadly, there isn't any free sapi with arabic language!
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Copy Selected rows from Datagrid to another

    try this Dim UpdateCommand As New OleDbCommand UpdateCommand.CommandText = "UPDATE [Sheet1$] Set [Inventory on Hand] Where [ITEM CODE] = '" & DataGridView2.Rows(DataGridView2.Rows.Count - 2).Cells(6).Value.ToString & "'" UpdateCommand.Connection = MyConnection MyConnection.Open() …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Copy Selected rows from Datagrid to another

    no you can not. "UPDATE will only update existing records in the database, it will not add new records. To add new records you need to use an INSERT command." …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Copy Selected rows from Datagrid to another

    for the update change these : tablename columnname1 etc.. Private Sub DataGridView1_RowsAdded(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewRowsAddedEventArgs) Handles DataGridView1.RowsAdded Dim MyConnection As New OleDbConnection("provider=Microsoft.ACE.OLEDB.12.0; Data Source='" & path …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Copy Selected rows from Datagrid to another

    here's the copy raw solution ill post the database update later Private Sub DataGridView1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles DataGridView1.MouseClick If DataGridView1.RowCount = 0 Or Nothing Then …
  • Member Avatar for oussama_1
    oussama_1

    Began Watching Copy Selected rows from Datagrid to another

    Hi guys. I need help in copying selected row from DataGrid to another. What I want is if I click a row it will be copied to another DataGrid. I …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Copy Selected rows from Datagrid to another

    let me get this straight, your are asking for 2 things 1.you want on datagridview1_mouseclick to copy selected raw to datagridview2 2.you want on datagridview2_RowsAdded to update your database with …
  • Member Avatar for oussama_1
    oussama_1

    Gave Reputation to AnooooPower in reads all lines in text file and be able to edit many lines etc

    Thanks oussama it works perfectly !
  • Member Avatar for oussama_1
    oussama_1

    Began Watching Any software is hackable?

    Is software hackable no matter how perfect it is written? Let's say I will create simple OS, I will spend like 30 years on encrypting every single variable, every code …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Any software is hackable?

    when there's a perfect program, there's a perfect hacker. deal with it! sorry :D
  • Member Avatar for oussama_1
    oussama_1

    Began Watching Windows Form - Default Enter Button?

    Good day, I must be blind .. I am developing my first "Visual Studio" desktop application. My apps are normally always Internet Apps. I have about 20 text boxes, but …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Windows Form - Default Enter Button?

    go to your form properties go to misc and set keypreview to true and set your acceptbutton
  • Member Avatar for oussama_1
    oussama_1

    Gave Reputation to CJMW in c# xna simple camera

    Cheers buddy, actually had this solved for a few days, just forgot about the post! Thanks anyway!
  • Member Avatar for oussama_1
    oussama_1

    Began Watching Memorable Quotations

    Once harm has been done, even a fool understands it. -- Homer
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in Memorable Quotations

    "I think, therefore I am" *-René Descartes*
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in where to start fro create video game

    no that's not right..it all depends on the software you are working on unity software comes with a customized software called MonoDevelop for debugging scripts which accepts these three languages. …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in reads all lines in text file and be able to edit many lines etc

    Sorry, Didnt get the question try this Dim ofd As New OpenFileDialog Dim strFile As String With ofd .Title = "Select a List" .Filter = "Text Files|*.txt|All Files|*.*" .ShowDialog() strFile …
  • Member Avatar for oussama_1
    oussama_1

    Began Watching reads all lines in text file and be able to edit many lines etc

    Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim ofd As New OpenFileDialog Dim strFile As String With ofd .Title = "Select a List" .Filter …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in reads all lines in text file and be able to edit many lines etc

    Dim ofd As New OpenFileDialog Dim strFile As String With ofd .Title = "Select a List" .Filter = "Text Files|*.txt|All Files|*.*" .ShowDialog() strFile = .FileName End With RichTextBox1.LoadFile(strFile, RichTextBoxStreamType.PlainText) For …
  • Member Avatar for oussama_1
    oussama_1

    Began Watching what is the code for changing resolution of program. vb.net

    what is the code for the program in vb.net that automatically adjust resolution based on the computer you are using? i use WindowState.Maximize but only the background image adjust. my …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in what is the code for changing resolution of program. vb.net

    if you got a lot of controls try to put them in panels so that instead of rescaling each control u can just move the panels around according to the …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in How to generate thumbnails which preserve the aspect ratio

    so that you can populate your listview with the images from your resources i did this in one of my apps it was embeded with more than 100 photos but …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in vb form save as document can be saved but its an empty page

    hmm dont know about that...actually if you use a datagridview itll be less coding for you other than that u gonna have to code everything gd luck
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in vb form save as document can be saved but its an empty page

    im assuming your "textbox"s are named textbox1 and textbox2 and so on.. dim wordData as string wordData = "Login : " & textbox1.text & vbnewline &_ "First Name : " …
  • Member Avatar for oussama_1
    oussama_1

    Replied To a Post in where to start fro create video game

    sorry my bad its 1500$ not 15000$.

The End.