My mac doesn't move smoothly

i have macbook unibody late 2009 ,, when i use trackpad for gestures such as swipe up to get mission control it doesn't move smoothly

Thanks a lot. As soon as I deleted the audio track the photo slideshow ran smoothly. I re-imported the track from a CD and it worked perfectly. I appreciate the assistance.
One question for follow up. I've used other songs purchased off iTunes in movies without problem. Any reason why this one was different?
PowerBook G4   Mac OS X (10.3.9)  

Similar Messages

  • My mouse pointer doesn't move smoothly in Thunderbird.

    Just noticed this recently.
    Deactivating plugins fixes it. It looks like the Default 31 in Appearance is causing it. Any fix?
    Also, Thunderbird is now crashing from time to time since version 31 was installed.

    - Checking and unchecking Smooth Scrolling does not change situation.
    - With a recent update, moving the slider to the right of the folders became "jerky".
    - Selecting "Restart with Add-ons Disabled" from the help menu fixes the "jerkiness".
    - The only add-ons I have are two extensions, they are:
    Change the reply header and the reply format 0.8.3
    Return Receipt Toolbar button 0.16
    and one "Appearance" extension, which is
    Default 31.0
    - Manually disabling the two extensions doesn't fix the problem.
    - Since there is no way to manually disable Default 31.0, I assume it is the cause of the jerky slider. I did try another theme and then disabled Default 31.0 but that didn't fix it either do I went back to Default 31.0 and deleted the trial theme.
    What about the more frequent crashes?

  • I'm going to get the I Mac and since the new I Mac doesn't have DVD drive on it I was thinking to get the Samsung SE-506AB Slim Portable Blu-ray Writer in order to burn movies from I movie do I need a special software for that since the SE-506ab comes onl

    I’m going to get the I Mac and since the new I Mac doesn’t have DVD drive on it I was thinking to get the Samsung SE-506AB Slim Portable Blu-ray Writer in order to burn movies from I movie do I need a special software for that since the SE-506ab comes only with windows software.. but I did check and it is compatible with apple. Can you please advise me and or let me know if I’m buying the right stuff or if there is any other blu ray that will work with the I mac as plug and play.
    Thank you
    Haim

    This freezing reminds me of really old Macs, long ago, in the days of the old-school peripherals like SCSI drives, terminators, scanners and the like. If you had a SCSI conflict, like the wrong device ID's or something, you'd freeze up like that. Back in those days you'd call 800-SOS-APPLE (AAPL?) and they'd run you through disconnecting all your extra hardware - Jaz and Zip drives, CD burners, scanners etc and then eliminate them one by one by adding them incrementally and testing for the freeze/bomb dialog.
    But, today we have Firewire and none of those ancient issues (no free lifetime tech support either). My iMac's ports are all full, and I only know which devices are connected when I have to remove something for another device. iSight, scanner, card reader, external hard drive, USB soundsticks, etc. You wouldn't happen to have any SCSI devices hooked up, would you?
    Out of curiosity, have you tried a different USB/Firewire port for the hard drive? Or run the hardware test DVD that comes with your computer? This weird freezing seems to suggest a problem with the computer, RAM or network more than a device. Bad devices, in my experience, cause kernel panics, not freezing.

  • Duplicate mouse cursor appears (but doesn't move) on second monitor

    I have a Mac Pro with the ATI XT1900 video card and 2 Dell 2407WFP LCD monitors attached via DVI.
    When I'm using an application, such as a web browser, and the cursor changes state (like the black arrow with spinning wheel in corner) a duplicate of this cursor state appears on my second monitor, on the left-hand side of the screen.
    This cursor DOES NOT MOVE, but does animate, and will not disappear unless I move my "live" cursor over to the second monitor, which I imagine causes OS X to "refresh" the position of the cursor. It realizes the duplicate shouldn't be there and it vanishes. The second cursor seems to appear only when the primary live cursor changes state, as in the black arrow becoming a black arrow with spinning wheel in the corner, etc.
    This is not a duplicate cursor due to having Displays set up to mirror one another. The second cursor doesn't move.
    This has happened in more than one software application, so it appears to be some sort of display driver error at the system level.
    Anyone else experience this or have a way to fix it? There have been several Apple Updates to OS X since this problem first started happening (on day 1 with the Mac Pro) and it has not been resolved.
    -R

    Try resetting SMC on the macbook air: http://support.apple.com/kb/HT1411
    Good luck!

  • Mac Doesn't want go sleep

    Hi my Mac doesn't want go sleep.
    This is the log:
    10/13/11 1:50:38.000 AM kernel: hibernate image path: /var/vm/sleepimage
    10/13/11 1:50:38.000 AM kernel: sizeof(IOHibernateImageHeader) == 512
    10/13/11 1:50:38.000 AM kernel: error 0xe00002db opening hibernation file
    10/13/11 1:50:38.000 AM kernel: IOPolledFileOpen(e00002db)
    10/13/11 1:50:38.000 AM kernel: /drv/ MacModule.cpp:298   powerStateWillChangeTo: flags=4 stateNumber=2
    10/13/11 1:50:38.000 AM kernel: /drv/ MacModule.cpp:303   powerStateWillChangeTo: found flag=kIOPMSleepCapability (4)
    10/13/11 1:50:39.000 AM kernel: /drv/ MacModule.cpp:298   powerStateDidChangeTo: flags=4 stateNumber=2
    10/13/11 1:50:39.000 AM kernel: /drv/ MacModule.cpp:303   powerStateDidChangeTo: found flag=kIOPMSleepCapability (4)
    10/13/11 1:50:44.000 AM kernel: Wake reason: ?
    10/13/11 1:50:44.000 AM kernel: /drv/ MacModule.cpp:298   powerStateWillChangeTo: flags=82 stateNumber=3
    10/13/11 1:50:44.000 AM kernel: /drv/ MacModule.cpp:299   powerStateWillChangeTo: found flag=kIOPMPowerOn (2)
    10/13/11 1:50:44.000 AM kernel: /drv/ MacModule.cpp:304   powerStateWillChangeTo: found flag=kIOPMRestartCapability (80)
    10/13/11 1:50:44.000 AM kernel: /drv/ MacModule.cpp:298   powerStateDidChangeTo: flags=82 stateNumber=3
    10/13/11 1:50:44.000 AM kernel: /drv/ MacModule.cpp:299   powerStateDidChangeTo: found flag=kIOPMPowerOn (2)
    10/13/11 1:50:44.000 AM kernel: /drv/ MacModule.cpp:304   powerStateDidChangeTo: found flag=kIOPMRestartCapability (80)
    10/13/11 1:50:44.000 AM kernel: Previous Sleep Cause: 5
    10/13/11 1:50:44.000 AM kernel: wlEvent: en1 en1 Link DOWN
    10/13/11 1:50:44.000 AM kernel: AirPort: Link Down on en1. Reason 4 (Disassociated due to inactivity).
    10/13/11 1:50:44.000 AM kernel: en1: 802.11d country code set to 'X3'.
    10/13/11 1:50:44.000 AM kernel: en1: Supported channels 1 2 3 4 5 6 7 8 9 10 11 12 13 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140
    10/13/11 1:50:45.278 AM airportd: _doAutoJoin: Already associated to “AirPort”. Bailing on auto-join.
    10/13/11 1:50:45.294 AM airportd: _doAutoJoin: Already associated to “AirPort”. Bailing on auto-join.
    10/13/11 1:50:45.000 AM kernel: EIR is supported.
    10/13/11 1:50:45.000 AM kernel: SSP is supported.
    10/13/11 1:50:45.000 AM kernel: en1: 802.11d country code set to 'DE'.
    10/13/11 1:50:45.000 AM kernel: en1: Supported channels 1 2 3 4 5 6 7 8 9 10 11 12 13 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140
    10/13/11 1:50:45.000 AM kernel: MacAuthEvent en1   Auth result for: 00:23:6c:bf:31:00  MAC AUTH succeeded
    10/13/11 1:50:45.000 AM kernel: wlEvent: en1 en1 Link UP
    10/13/11 1:50:45.000 AM kernel: AirPort: Link Up on en1
    10/13/11 1:50:45.000 AM kernel: en1: BSSID changed to 00:23:6c:bf:31:00
    10/13/11 1:50:45.000 AM kernel: AirPort: RSN handshake complete on en1
    10/13/11 1:50:45.000 AM kernel: Graphics suppressed 1130 ms
    10/13/11 1:51:01.000 AM kernel: hibernate image path: /var/vm/sleepimage
    10/13/11 1:51:01.000 AM kernel: sizeof(IOHibernateImageHeader) == 512
    10/13/11 1:51:01.000 AM kernel: error 0xe00002db opening hibernation file
    10/13/11 1:51:01.000 AM kernel: IOPolledFileOpen(e00002db)
    10/13/11 1:51:01.000 AM kernel: /drv/ MacModule.cpp:298   powerStateWillChangeTo: flags=4 stateNumber=2
    10/13/11 1:51:01.000 AM kernel: /drv/ MacModule.cpp:303   powerStateWillChangeTo: found flag=kIOPMSleepCapability (4)
    10/13/11 1:51:04.000 AM kernel: /drv/ MacModule.cpp:298   powerStateDidChangeTo: flags=4 stateNumber=2
    10/13/11 1:51:04.000 AM kernel: /drv/ MacModule.cpp:303   powerStateDidChangeTo: found flag=kIOPMSleepCapability (4)
    10/13/11 1:51:09.000 AM kernel: Wake reason: ?
    10/13/11 1:51:09.000 AM kernel: /drv/ MacModule.cpp:298   powerStateWillChangeTo: flags=82 stateNumber=3
    10/13/11 1:51:09.000 AM kernel: /drv/ MacModule.cpp:299   powerStateWillChangeTo: found flag=kIOPMPowerOn (2)
    10/13/11 1:51:09.000 AM kernel: /drv/ MacModule.cpp:304   powerStateWillChangeTo: found flag=kIOPMRestartCapability (80)
    10/13/11 1:51:09.000 AM kernel: /drv/ MacModule.cpp:298   powerStateDidChangeTo: flags=82 stateNumber=3
    10/13/11 1:51:09.000 AM kernel: /drv/ MacModule.cpp:299   powerStateDidChangeTo: found flag=kIOPMPowerOn (2)
    10/13/11 1:51:09.000 AM kernel: /drv/ MacModule.cpp:304   powerStateDidChangeTo: found flag=kIOPMRestartCapability (80)
    10/13/11 1:51:09.000 AM kernel: Previous Sleep Cause: 5
    10/13/11 1:51:09.000 AM kernel: wlEvent: en1 en1 Link DOWN
    10/13/11 1:51:09.000 AM kernel: AirPort: Link Down on en1. Reason 4 (Disassociated due to inactivity).
    10/13/11 1:51:10.000 AM kernel: EIR is supported.
    10/13/11 1:51:10.000 AM kernel: SSP is supported.
    10/13/11 1:51:10.000 AM kernel: MacAuthEvent en1   Auth result for: 00:23:6c:bf:31:00  MAC AUTH succeeded
    10/13/11 1:51:10.000 AM kernel: wlEvent: en1 en1 Link UP
    10/13/11 1:51:10.000 AM kernel: AirPort: Link Up on en1
    10/13/11 1:51:10.000 AM kernel: en1: BSSID changed to 00:23:6c:bf:31:00
    10/13/11 1:51:10.000 AM kernel: AirPort: RSN handshake complete on en1
    10/13/11 1:51:10.000 AM kernel: Graphics suppressed 1130 ms
    10/13/11 1:51:11.263 AM WindowServer: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    10/13/11 1:51:26.000 AM kernel: hibernate image path: /var/vm/sleepimage
    10/13/11 1:51:26.000 AM kernel: sizeof(IOHibernateImageHeader) == 512
    10/13/11 1:51:26.000 AM kernel: error 0xe00002db opening hibernation file
    10/13/11 1:51:26.000 AM kernel: IOPolledFileOpen(e00002db)
    10/13/11 1:51:26.000 AM kernel: /drv/ MacModule.cpp:298   powerStateWillChangeTo: flags=4 stateNumber=2
    10/13/11 1:51:26.000 AM kernel: /drv/ MacModule.cpp:303   powerStateWillChangeTo: found flag=kIOPMSleepCapability (4)
    10/13/11 1:51:29.000 AM kernel: /drv/ MacModule.cpp:298   powerStateDidChangeTo: flags=4 stateNumber=2
    10/13/11 1:51:29.000 AM kernel: /drv/ MacModule.cpp:303   powerStateDidChangeTo: found flag=kIOPMSleepCapability (4)
    10/13/11 1:51:33.000 AM kernel: Wake reason: EC.LidOpen (User)
    10/13/11 1:51:33.000 AM kernel: /drv/ MacModule.cpp:298   powerStateWillChangeTo: flags=82 stateNumber=3
    10/13/11 1:51:33.000 AM kernel: /drv/ MacModule.cpp:299   powerStateWillChangeTo: found flag=kIOPMPowerOn (2)
    10/13/11 1:51:33.000 AM kernel: /drv/ MacModule.cpp:304   powerStateWillChangeTo: found flag=kIOPMRestartCapability (80)
    10/13/11 1:51:33.000 AM kernel: /drv/ MacModule.cpp:298   powerStateDidChangeTo: flags=82 stateNumber=3
    10/13/11 1:51:33.000 AM kernel: /drv/ MacModule.cpp:299   powerStateDidChangeTo: found flag=kIOPMPowerOn (2)
    10/13/11 1:51:33.000 AM kernel: /drv/ MacModule.cpp:304   powerStateDidChangeTo: found flag=kIOPMRestartCapability (80)
    10/13/11 1:51:33.000 AM kernel: Previous Sleep Cause: 5
    10/13/11 1:51:33.000 AM kernel: wlEvent: en1 en1 Link DOWN
    10/13/11 1:51:33.000 AM kernel: AirPort: Link Down on en1. Reason 4 (Disassociated due to inactivity).
    10/13/11 1:51:34.000 AM kernel: EIR is supported.
    10/13/11 1:51:34.000 AM kernel: SSP is supported.
    10/13/11 1:51:34.000 AM kernel: Sound assertion "0 == fAudioEngineArray" failed in AppleHDADriver at line 3047 goto Exit
    10/13/11 1:51:34.000 AM kernel: MacAuthEvent en1   Auth result for: 00:23:6c:bf:31:00  MAC AUTH succeeded
    10/13/11 1:51:34.000 AM kernel: wlEvent: en1 en1 Link UP
    10/13/11 1:51:34.000 AM kernel: AirPort: Link Up on en1
    10/13/11 1:51:34.000 AM kernel: en1: BSSID changed to 00:23:6c:bf:31:00
    10/13/11 1:51:34.000 AM kernel: AirPort: RSN handshake complete on en1
    10/13/11 1:51:35.059 AM applepushserviced: <APSCourier: 0x7ff03150d530>: Stream error occurred for <APSTCPStream: 0x7ff0335018a0>: The operation couldn’t be completed. Socket is not connected
    10/13/11 1:51:35.104 AM airportd: _doAutoJoin: Already associated to “AirPort”. Bailing on auto-join.
    10/13/11 1:51:35.000 AM kernel: en1: BSSID changed to 00:23:6c:bf:31:00
    Do you guys know a solution?

    i was reading 1 of your posts but couldnt reply to it', it concerning imovie6 , so i thought id ask you here' i cant seem to drag my imported clips down to my timeline or clip viewer' they wont move' i draged 1 clip the regular way' but when i choose another clip to drag'>.it just turns transparent; then mu curser starts making a crop box? ever ran into this>?

  • HT4061 ipad doesn't move beyond language selection brand new

    help  I am a teacher with new Ipad2 and I have charged the thing, but it doesn't move past the language selection.  I have a class to learn about it in a couple of hours but I can't get it to respond.  I have looked up troubleshooting and done the on off, pressing the on/off, holding the home and on/off for several seconds...... help please!

    You can download a complete iPad User Guide here: http://manuals.info.apple.com/en/ipad_user_guide.pdf
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

  • Switching to application doesn't move me to correct desktop

    I have an annoying problem with application switching since I have upgraded to Mac OS Lion from Snow Leopard.
    Now switching between applications doesn't work as good as it was in Snow Leopard.
    Right now I have Finder and Xcode opened. Xcode is assigned to only one specific Desktop and Finder is assigned to None. And when I am in Xcode for example and use Cmd-Tab to switch to Finder, it deactivates my current window, but doesn't move to the space with Finder or makes Finder active. Then, I press Cmd-Tab again, and it makes Finder active (My top panel controls show Finder now) but I still stay in the space with Xcode. And further switching doesn't do anything. So I then need to manually to click on the Finder icon in the Dock. And the same is vice versa when switching from Finder to Xcode.
    If I switch by clicking the Finder Dock icon it then works in two steps: first time it deactivates current window, and after second click it moves to Finder Desktop and makes Finder active.
    Another issue is with Safari when I am in Fullscreen mode and have also Activity window opened. If I am in Finder and switch with Cmd-Tab to Safari, it just shows me the Activity window in the same Desktop no matter how many times I Cmd-Tab. To switch to Main Safari window I need to click on the Dock icon.
    If I switch only by clicking the Dock icon, then I again need to click it twice.
    Option for moving to space with selected application in Preference Pane is switched on and Automatical rearrangement of last used applications as well.
    Does anybody know the reason and solution of this behaviour?

    Thank for reply. I have the last upgrade installed. But the problem still exists. But it is not permanent, I would say. I don't know what does it depend on. Right now I have closed the activity wondow in Safari and then opened it again, and now it appears in the same desktop as Safari main window and switching to Safari works correctly, as it should be. So sometimes it works fine, and sometimes it works awful.

  • And need the new iTunes 11.1 to be able to use my iPhone on iTunes but I need the new mac software update OXS 10.6.8, but my mac doesn't need or have an update what should I do! I'm upset :'(

    and need the new iTunes 11.1 to be able to use my iPhone on iTunes but I need the new mac software update OXS 10.6.8, but my mac doesn't need or have an update what should I do! I'm upset :'(

    The requirements for iTunes:
    Macintosh System Requirements
    Mac computer with an Intel Core processor
    OS X version 10.6.8 or later
    400MB of available disk space
    Broadband Internet connection to use the iTunes Store
    Your Mac must be able to run OSX 10.6.8. If you can run that OSX then you can run iTunes 11.1.
    Which Mac do you have?
    MJ

  • How do I pair a bluetooth headset when my MAC doesn't recognize it? The hedset work properly because they are paired with my iPhone. The headset is not an Apple product. It'd 3rd party.

    How do I pair a bluetooth headset when my MAC doesn't recognize it? The hedset work properly because they are paired with my iPhone. The headset is not an Apple product. It'd 3rd party.

    Ask the headset manufacturer.
    Barry

  • After upgrading to Yosemite my mac doesn't shut off. The off button doesn't work

    After upgrading to Yosemite, my mac doesn't shut off.  The off button no longer works. I want to shut the thing off.

    Jehreth,
    On my Macbook Pro you have to hold the power button down a moment till a little window pops up and asks what you would like to do. Also you can go to:
    (  ) Menu > Shut down ...
    to shutdown your Mac. Or are you saying that these options do not work?
    Hope that helps,
    Weston
    Supporting article,
    OS X Yosemite: Log out, sleep, restart, and shut down

  • The book who I selected doesn't move to the right in CheckedListBox and the reason is that I can't make an return.his code is good just for first user who I selected

    Imprumut = loan
    I have 6 tables: 
    I have one combobox(from where I select utilizatori(users)) and 2 CheckedListBox(Between first box and second box I have 2 buttons:imprumuta(loan) and restituie(return))
    This c# code works just for first user: Utilizator, but something's not good. When I add new utilizator(user) and select it,  the loan will be add in my SQL DataBase, but... the book who I selected doesn't move to the right in CheckedListBox and the reason
    is that I can't make an return
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using MySql.Data.MySqlClient;
    namespace proiect
        public partial class Imprumut : Form
            MySqlConnection con = new MySqlConnection("DataSource=localhost;UserID=root;database=biblio1");
            //stabilim conexiunea
            MySqlCommand comUser;//interogarea pe baza careia umplem comboBox
            MySqlDataAdapter adaptu;
            DataTable userT = new DataTable();
            MySqlCommand cmdCarti;//interogarea pe baza careia umplem checkListBox
            MySqlDataAdapter adaptCarti;
            DataTable CartiTabel = new DataTable();
            MySqlCommand cmdCartiImprumutate;//interogarea pe baza careia umplem checkListBox
            MySqlDataAdapter adaptCartiImprumutate;
            DataTable CartiImprumutateTabel = new DataTable();
            public int UserId
                get
                    return Convert.ToInt32(user.SelectedValue.ToString());
            void Completez_Combo_User()
                try
                    comUser = new MySqlCommand("SELECT n.userid, CONCAT(n.UserName) as UserN FROM users n left join userroles us on n.userid=us.userid left join roles r on r.roleid=us.roleid WHERE r.roleid='3'",
    con);
                    adaptu = new MySqlDataAdapter(comUser);
                    adaptu.Fill(userT);
                    user.Items.Clear();
                    user.DataSource = userT;
                    //DataTable din care sunt preluate datele pentru ComboBox user
                    user.ValueMember = "UserID";
                    //Valoarea din coloana UserID nu se afiseaza in combobox
                    user.DisplayMember = "UserN";
                    //Eelementele afisate in combobox, preluate din concatenarea mai multor coloane
                catch (Exception ex)
                    MessageBox.Show(ex.Message);
            void Completez_CheckList_Carti()
                try
                    cmdCarti = new MySqlCommand("SELECT BookID, CONCAT(title, ' ', ISBN,' ',author)as date_carte FROM books WHERE NumberLeft > 0 ORDER BY BookID", con);
                    adaptCarti = new MySqlDataAdapter(cmdCarti);
                    adaptCarti.Fill(CartiTabel);
                    imp.Items.Clear();
                    //carti.DataSource=null;
                    imp.DataSource = CartiTabel;
                    //DataTable din care sunt preluate datele pentru ComboBox carte
                    imp.ValueMember = "BookID";
                    //Valoarea din coloana BookID nu se afiseaza in combobox
                    imp.DisplayMember = "date_carte";
                    //Eelementele afisate in combobox, preluate din concatenarea mai multor coloane
                catch (Exception ex)
                    MessageBox.Show(ex.Message);
                void Completez_CheckList_Cartires()
                    try
                        cmdCartiImprumutate = new MySqlCommand(string.Format("SELECT b.BookID, CONCAT(title, ' ', ISBN,' ',author) as date_carte FROM books b inner join userbooks ub on ub.bookid = b.bookid
    WHERE ub.userid = {0} ORDER BY BookID", UserId), con);
                        adaptCartiImprumutate = new MySqlDataAdapter(cmdCartiImprumutate);
                        adaptCartiImprumutate.Fill(CartiImprumutateTabel);
                        res.Items.Clear();
                        //carti.DataSource=null;
                        res.DataSource = CartiImprumutateTabel;
                        //DataTable din care sunt preluate datele pentru ComboBox carte
                        res.ValueMember = "BookID";
                        //Valoarea din coloana BookID nu se afiseaza in combobox
                        res.DisplayMember = "date_carte";
                        //Eelementele afisate in combobox, preluate din concatenarea mai multor coloane
                    catch (Exception ex)
                        MessageBox.Show(ex.Message);
            void Inregistrez_imprumut_in_BD()
                int useridu = Convert.ToInt32(user.SelectedValue.ToString()); //useridu = id book
                int bookidi;
                try
                    DateTime azi = System.DateTime.Now; //  Data imprumutului
                    DateTime atunci = termenul.Value;   //  Data restituirii
                    MySqlTransaction tranzactie = con.BeginTransaction();
                    MySqlCommand adaugImpr = new MySqlCommand("INSERT INTO bookshistory(UserID, BookID,BorrowDate) VALUES(@UserID, @BookID, CAST(@BorrowDate as datetime))", con);
                    MySqlCommand scadCarti = new MySqlCommand("UPDATE books SET numberleft=numberleft-1 WHERE bookid=@bookid", con);
                    MySqlCommand adauga_userbooks = new MySqlCommand("INSERT INTO userbooks(userId,bookID)VALUES(@userID,@bookID)", con);
                    adauga_userbooks.Transaction = tranzactie;
                    adaugImpr.Transaction = tranzactie;
                    scadCarti.Transaction = tranzactie;
                    try
                        foreach (int i in imp.CheckedIndices)
                            imp.SelectedIndex = i;
                            bookidi = Convert.ToInt32(imp.SelectedValue.ToString());
                            MessageBox.Show(bookidi.ToString());
                                     //bookidi va fi id-ul cartea bifata, pe rand din checklistBox
                                     //Inregistrez in tabela imprumut
                            adaugImpr.Parameters.AddWithValue("@UserID", useridu);
                            adaugImpr.Parameters.AddWithValue("@BookID", bookidi);
                            adaugImpr.Parameters.AddWithValue("@BorrowDate", azi);
                            adaugImpr.ExecuteNonQuery();
                            adaugImpr.Parameters.Clear();
                            adauga_userbooks.Parameters.AddWithValue("@userID", useridu);
                            adauga_userbooks.Parameters.AddWithValue("@bookID", bookidi);
                            adauga_userbooks.ExecuteNonQuery();
                            adauga_userbooks.Parameters.Clear();
                                    //Scad numarl de carti disponibile pentru cartea imprumutat
                            scadCarti.Parameters.AddWithValue("@bookid", bookidi);
                            scadCarti.ExecuteNonQuery();
                            scadCarti.Parameters.Clear();
                        tranzactie.Commit();
                    catch (Exception ex)
                        tranzactie.Rollback();
                        string message = ex.Message;
                        if (ex.Message.ToLower().Contains("duplicate entry"))
                            message = "Una dintre carti mai exista deja";
                        MessageBox.Show(message);
                catch (Exception ex)
                    MessageBox.Show(ex.Message);
            void Inregistrez_restituire_in_BD()
                int useridu = Convert.ToInt32(user.SelectedValue.ToString()); //useridu = id book
                int bookidi;
                try
                    DateTime azi = System.DateTime.Now; //  Data imprumutului
                    DateTime atunci = termenul.Value;   //  Data restituirii
                    MySqlTransaction tranzactie = con.BeginTransaction();
                    MySqlCommand modificIstoric = new MySqlCommand("UPDATE bookshistory SET returndate = @returnDate WHERE userID = @userID AND bookID = @bookID", con);
                    MySqlCommand adaugCarti = new MySqlCommand("UPDATE books SET numberleft = numberleft + 1 WHERE bookID = @bookID", con);
                    MySqlCommand sterge_userbooks = new MySqlCommand("DELETE  FROM userbooks WHERE userID = @userID AND bookID = @bookID", con);
                    sterge_userbooks.Transaction = tranzactie;
                    modificIstoric.Transaction = tranzactie;
                    adaugCarti.Transaction = tranzactie;
                    try
                        foreach (int i in res.CheckedIndices)
                            res.SelectedIndex = i;
                            bookidi = Convert.ToInt32(res.SelectedValue.ToString());
                            MessageBox.Show(bookidi.ToString());
                            //bookidi va fi id-ul cartea bifata, pe rand din checklistBox
                            //Inregistrez in tabela imprumut
                            modificIstoric.Parameters.AddWithValue("@UserID", useridu);
                            modificIstoric.Parameters.AddWithValue("@BookID", bookidi);
                            modificIstoric.Parameters.AddWithValue("@returnDate", termenul.Value);
                            modificIstoric.ExecuteNonQuery();
                            modificIstoric.Parameters.Clear();
                            sterge_userbooks.Parameters.AddWithValue("@UserID", useridu);
                            sterge_userbooks.Parameters.AddWithValue("@BookID", bookidi);
                            sterge_userbooks.ExecuteNonQuery();
                            sterge_userbooks.Parameters.Clear();
                            //Scad numarl de carti disponibile pentru cartea imprumutat
                            //adaugCarti.Parameters.AddWithValue("@bookid", bookidi);
                            adaugCarti.Parameters.AddWithValue("@bookid", bookidi);
                            adaugCarti.ExecuteNonQuery();
                            adaugCarti.Parameters.Clear();
                        tranzactie.Commit();
                    catch (Exception ex)
                        tranzactie.Rollback();
                        MessageBox.Show(ex.Message);
                catch (Exception ex)
                    MessageBox.Show(ex.Message);
            public Imprumut()
                InitializeComponent();
                try
                    con.Open();
                catch (Exception ex)
                    MessageBox.Show(ex.Message);
                Completez_Combo_User();
                Completez_CheckList_Carti();
                Completez_CheckList_Cartires();
                //selecteaza_carti_utilizator();
                //  Initializez termenul din dateTimePicker la data de peste 15 zile fata de data sistemului
                termenul.Value = System.DateTime.Now.AddDays(15);
            private void imprumuta_Click(object sender, EventArgs e)
                Confirmare c = new Confirmare("Confirmati imprumutul?");
                DialogResult dr = c.ShowDialog();
                if (dr == DialogResult.Yes)
                    try
                        Inregistrez_imprumut_in_BD();
                        MessageBox.Show("Imprumutul a fost inregistrat");
                        //Dupa inregistrarea imprumutului o parte din carti nu mai sunt disponibile pentru imprumut
                        //Reincarc in CheckList cu Carti noua lista cu carti ramase dupa imprumut
                        //Pentru asta "resetez" datele din dataTable cartiT (sursa pentru carti.DataSource)
                        CartiTabel.Clear();
                        adaptCarti.Fill(CartiTabel);
                        CartiImprumutateTabel.Clear();
                        adaptCartiImprumutate.Fill(CartiImprumutateTabel);
                    catch (Exception ex)
                        MessageBox.Show(ex.Message);
                if (dr == DialogResult.No)
                    MessageBox.Show("Imprumutul NU a fost inregistrat");
                    imp.ClearSelected();
                    //deselecteaza cartea selectat
                    foreach (int i in imp.CheckedIndices)
                        imp.SetItemChecked(i, false);
                    //debifeaza cartile bifate
                //if (imp.CheckedItems.Count > 0)
                //    //res.Items.Clear();
                //    foreach (string str in imp.CheckedItems)
                //        res.Items.Add(str);//adauga in partea cealalta, imprumuta
                //    while (imp.CheckedItems.Count > 0)
                //        imp.Items.Remove(imp.CheckedItems[0]);
            private void restituie_Click(object sender, EventArgs e)
                Confirmare r = new Confirmare("Confirmati restituirea?");
                DialogResult dr = r.ShowDialog();
                if (dr == DialogResult.Yes)
                    try
                        Inregistrez_restituire_in_BD();
                        MessageBox.Show("Restituirea a fost inregistrata");
                        //Dupa inregistrarea imprumutului o parte din carti nu mai sunt disponibile pentru imprumut
                        //Reincarc in CheckList cu Carti noua lista cu carti ramase dupa imprumut
                        //Pentru asta "resetez" datele din dataTable cartiT (sursa pentru carti.DataSource)
                        CartiTabel.Clear();
                        adaptCarti.Fill(CartiTabel);
                        CartiImprumutateTabel.Clear();
                        adaptCartiImprumutate.Fill(CartiImprumutateTabel);
                    catch (Exception ex)
                        MessageBox.Show(ex.Message);
                if (dr == DialogResult.No)
                    MessageBox.Show("Restituirea NU a fost inregistrata");
                    res.ClearSelected();
                    //deselecteaza cartea selectat
                    foreach (int i in imp.CheckedIndices)
                        res.SetItemChecked(i, false);
                    //debifeaza cartile bifate
                if (res.CheckedItems.Count > 0)
                    foreach (string str in res.CheckedItems)
                        imp.Items.Add(str);
                    while (res.CheckedItems.Count > 0)
                        res.Items.Remove(res.CheckedItems[0]);
            private void button2_Click(object sender, EventArgs e)
                con.Close();
                this.Close();
            //private void selecteaza_carti_utilizator()
            //    res.Items.Clear();
            //    MySqlCommand selectcart = new MySqlCommand("select title from books,userbooks where userbooks.userid='" + user.SelectedValue.ToString() + "' and userbooks.bookid=books.bookid", con);
            //    MySqlDataReader reader = selectcart.ExecuteReader();
            //    try
            //        while(reader.Read())
            //            res.Items.Add(reader["title"]);
            //    catch(Exception ex)
            //        MessageBox.Show(ex.Message);
            //    finally
            //        reader.Close();

    Hello Vincenzzo,
    This issue seems to be a window form UI implemented related issue, for this i suggest that you could ask it to the windows form forum:
    http://social.msdn.microsoft.com/Forums/windows/en-US/home?forum=winforms
    The current forum you posted to is used to discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I reorder songs in a playlist in the new itunes??? I can no longer just click and drag. When I click, it doesn't move!!!! Need help ASAP- trying to prepare for an aerobics class and need songs in a specific order!

    How do I reorder songs in a playlist in the new itunes??? I can no longer just click and drag. When I click, it doesn't move!!!! Need help ASAP- trying to prepare for an aerobics class and need songs in a specific order!

    Vera,
    Use View > View Options, and set 'Sort By" to "Manual Order."
    Then you will be able to drag-n-drop songs up and down the list.

  • ICal on the Mac doesn't sync to iPad and iPhone

    I'm syncing using iCloud. A calendar update on the iPhone will sync in iTunes but the sync only updates the iPad calendar. iCal on the Mac doesn't update to the newer iPhone calendar events. I also tried it by hooking the iPad directly to the Mac via the cable, and the newer events on the  iPad calendar (which had the new events transferred via sync from the iPhone) didn't transfer to iCal. On the Mac in iTunes, I have the calendar named "Home" checked, which is the same name as the calendars on the iPhone and iPad.
    How do you sync the Mac iCal to the iPhone and iPad calendars?

    The 'Home' calendar does not sync to iCloud, only the iCloud calendar does that.
    In the iCloud control panel have you turned calendar sync on? and are you seeing the iCloud calendar in iCal?, all calendars in the 'On my Mac' group are local, they do not sync.
    Also, check in iCal>Preferences>Accounts, to ensure that iCloud is subscribed to in iCal:

  • Itunes 10.1.2.17 upgrade killed my sound, music scroll bar doesn't move

    After upgrading to 10.1.2.17 on 1/30/2011 all sound ceased on my system. Updated the sound card driver to no avail. No conflict in compatability mode. When song selected in iTunes, the play bar doesn't move nor do movies have audio in quicktime. There is no sound in any program.
    Thoughts?

    Katrina, Thank you for your reply. I followed the directions from your link about using msconfig, and did what it said. Upon started I loaded iTunes without Bonjour running and playing songs worked fine. No delay and going from track to track was quick. So then I quit iTunes and started Bonjour like it said and it still ran fine. So it must be something I deselected in msconfig. I'll have to go back and look.
    There were 3 temp files before, but I did another fresh install of iTunes and now it has only one temp file. Called Temp File.tmp. Oh I just looked now and it has another one, oops it just disappeared again. The time stamp on it for it's Modified date is Sunday February 13, 2011 5:28pm and it's Accessed time is Yesterday, February 28, 2001 11:25am, and it's Created time is Yesterday February 28, 2011 11:25am.
    I use Microsoft Security Essentials for my antivirus and under it's ignore files I told it to ignore the temp file as well as the itunes library files. But was still having trouble after doing that. Using my Apple TV 2, music still played fast also without any delay. I have a fairly large library though. 140GB or so of Music, 80Gb of Movies and 10GB of Podcasts. So I thought maybe since I've been adding more Movies it caused iTunes to slow down.
    I'll try rebooting now by adding Apple Mobile Device to startup and see if anything changes since it's still stopped. iPod Service is running as well as bonjour and all is ok.
    Since when I did a fresh intall of windows all I did was install iTunes, so the only other startup things I have are 3 from Intel called common user interface, my microsoft security client and Keepass my password program. Only quick time and itunes are enabled in startup right now. So I will go back and add each of those things and see which one is causing the problem. Thanks again.

  • Scanner HP G2410 doesn't work and ligth doesn't move

    I'm using the scanner G2410 in windows XP 32-bits, but suddenly it doesn't work. When I trying to scan, a short time later it shows me a message that says the scanner is not find it, that restart my pc, wait 60 seconds and connect it again. Also the ligth doesn't move. In the end of the message shows me the error number:
     4,[(2,5,80004000b),(3,5,0)]
    Even I try it in a pc with windows 7 64-bits but the same result.
    Is my scan totally damaged? I will appreciate you help me.

    Hello caifan125,
    Welcome to the HP Support Forums!
    To get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial product. You can do this at Scanners.
    The support page for your product may be helpful in the meantime:
    I hope this helps!
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

Maybe you are looking for