Hi i have a machine with sharepoint 2010 server installed and
i have another machine with sharepoint foundation 2010 and vs 2010 ,
here can i connect to my sharepoint server 2010 machine from sharepoint foundation 2010 machine.
means using vs 2010 can i use sharepoint server 2010 API
If you want to use the references of SharePoint 2010, you need to copy the dlls from the 14/ISAPI hive of the SarePoint 2010 server to your another server installed VS 2010, and you need to deploy the .wsp file manually using command line, here are some useful posts you can check, note, please back up your files before any modification,
TechNet Community Support
i followed the same steps from first link but its not worked for me.
but like i used sharepoint designer in client machine i able to to open all sites, lits ,workflows ,masterpages
i need also for vs 2010 i need to modify ,develop sharepoint server 2010 from vs 2010 in client machine