Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
QuestionFacebook like search textbox Pin
Jassim Rahma24-Jul-12 8:59
Jassim Rahma24-Jul-12 8:59 
AnswerRe: Facebook like search textbox Pin
Richard MacCutchan24-Jul-12 9:20
mveRichard MacCutchan24-Jul-12 9:20 
AnswerRe: Facebook like search textbox Pin
Ravi Bhavnani25-Jul-12 4:55
professionalRavi Bhavnani25-Jul-12 4:55 
Questionproblem using C# and Action Script3 api Pin
hsoft_project24-Jul-12 0:55
hsoft_project24-Jul-12 0:55 
AnswerRe: problem using C# and Action Script3 api Pin
fjdiewornncalwe24-Jul-12 3:44
professionalfjdiewornncalwe24-Jul-12 3:44 
Questionhow to create xml menu Pin
yankoon23-Jul-12 23:01
yankoon23-Jul-12 23:01 
AnswerRe: how to create xml menu Pin
_Amy24-Jul-12 2:52
professional_Amy24-Jul-12 2:52 
QuestionHow to get the installed printers' name from remote server? Pin
royhpr23-Jul-12 22:03
royhpr23-Jul-12 22:03 
This is something I'm doing:
<pre lang="c#">
private void GetPrinterInfo()
{
try
{
ConnectionOptions objConnection = new ConnectionOptions(); objConnection.Username = "TempAccount"; objConnection.Password = "jkkkllk"; objConnection.Authority = "ntlmdomain:Companydomain"; ManagementScope objScope = new ManagementScope("\\\\192.168.0.6 \\root\\cimv2", objConnection); objScope.Connect();
SelectQuery selectQuery = new SelectQuery(); selectQuery.QueryString = "Select * from win32_Printer"; ManagementObjectSearcher MOS = new ManagementObjectSearcher(objScope, selectQuery); ManagementObjectCollection MOC = MOS.Get(); foreach (ManagementObject mo in MOC) { cbbPrinters.Items.Add(mo["Name"].ToString().ToUpper());
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Exception Message", MessageBoxButtons.OK, MessageBoxIcon.Error); Logger.LogError("ucSysParameter", "GetPrinterInfo", ex.Message);
}
}


I keeps getting error message "The RPC Server is unavailable. (Exception from HRESULT: 0x800706BA)". Can anyone help? Thanks!
AnswerRe: How to get the installed printers' name from remote server? Pin
Eddy Vluggen24-Jul-12 0:16
professionalEddy Vluggen24-Jul-12 0:16 
AnswerRe: How to get the installed printers' name from remote server? Pin
Bernhard Hiller24-Jul-12 0:19
Bernhard Hiller24-Jul-12 0:19 
Questionwhat is recommended Pin
Tall joe23-Jul-12 20:34
Tall joe23-Jul-12 20:34 
AnswerRe: what is recommended Pin
OriginalGriff23-Jul-12 21:42
mveOriginalGriff23-Jul-12 21:42 
AnswerRe: what is recommended Pin
Keith Barrow24-Jul-12 1:56
professionalKeith Barrow24-Jul-12 1:56 
AnswerRe: what is recommended Pin
Abhinav S24-Jul-12 6:24
Abhinav S24-Jul-12 6:24 
Questionadd shortcut to recent start menu Pin
Jassim Rahma23-Jul-12 10:43
Jassim Rahma23-Jul-12 10:43 
AnswerRe: add shortcut to recent start menu Pin
Richard Andrew x6423-Jul-12 11:19
professionalRichard Andrew x6423-Jul-12 11:19 
GeneralB Pin
Akshay_8823-Jul-12 3:51
Akshay_8823-Jul-12 3:51 
AnswerRe: Is there any mobile software to read the generated barcode? Pin
Richard MacCutchan23-Jul-12 5:11
mveRichard MacCutchan23-Jul-12 5:11 
AnswerNot exactly an answer but Pin
Ennis Ray Lynch, Jr.23-Jul-12 7:01
Ennis Ray Lynch, Jr.23-Jul-12 7:01 
QuestionWrite Data to Linux Pin
yuvachandra23-Jul-12 2:33
yuvachandra23-Jul-12 2:33 
AnswerRe: Write Data to Linux Pin
Eddy Vluggen23-Jul-12 2:45
professionalEddy Vluggen23-Jul-12 2:45 
AnswerRe: Write Data to Linux Pin
jschell23-Jul-12 5:22
jschell23-Jul-12 5:22 
GeneralArtefacts in parallel image processing Pin
Kangerm00se23-Jul-12 1:47
Kangerm00se23-Jul-12 1:47 
AnswerRe: Artefacts in parallel image processing Pin
Luc Pattyn23-Jul-12 2:22
sitebuilderLuc Pattyn23-Jul-12 2:22 
GeneralRe: Artefacts in parallel image processing Pin
Kangerm00se23-Jul-12 2:49
Kangerm00se23-Jul-12 2:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.