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.

Similar Messages

  • My itunes player won't play my songs. I hit play, the button switches to pause, but it doesn't play and bar doesn't move. Any ideas?

    My itunes player won't play my songs. I hit play, the button switches to pause, but it doesn't play and bar doesn't move. Any ideas?

    Hey, did you get any help on this? I'm having the same issue.

  • 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!

  • Running OpenScript Application doesn't load the forms

    Hi,
    I'm new using OpenScript and I'm facing a problem.
    I need to create scripts to test a site that implement some Oracle Forms, I can open IE and use the site without problems, BUT when I run OpenScript to create the script, the application doesn't load the forms!!!
    After many attempts I found that someone changed the jvm.dll file of the JInitiator, I changed it again to the installation one, and I was able to see the form and recording the script, but when I play the script doesn't load the form!!!!
    If I take a look to the screenshots, I can see the forms I recorded.
    Now the change I did on the JInitiator only works from time to time!
    Finally when I'm using the site and it doesn't load the forms I see this error on the bottom of the page: "error: java.lang.NoClassDefFoundError: Activator"
    Anyone have an idea of what is happen and how to fix it?
    These are the versions I'm using:
    OpenScrip: 9.2.0.0 Production - Build ID: 2.5.0.0370
    JInitiator: 1.3.1.29
    IE: 7.0.5730.131C
    Edited by: Zyko on Jan 24, 2011 7:13 AM

    A screen shot from Mission Control might be enlightening.  If you can see the application window in Mission Control, what happens if you move it from one desktop to another? Or what happens if you eliminate one of the desktops?

  • Application doesn't load in any desktop

    Hi,
    I am using Yosemite for a while. One application, RSA securID token application, however is behaving oddly. It worked fine until yesterday, when without any reason, every time I started it from the dock, I can see it at the Mission Control but doesn't appear in any of my 2 desktops. I've tried launching it form the Launchpad, but same behavior. I also run this command: rm ~/Library/Preferences/com.apple.spaces.plist; killall Dock; and nothing changed.
    I hope someone can help me. Thanks

    A screen shot from Mission Control might be enlightening.  If you can see the application window in Mission Control, what happens if you move it from one desktop to another? Or what happens if you eliminate one of the desktops?

  • Any way to Lock the Decoration Free Label in place so that the Clean Up Diagram process doesn't move it soemplace unreasonable?

    Any way to Lock the Decoration Free Label in place so that the Clean Up Diagram process doesn't move it soemplace unreasonable? The Clean Up Diagram process moves things to very strange places and often makes the diagram more complicated than it needs to be.
    There should be a way to lock a Decoration Free Label in a location that the Clean Up Diagram will not move it somewhere else.
    Is there such a feature?
    How do you get your Decorations to stay where you put them even after Clean Up Diagram?

    Hey dbaechtel,
    There is a way to do this however you will need to put your Decoration Free Label within a structure.  Check out the following KnowledgeBase article below for more information:
    KnowledgeBase 4TKECSYP: Block Diagram Cleanup Tool Moves Decorations
    Best,
    Chris LS
    National Instruments
    Applications Engineer
    Visit ni.com/gettingstarted for step-by-step help in setting up your system.

  • Pxi: embedded application doesn't launch at boot up

    I selected the "Launch application at boot-up" in the "Network options/RT Target:Miscellaneous" menu before creating my application but it still doesn't launch before I open the application on a local machine (the application in the PXI seems to "wake up" then). I checked that the embedded Labview RT is launching at the PXI boot-up, and that the startup.exe has been updated correctly (I checked it with a ftp client).
    Any idea about why the application doesn't launch ?

    hi there
    - first make sure your app dosn't wait for any kind of input.
    - there are some hardware - switches to avoid the execution of startup.exe. see the documentation of your PXI-system (for PXI-8186 see page 2-12)
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Delay occurs when switching between applications

    System worked fine before installing Mavericks.  Now each time I switch been applications there is a 5-10 sec delay before the new application responds.  The applications don't actually hang, the system does catch up, but it makes the system unusable.
    For example, I wil have Outlook 2011 up on one monitor and Safari up on another monitor and each application will work fine and be responsive.  But when I click between the two open applications, 5-10 sec delay occurs.  During the delay, the first application continues to be responsive (will respond to mouse clicks, can type, can close, can move/resize, etc.) but the second application (the one that I'm clicking to) won't respond to anything. Evenuntaly, the system catches up and the second application becomes responsive, but the same thing occurs when switching back to the original application.
    So far, it seems to impact all applications - Office 2011, evernote, safari, webex, adobe reader, system perferences, and finder.
    Verified Disk Permissions and vefied disk - no improvement.
    Rebooted the system - no improvement.
    Ensured spotlight indexing wasn't running.
    Any suggestions?

    Apple was able to help fix this.  From what I understood, they had me delete the Apple settings files and then the operating system would recreate them - sorry, didn't note the specific directories they said to delete.  They said it was an issue caused by installing the new OS.  Deleting the files fixed the issue.

  • The Videos application doesn't work in my ipod touch

    The Videos application doesn't work and movies cannot be played on both my 3rd and 4th generation ipod touches

    Make an appointment at the Genius Bar of an Apple store or contact AppleCare and get a replacement set of headphones under your warranty.

  • Numbers application on Ipad, the 'VALUE' function doesn't seem to work correctly on the string/text I want to convert to a value.

    Hi, I would appreciate if someone could assist with the following.  On the Numbers application on my Ipad, the 'VALUE' function doesn't seem to work correctly on the string/text which I want to convert to a value.  It gives me an error (in my example: 'VALUE requires a string specifying a number, but found "-14308.65" instead.'
    The exact same document (if converted from Numbers to excel), displays the converted string/text correctly in MS Excel as a value though.

    click on the cell then in the formula bar and use the arrow keys to move the cursor to see if there are any other characters in the cell that could confuse the function.  Also make sure the localization for your country is correct in System Prefs.
    Maybe copy the EXACT contents of the cell and post here.

  • Web camera application doesn't auto hide on my Satellite A660

    Hi
    Just getting started with my Satellite A660. The Web Camera Application doesn't want to autohide at the edges of the screen.
    The only way I can get it off the screen is to close it. Can anyone suggest a solution to make it autohide?
    thanks,
    Simon.

    >.... all you have to do is move the app to either side of the screen and it'll hide itself.
    > I don't know why someone wouldn't go on to explain after pointing out the obvious solution as clicking on "Auto Hide."
    As far as I know, by default, preinstalled application and small menu are already on the side (left) and with enabled Auto Hide so the question is why this doesnt work.
    Has used moved the menu in the middle on the screen or what?

  • Switching between applications using commands, not clicks

    Using Automator, how do I switch between applications using commands, not clicking on windows? I want to copy from Safari and paste into FileMaker, along with performing other tasks. The applications are not important; it could be any. I just can't figure out how to call an application to the front using Automator.

    Automator doesn't bring applications to the front, it just uses them to perform the actions. For example, the Get Text from Webpage action uses Safari to perform it's function. I don't have FileMaker to see what actions it provides, but they would most likely do their thing using FileMaker's scripting dictionary without bringing the application to the front.

  • Modified CRM application doesn't deployed in PROD server.

    Hello SDN!
    We have DEV and PROD runtime systems for CRM developing. Our custom CRM application successfully deployed to the DEV server many times. But transport to the PROD server hasn't any effect - our application doesn't exists in PROD server.
    In CMS we assemble CRM SCs (SAP-CRMAPP, SAP-CRMDIC, SAP-CRMWEB, SAP-SHRAPP, CUSTCRMPRJ, SAP-SHRWEB), approve it and finally import in in "Production" tab. There was no error during this process.
    I don't want post whole SDM log since it' huge, here is a begin:
    20081014132849 Info   :Starting Step SDM-deploy at 2008-10-14 13:28:49.0325 +6:00
    20081014132849 Info   :deployment of E:\usr\sap\JTrans\CMS\archives\sap.com~SAP-SHRAPP~SMD_CRM502_C~20081014064901.sca is skipped, because it belongs to the software component (sap.com / SAP-SHRAPP)
    20081014132849 Info   :start deployment of archives:http://asu-03-d05:50018
    20081014133737 Info   :connected to deploytool via sdm protocol
    20081014133737 Info   :The following archives will be deployed (on http://asu-03-d05:50018)
    20081014133737 Info   :E:\usr\sap\JTrans\CMS\archives\sap.com~SAP-CRMAPP~SMD_CRM502_C~20081014064154.sca
    20081014133737 Info   :E:\usr\sap\JTrans\CMS\archives\sap.com~SAP-CRMDIC~SMD_CRM502_C~20081014064153.sca
    20081014133737 Info   :starting deployment
    20081014133737 Info   :deployment finished
    20081014133737 Info   :Deploy log:
    20081014133737 Info   :
    20081014133737 Info   :
    20081014133737 Info   :
    20081014133737 Info   :
    20081014133737 Info   :
    20081014133737 Info   :
    20081014133737 Info   :
    20081014133737 Info   :
    20081014133737 Info   :Oct 14, 2008 1:28:58 PM  Info: -------------------------- Starting deployment ------------------------
    20081014133737 Info   :Oct 14, 2008 1:28:58 PM  Info: Error handling strategy: OnErrorStop
    20081014133737 Info   :Oct 14, 2008 1:28:58 PM  Info: Prerequisite error handling strategy: OnPrerequisiteErrorStop
    20081014133737 Info   :Oct 14, 2008 1:28:58 PM  Info: Update strategy: UpdateAllVersions
    20081014133737 Info   :Oct 14, 2008 1:28:58 PM  Info: Starting deployment prerequisites:
    20081014133737 Info   :Oct 14, 2008 1:28:59 PM  Info: Loading selected archives...
    and end of log:
    20081014133737 Info   :Oct 14, 2008 1:37:33 PM  Info: J2EE Engine is in same state (online/offline) as it has been before this deployment process.
    20081014133737 Info   :Oct 14, 2008 1:37:33 PM  Info: ----------------------- Deployment was successful ---------------------
    20081014133737 Info   :end of log
    20081014133737 Info   :RC of deployment: 0
    20081014133737 Info   :The cvers update of sap.com_CUSTCRMPRJ.SMD_CRM502_C.20081014071626 cannot be performed, because thes JSPM data is not configured (no engine URL/user or password).
    20081014133737 Info   :Step SDM-deploy ended with result 'success' at 2008-10-14 13:37:37.0117 +6:00
    How to deploy properly our application?
    Regards, Lev

    Hi Lev,
    Please ensure that you have mainted the j2ee engine hostname, port number and userid/password details for deployment onto the server.
    The same can be checked in CMS --> Landscape configurator -->Runtime systems tab.
    Rgards,
    Thulasi

  • 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.

Maybe you are looking for

  • Help needed deleting corrupted file

    G'day, I have a corrupted file on my hard disk. It is a Vault backup file created by Aperture. Whenever I do anything with the file (e.g., try to unlock it, try to view info, try to open it), the o/s immediately tells me that I have to manually turn

  • Pdf attachments from mailing list not in mail

    Hi, I receive email from a phpList server in html format. Any attached PDF files are missing from Apple Mail (version 4.4). - no attachment, no inline - just disappeared into the ether. If I check the mail using an alternative POP client (e.g. Eudora

  • Error# -2095

    I need help, have upgraded to itunes 6, with quicktime 6.5 and now everytime I try to open either, i get an error message ERROR#-2095. I have tried to upgrade quicktime, but keep getting told that the old version cannot be removed and the upgrade jus

  • Problem converting .doc with "display_urn:schemas-microsoft-com:office:office" properties

    PDF Generator cannot convert a simple .doc document when there are properties with a name like "display_urn:schemas-microsoft-com:office:office#Editor". I think this is a property that some versions of MS Word add automatically. If you try to convert

  • Where to give the Employees confirmation date....

    Hi experts... Here im facing a problem when running a z report. For some employees the system is not picking the confirmation dates. Here im checking the contract elements infotype 0016..here everything is fine as 12 months... Why the system is not p