Just some thoughts for Win Users.

I am not an expert but just a regular forum brouser.
Is your system mother board is designed for Win XP? Yes,
then that is what you have got max user RAM 3GB. Your system board may accept two 2GB sticks but the system will only use a max of 3GB. Do not overclock your processor or activate the /3GB option, will not help you on PS or LR but may only cause problems.
You only get what you pay for no more, no less.
Win Vista same advice use what the system is designed for.
Win 7, make sure your motherboard is designed for the system and go for the full install and not the upgrade. If not be prepared to trouble shoot to get the performance optimized.
Do not expect Lightroom to sort out you OS problems.

Lots of good replies here; this is typically an OS issue, not an architecture issue. As long as the motherboard and CPU combo supports the (typically -- few of us run the Intel 64-bit server architecture) "amd64" architecture the 64-bit versions of the OS should work fine to see a "flat" (well, flat enough for Windows, which is rather lumpy in its approach to memory) 64-bit memory space.
With two caveats:
1. The OS still determines how much memory you see, and Microsoft has tweaked different versions and releases to see varying amounts of physical memory. Some see this as a defect.  See here: http://msdn.microsoft.com/en-us/library/aa366778(VS.85).aspx
2. Not all 64-bit operating systems are "64-bit clean." As far as I know, Windows 7 is the only 64-bit clean OS Microsoft has released. That is, the various pieces that make up an OS (kernel, services, driver, &etc.) are all 64-bit, with some of those pieces designed to handle 32-bit addressing if they have to.
(1) may affect user applications like Lr. (2) will almost certainly not, but it will affect overall system performance.
Lr does not require 64-bit to work (I assume it will in a future release -- the writing is on the wall) but the right architecture will allow you to run applications with larger address spaces, which means more resources and more efficient use of those resources.
Ironically, some folks will note that 64-bit has meant some things have gotten much larger. The process stack, threads and other internals have grown much larger with 64-bit platforms. This can sometimes be seen as a larger application footprint and even, in some cases, slower access to some system resources for 64-bit applications. These are extreme cases, however, and the best thing to do is run modest hardware that puts the emphasis on generally efficient processor and memory architecture and an OS that can take advantage of the physical memory you provide.
The point of the OP is well taken, however. Your "64-bit" OS as installed on your hardware may not, in fact, be able to see anything more than 2-4Gb of your physical memory. Older releases and OEM installs are infamous for setting things up so that all you end up with is a moderately more expensive and slow 32-bit platform.
Buy a real copy of the OS and install it yourself with none of the taskbar garbage OEMs love to give you.  Make sure you can disable real-time anti-virus protection, or remove it altogether (practice safe computing and you won't need it.) If you purchased from an OEM like Dell, demand your OS media (the are supposed to sell you installation media with pre-installed systems) and install it yourself (or get your local Windows enthusiast to do it for you.) Take regular backups -- actually, take two regular backups; hard drive "bathtub curves" are getting shorter by the year, while the cost per Gb shrink monthly.
Lr is a demanding app, but nowhere as demanding as many. It will use as much of the physical memory the OS can offer under the right circumstances, but the OS can only ration so much to various processes until something gives. Just because Lr is lagging on your system does not make it the problem! An OS is an ecosystem, and the kernel does its best to ration out resources to running processes.  Hungry foreground processes will just suffer more obviously from strained resources.

Similar Messages

  • Just some thoughts

    Just some thoughts.
    Adobe says that piracy is one of the reasons for going to the cloud.  CC has to verify the subscription periodically why not add that process to the perpetual license for a nominal yearly fee.  On the other hand, why can't a user subscribe to CC for a month to get the latest version and then go on the web to get a crack?
    I also own, unless they go to a subscription, Elements 10.  Lots of functions that CS6 has for photo enhancements.  I found some plugins that really enhance Elements. e.g. ElementsXXL adds new menu items, icons, buttons, key shortcuts and dialogs, so they seamlessly integrate into the user interface of Photoshop Elements. ElementsXXL bridges the gap between Photoshop Elements and Photoshop and greatly enhances the image editing experience in Photoshop Elements.
    I am sure other plugins will appear to make Elements more like Photoshop.

    "Adobe says that piracy is one of the reasons for going to the cloud. CC has to verify the subscription periodically why not add that process to the perpetual license for a nominal yearly fee."
    Why on earth would anyone want to pay a "nominal yearly fee" for another nuisance created by Adobe.  They can already shut down perpetual license holder's software if they pull the plug on the activation servers.  Don't you know that their servers check our software now as it is?
    Just recently with the release of the CS2 software to previous owners, many people could no longer use their already-installed CS2 software because Adobe's CS2 servers were shut down.  What does that tell you?
    I'm not going the way of cruising the internet for cracks.  That's for disillusioned kids who think everything should be free.  When my CS6 software no longer works I'm going with another company.  Probably Corel for some of the programs.  CorelDRAW was always better than Illustrator anyway.  Industry standard doesn't always mean it's great.  It just means everyone is using it and they expect you to do as well.  Personally, I think Macromedia made better software before Adobe took them over and MM software was a lot cheaper.

  • Pages will not update, I plug in my user id and password and click update and it just keeps asking for my user id and password

    I have an update for 'Pages', however, when I put in my yser ID and password and click update I get routed back to the enter user ID and password screen.  It;s just a loop each time.  Any suggestions?

    Try de-authorising all computers associated with your iTunes account. It won't hurt since your computer can't play iTunes content anyway. Go to the iTunes Store. Click on your Apple ID and type in your password. There is a line item to de-authorise all. Click on that. Then go to Store>Authorise This Computer on iTunes.

  • Some Tips for Cablecard Users with HBO

    I have been using a cablecard with my Hauppauge DCR-2650 digital tuner and Windows Media Center on my Windows 7 PC for 3 months with no problems on any of the Prime HD channels. I just subscribed to HBO and was not able to access any of the HBO channels, SD or HD. The message "Subscription Required" would appear after a few seconds, along with a message saying I needed to obtain a subscription to HBO. After Live Chatting to 3 techs over 3 days, I was finally able to access the HBO channels. I'm not sure this solution is permanent, but this is what I did. First I updated the firmware and drivers for my Hauppauge device. Then when I Live Chatted with the technician, he performed a "manual cablecard validation". During this process he asked for my cablecard ID, the Host ID, the Data ID and the activation code. He had me switch channels from an HBO channel to a non-HBO channel, then back again. Voila! It worked. So if my HBO disappears in the future I'll be asking for a tech who knows how to perform a "manual cablecard validation".  Now I had my HBO channels in HD, but the picture was flickering a bit, enough to make it annoying to watch. After Googling "HBO HD flicker" I found that the problem was not with the cablecard or Fios, but with the graphics adapter settings. I have an integrated graphics chip on my PC, an Intel 3000 graphics chip. I opened the graphics properties page and in the "Media" category under "Image Enhancement Option" I turned off the "Adaptive Contrast Enhancement" feature. This fixed the flicker. Hopefully this post will help those few who are using a cablecard with their Home Theater PCs.

    hi,
      hardwork is the tip for completing the certification,do not believe in any bogus material read  tfin 52 book of siemens which is very helpful to clear the course
    regards,
    ram

  • ISE DNS Question For Guest Users

    Before I ask the question, let me explain our environment.
    We have an internal 5508 controller.  We also have a 5508 DMZ controller that acts as an anchor controller.  Guest traffic is piped to the DMZ controller which provides the DHCP address, and DNS server information.  The DNS that we provide is our ISP provider DNS server information, to our guest wireless users.  There's no need to provide them with our internal DNS server information, since they're only going to the internet.
    Here's my dilema.  We are now implementing the ISE appliances so that we can better control our guest users.  Currently, our guest SSID is wide open.  With the ISE, we're going to initially only do self-registration for guest users.  They will connect to our broadcasted SSID, when they connect to it, they will be presented with the guest portal.  There will be a link that allows them to go to a self-registration page.  The dilema is that the ISE appliances are a part of our internal 10.x.x.x network.  Since the guest users will have our ISP's DNS servers, our ISE devices will not be able to be found for the redirection to the portal.
    Would anyone have any suggestions on this?  I don't want to advertise our internal DNS servers to guest users.  Thanks for any help!

    I haven't tried this before but ISE does actually allow you to assign physical ports to the Guest HTTP portal. You can see this under Administration > Web Portal Management > General > Ports. Perhaps you can:
    1. Take a physical port from your appliance and connect it to the DMZ
    3. Give it an IP address that is resolvable from the public DNS server
    3. Assign that physical port only to the guest HTTP service
    On the other hand, you could also build a DNS server just for the guest users and stick in the DMZ :)
    Not sure if this helps but just some food for thought.
    Thank you for rating helpful posts! 

  • Windows 7 very slow logon, Waiting for the User Profile Service, winlogon event 6006

    Hello,
    Every so often one of our Windows 7 clients which is not normally having any delay at logon will take a very long time to login. This may be 10 or 20 minutes or up to an hour in some cases.
    Typically the event log will contain entries like
    The winlogon notification subscriber <Profiles> took 572 second(s) to handle the notification event (Logon).
    There is no further information available from Event Log Online Help, nor any additional detail as to why the logon event was so slow. During the delay the user will just see "Waiting for the User Profile Service" on their screen.
    We first started seeing this problem with Windows Vista and if anything the situation has not improved since then. It has never happened with any of our Windows XP users.
    We are currently planning a migration of computers to Windows 7 but stuff like this which has not been resolved in Windows over a 2 year period will stall that migration. The least improvement is to increase the event notification to give a lot more
    information on why the user profile processing has stalled.

    Hi,
    When did the issue begin to occur? Did it occur after installing certain application or applying certain policy?
    To troubleshoot the issue, please perform the following step.
    1. Restart the machine in Safe Mode with Networking to check whether the system can login quicker.
    2. Type “gpedit.msc” in Search box and press Enter. Navigate to the following location:
    Computer Configuration->Administrative Templates->System->Logon
    Please double click “Always wait for the network at computer startup and logon” policy and disable it.
    3. Perform a
    Clean Boot to check the result.
    Thanks,
    Novak

  • S205 :Sad with Lenovo Driver support for Win 8

    Sorry for my bad english, but I need to tell you my frustrating experience.
    Due to low cost new windows 8 OS 64bit, I buy a lincense for mine Lenovo S205, conforted with some new Driver updated for 8 on Lenovo site.
    I saw something strange in the Driver's page for ex. the wireless driver is called Cybertan\LiteOn and we have a Ralink RT 3090 wifi module.(or in some market Atheros AR9285)... Hummm realy strange.
    I cross my fingers, I pray god and I start downloadin ALL the driver and start upgrading my system.
    At restart I have my new Win8 64bit system and thank of god the most important driver (Ralink wifi) was autodetected and recognized by Win8  whitout install the strange Cybertan\LiteOn from Lenovo that doubt was working in a ralink device.
    But at this point strarts the big issues with the unrecognized devices, that tahnks of god were less than expected but drivers fron Lenovo site were all wrong !!!!! Yes wrong, it seems a joke but was the true, 
    I think,(to tell the true I'm sure) no one from Lenovo tech checked the drivers in a S205 models, and I can explain why with the above sad experience:
    - SOUND: windows only install generic HD drivers and the sound quality as expected was crappy. So I try the lenovo driver Conexant but it does not properly work, SmatAudio icon in the ControlPannel was not present, no conexant pannel to manage sound, and nothing changed, windows continue with is own generym Microsoft HD drivers. I remeber that Lenovo model U300S and U300E have the same soundcard I dowload their Conexant Win8 driver (with a different number so I hope it was teh latest) and my idea was great, the Conexant U300 driver works on my S205 lenovo and Win8 detect the conexant soundcard and SmartAudio is present and working. There is only a isse concerning SRS Sound that is present on my system but if I try to lounch nothing appens, so I think is not correctly working. But so far so god sound is better than before with generic MS drivers, but to do so I have to choose a different driver from a different Lenovo pc, not an easy step for a normal user.
    - OSD: on screen display (FN+F keys) in 7 they was insert in the Lenovo Energy Mnagement, so to works you need to instal it. I make the same in win 8 with the new Lenovo Energy Management provides by Lenovo site, Lenovo Energy Management is working but OSD no !!!!
    Windows 8 detect and show you in autonomy soud level and brightnes when you press FN+Arrow keys ant that are the most important but ALL the FN+F Keys are not showed on screen even if probably they are working (for ex. Fn+F6 correctly enabel1disable touchpad) but not icon showen on screen !! Well I can leave without OSD but once again seems Lenovo don't try EnergyManagement on a Win8 pc.
    - CARD READER: Windows detect and unknow device called USB CRW and I though correctly was the card reader, in fact I try a sd and win8 was not able to read it. So I install the Realtek CardReader downloaded from Lenovo site, It was extracted and installed but I don't know why the driver seems bugged, the pattern contains only some icon but not exe ord driver, in fact the Card reader even if I try the driver more times it was not decetced. I tryed the old Windows 7 driver for my S205 and thank of god it was working and now my cardreader is detected and working. Once angain the win8 driver provided by Lenovo fails and I need the oldest win 7 driver that maks the job.
    - TOUCHPAD: Synaptics touchpad was detected by windows 8 but all the basic features as the scrolling or 2 fingers was not working. So I try the Synaptics drivers provided by Lenovo and it was only for 32bit system even if is clearly showed as 32 and 64bit driver. The driver itself promp me that is not working on a 64bit system and i need to contact the producer :-(
    Hahahaha very hilarious so I have to download the driver from Synaptics server that is so slow that I need 2 hours to finaly have my touchpad driver. Once again an epic fail from lenovo site.
    CONCLUSION: Lenovo is the new n.1 pc producer in the world but it seems realy not professional when check his drivers and public it on the website. Could be s205 is the cheapest and not business line notebook but ... I am realy sad whit the way Lenovo put new drivers without any preventive control in the homesite driver's page.
    It seems it was a lottery, extracting a number and put the corresponding driver on the S205 drivers page :-(
    Sir this is not the good behaviour, is the bast way to loose users !!!! Very disappointed, very sad and I hope this post can help S205 users taht want use the new Windows 8 system to catch the correct solutions
    I hope too some Lenovo developers can read this, try win8 on a s205 notebook and solve all the problems, because even if I solve with my 20 years pc experience all the issue, still remais some problems as SRS Sound seems not working (if It can work on our system, but if it can't why put in on our s205 driver too) and no OSD for every FN keys working.
    There are not present some utility for win 8 as for example the CAPSLOCK keys utility that was present for 7 but not for 8 (I have to try if the older work on 8) or the Lenovo OneKey that seems not ready for 8..
    So far so good winodws 8 works great on S205 and is a good choice if you catch the correct drivers as I explain here.
    Hoping this help Lenovo not making the same mistakes in the future, and learn from their errors.
    Once angain sorry for my language mistake but I'm not English
    Hore this post can help in some case
    Bye

    Hi Romagnolo1973!
    Thank you for posting all the things you learned, and how you got your S205 working with Windows 8! Hopefully this will help others. 
    To be fair to Lenovo, they list Windows 8 as not supported on the S205.
    http://download.lenovo.com/express/WIN8-INDEX.html
    As you found, it is sometimes possible to work around the problems and get things working to your satisfaction!
    I don't work for Lenovo. I'm a crazy volunteer!

  • How do you limit TOC navigation for multiple users on one computer?

    If you have 5 Adobe Captivate 5.5. Projects linked together to play consecutively how can you set up a TOC so that each new user starts from the beginning  and can only go back to slides that the new user has viewed?  We have  the TOC set to Enable Navigation, Navigate Visited Slides Only, and View Status Flag. This is a required training video that will be taken by many users.  We need them to be able to go back to the sections that they already viewed but not be able to see the sections that others have already watched.  In other words, we don't want them to be able to advance ahead to the sections that the previous test takers have viewed.
    Message was edited by: DOLOnlineTrainers
    Problems:
    •     Remove the TOC and they have no navigation abilities to see something they may have missed
    •     Keep it in and the viewer can advance to parts they have not viewed as the previous user set the ability
    •     Put a back button in and they can only go back one at a time and have no ability to get back to where they were if they keep hitting back other than watch over
    •     Tried the clear button in TOC under status flag which clears the status flags yet it only works on one section at a time and does not clear all linked projects
    •     Is there something we are missing? Tried reading blogs and really can’t pinpoint problem

    To get each user to have a different experience when viewing the content, you need to have some way for each user to be uniquely identified, otherwise the browser has no way of knowing that THIS is not the same person that was looking at the content an hour ago.  The way this is normally achieved is by getting users to log in as a different profile. 
    There's no EASY way I can think of to achieve what you want WITHOUT users having different profiles.  You would need to get some custom HTML programming done by someone that basically mimicked separate browser sessions under the same login.  It's theoretically possible, but I've never been required to do anything like this.

  • How to create a parameter id for a user

    Can anyone tell me how to create a Parameter id. I want to set some parameters for a user for that need to have parameter id.
    Please tell me the steps to create the Parameter id.
    Kiran

    Hi Kiran,
    U can do this using the TCODE SU3.
    1. Goto SU3.
    2. Goto the parameters Tab.
    3. Provide the Parameter ID and Parameter Value.
    4. Save.
    Its done!!!..
    Cheers,
    Krithiga.
    ***Pls reward points if this is useful.

  • Define resource for Anonymous user in OES

    Hi all,,
    I am using wls-ssm.
    By default, OES protect all resources from our application.
    how to define some resources for anonymous user?
    With Regards,
    WP

    You can either define an OES policy to GRANT allusers group which includes anonymous or you can look at deploying this custom authenticator which will exclude WLS resources that typically rely on anonymous user:
    https://oes-sspi-providers.samplecode.oracle.com/

  • Thoughts on Win 7 Ultimate Install for House Party (around 10/10 or so)

    Hi everyone, 
    I am hosting a House Party for some friends and will get Win 7 Ultimate shipped to me on about 10/10/2009 --- I have a T61, 4GB RAM, Intel Core2Duo CPU T7300 @ 2 GHz --- I have a backup of my files and email, so I want to wipe the hard drive COMPLETELY --- If anyone has some suggestions for my best course of action, I would appreciate it... 
    Some considerations....
    1) I'll have the retail version of Win7 Ultimate about 10 days earlier than the official release but Lenovo won't have official drivers for Win 7 until 10/22/2009 --- 
    2) I really love how Lenovo has the recovery option and would pay to have that for my Win 7 install -- but, I don't know if that will be available or not --- any thoughts on whether we can purchase that after Win 7 is released?
    3) I don't mind wiping out the recovery/backup drive --- just need to know how to do it
    4) I have bookmarked the beta Win 7 driver page and can copy files to a flashdrive --- 
    So, any thoughts from the experts here on how best to wipe my current system, install the Win 7 Ultimate and the beta drives, etc., from Lenovo that are available on or about 10/10/2009 would be REALLY APPRECIATED ---
    Thanks!

    Nice to know that you are hosting a Launch party!.I am hosting one too 
    If you want to completely  wipe your HDD you can use secure data disposal from lenovo.download it from here 
    More information here 
    Cheers and regards,
    • » νιנαソѕαяα∂нι ѕαмανє∂αм ™ « •
    ●๋•کáŕádhí'ک díáŕý ツ
    I am a volunteer here. I don't work for Lenovo

  • How can I set the default home page in Firefox 4 for all users that login to a PC on a Win 7 PC?

    I work at a community college in upstate NY.
    We use Firefox as the default browser at our institution and we have always set the default homepage to be our homepage for all users that login to the PC. We had a procedure to to that that worked with Windows XP and FF 3 or earlier
    We would do the following:
    1. go to: c:\Documents and Settings\Administrator\Application Data\Mozilla\FireFox\Profiles\<profile_name>\prefs.js
    2. Add the line: user_pref (“browser.startup.homepage”,”http://www.genesee.edu”);
    3. Copy the Folder
    C:\Documents & Settings\Administrator\Application Data\Mozilla
    To
    C:\Documents & Settings\Default User\Application Data\Mozilla
    4. Restart the computer
    We're going to Win 7 and Firefox 4 and things seem to be different in terms of files and file structure. Does anyone know how to accomplish this?
    Thanks in advance.

    Making customisation from the default profile is generally considered poor practice and quite often doesn't work out as planned. (If you're interested in some more information on this, [http://mockbox.net/windows-7/227-customise-windows-7-default-profile.html see here] see here)
    This article should help you with developing and deploying your customised Firefox 4 installation (without touching the Windows 7 default user profile):
    http://mockbox.net/configmgr-sccm/174-install-and-configure-firefox-silently.html

  • Pro Tools convert to Logic Newbie some simple question for logic users

    Hey guys, I am a recent convert from Pro Tools! and There were just some simple questions I thought some of you may be able to help me out with. I am using Logic 9.1.1
    1) After I set up a multi timbral software instrument (in this case MOTU Symphonic Library) how do I set up midi channels to trigger the individual sounds in the instrument. (in pro tools I used to create a midi track then send an output of that track to that particular soft synth)
    2) How do I set up a and forgive my Pro Tools vocab but basically I want to set up a reverb channel on an aux track have it receive on a bus so I can send other tracks to that particular bus.
    Thanks for the insight and really looking forward to finally make use of all this ram! lol

    1) I have a nord stage and would like record via midi. In pro tools i would usually need to create a midi track with the output set the the nord and an audo aux track to hear it What would I do in order to record midi from my nord stage?
    To record, just select a non-audio track, hit record and play the keyboard. The notes will get recorded into a region.
    If you want to play it back to the Nord Stage as well, then it makes sense to set the Nord up as a MIDI device in your templates, so you can just add the Nord to a track and not worry about what MIDI ports it's on etc. Open the environment, create a New -> Instrument, called it "Nord Stage", set the MIDI port and MIDI channels it's on, and sav your template.
    Now, when you start a song, to sequence the Nord, you just assign the Nord instrument to a track (by for instance, right clicking on a track and choosing your Nord instrument from the list of environment obects that appears).
    2) The multi instrument trick is quick and easy its great but How would I do that manually?
    Lots of ways, look into your key commands, ther are all kinds of "Create track with same instrument", "Create track with next MIDI channel" and so on. There are too many ways to do this to quickly talk about here. In short, all tracks have an environment object assigned to them, whether it's an audio object, or a MIDI instrument object, and this determines where the data on the track goes.
    3) How do you set up midi so that it doen'ts overwrite notes when recording over them?
    Not sure I understand you here...

  • Some asset classes do not show up for a user in S_ALR_87011990

    Hi
    When the asset history sheet is run in S_ALR_87011990, a user is unable to display some asset classes in the report. This was referred to security team. They say that everything looks fine and nothing appears wrong for that user--roles and profiles ok etc.,. No worklists are being used and no variants are being used. No dynamic selections either.
    Can someone let me know why the user is unable to display some asset classes. Asset classes that the user is unable to display were created last year. Most users are able to display these asset classes in the report except this user.
    Please  help and provide some exact solution.
    Best wishes
    Rajmohan..

    Hi Rajmohan,
    most probably it is a authorization problem.
    Please compare the assets which are not shown with this user. It could be a cost center.
    regards Bernhard

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

Maybe you are looking for

  • Email and SMS alert issues

    My phone is the Blackberry Curve 8530 1. I have two e-mail accounts set up on my phone. One the one, the red * alert symbol always shows up on that email account's folder, but for the other one the red * alert symbol for new messages shows up on the

  • When opening adobe priemere elements 11 get incompatible display driver error message?

    have intel ( r ) hd graphics 2.1.0. build 8.15.10.2622---gone to intel display driver on my pc and it is up-to-date----is adoble elements not liking my current display driver on my pc and if so what can i do?

  • Urgent Suggestions needed for best way to solve the problm

    Hi Everybody, I am working on an application which has to graphically show the data in the database. We are using JSP for the front end (the view for the time being will be simple, with text boxes and frames and DHTML) and tomcat as the Server. The d

  • DW: Diff tools for Windows Users?

    Hi, I was making some changes to a few pages and saw the option to compare files. Then it said I needed a third-party diff tool in order to use this function. I went to preferences and saw where I could add this and started looking through the help f

  • I can't stand photo stream...help

    Hello, Now that photostream is on all of my devices, I can't figure out how it is supposed to work.  some of my photos are just under the photostream heading in iphoto, some are organized by date, and some are in both places.  How do I fix this.  can