|
What exactly are you having problems with? If you don't know where to start, look at the System.DirectoryServices and System.DirectoryServices.ActiveDirectory namespaces and the DirectoryEntry and DirectorySearcher classes. If you have a specific area you're stuck on, please give us more details so we can help you.
|
|
|
|
|
Hi
In the article SNMP Library by zitun, the "testSet" function does not work as expected because you cannot change the name of a computer by a snmp request. Here's the message:
Error: SNMP: Variable does not exist; status: NoSuchName; index: 0
*** SNMP protocol error while processing <op>:
SNMP error status: NoSuchName
SNMP error index: 0
Error: SNMP: Variable does not exist; status: NoSuchName; index: 0
My problem is that I always get this error whenever I try to set a value in the printers on the network. There are 45 printers and all of them are Xerox - Phaser 4510. There's one in which the set command works: Lexmark T430. But this one isn't being shared like the others. My goal is to control the maximum number of printed pages by sector. If one exceeds the monthly limit then the printer must be blocked. The project is almost finished, but I'm stucked at this little set command.
I've already tested the program using the library from AdventNET but a similar message appears...
I'm afraid the solution is somewhat related to permissions on the network but this would be very strange, as I've looked a thousand times the configurations and everything is fine.
It's obvious impossible "the variable does not exist" because I CAN get the value!
-----------------
// A simple set
public static void snmpset(string hostName, string oid, string value)
{
SNMPDll.SNMPAgent agent = new SNMPDll.SNMPAgent(hostName);
SNMPDll.SNMPObject s = new SNMPDll.SNMPObject(oid);
agent.setValue(s, SNMPDll.SNMPOIDType.OctetString, value + "\0");
}
Thanks for your attention, Icaro.
|
|
|
|
|
Hello friends,
I want to keep a search option in my form. Which is consist of a combo and a text box.
The combo will contain different criteria on which the user will search. And in the text field the user will input the specific item. Suppose one wants to search things based on DepartmentId. So he will select departmentid from the combo box and he will input the departmentid number in the text box to see all result.
Now what i want to do is that whenever he selects departmentid from the combo box and suppose the first char he wrote in the text box is 1, what will happen whenever he press 1 all departmentid starts with 1 will appear in a pop-up type of somthing below so it becomes even more easier for him to select the exact departmentid. Now can anyone plzz help me?
|
|
|
|
|
Saiyed Alam wrote: Need Immediate Help
of COURSE you do.
Interesting spec. What have you tried ? Do you have any idea how to do this at all ? You've not told us what your data source is, but assuming it's a SQL database, how do *you* think you should go about this ? There's really only one way that I can see.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Yes sir It's a SQL Database. What I had in mind that in the key press event of that text box I will take the value of the text box and populate a new data set from the database in a popup. But I have never used any thing like popup and have no idea on it. So I need help on how to use popup.
|
|
|
|
|
OK, so now you're asking a specific question. I think a dialog with no border is your best way to create the sort of popup you will want. Just a modeless window.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thank u. It will help a lot.
|
|
|
|
|
This kind of depends on what your data source is. If it's a DataSet, then you could apply a filter that matches the criteria the user entered into the searchbox and display the DataSet in some kind of ComboBox, ListBox or whatever window type you like.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
pliz tell me name of exercise book in amazon website????
a lot of tnx
|
|
|
|
|
Amazon has an excellent search facility, and they let people write book reviews, so it's pretty easy to get an idea if most people loved a book or hated it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Next he'll ask about a tutorial on how to use Amazon search...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
My recommendation is "Visual C# 2005 Step By Step" published by Microsoft Press.
Regards
Guy
Continuous effort - not strength or intelligence - is the key to unlocking our potential.(Winston Churchill)
|
|
|
|
|
Hi,
I need to unzip and zip files using WinRAR in my C# application.
The unzip part is complete and 100% working but I'm not getting the zip function to work.
Below you see my zip function:
Process Unzip = new Process();
Unzip.StartInfo.Arguments = "x -p" + txtPassword.Text + " \"" + ZipFile + "\" \"" + outputDirectory + "\\temp\"";
Unzip.StartInfo.CreateNoWindow = false;
Unzip.StartInfo.FileName = rarName;
Unzip.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
Unzip.StartInfo.WorkingDirectory = rarDirectory;
Unzip.Start();
Unzip.WaitForExit();
Unzip.Close();
Unzip.Dispose();
To zip the files that are in the outputDirectory (C:\outputDirectory\temp) I have the same as the zip function.
Only the Atguments are different:
Zip.StartInfo.Arguments = "a \"" + Path.GetFileName(zipName) + "\" \"" + ZipFile + "\" \"" + newDir + "\"";
For some reason he is unzipping the files but is not creating a zip file.
Can anyone help me with this?
|
|
|
|
|
Are you passing correct parameters?
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Well something is wrong with the parameters I give....but I don't know what.
When I start debugging this line:
Zip.StartInfo.Arguments = "a \"" + Path.GetFileName(zipName) + "\" \"" + ZipFile + "\" \"" + newDir + "\"";
looks like:
a "DC2tempDir.zip" "C:\OutputDirectory\temp\P1010827.JPG" "C:\OutputDirectory\01\01.A\"
What I'm trying to do is creating a new zip file in "C:\OutputDirectory\01\01.A\" with the name "DC2tempDir.zip" .
The content of the zip file must be the .jpg file in the temp dir.
Is there something that I'm doing wrong here? (I'm using WinRAR btw.)
|
|
|
|
|
You only need two Parameters:
1. ZipFileName including destination directory
2. The file(s) you wish to zip including source directory.
Robert
|
|
|
|
|
Hi All, I have created one windows installer for my window Application using Asp.Net 2005 setup project.This installer adds an shortcut in the program menu. Now I want to add one more option in my Program Menu that will allow the user to uninstall the Window application.PLease tell me how to modify my installer so that it will add uninstallation option in the program menu.
Please help me in that.
Thanks
Akash Agarwal
|
|
|
|
|
To uninstall an application installed using Windows Installer, you invoke msiexec.exe with the /x option and the product code of the product you want to uninstall.
You can use the [SystemFolder] property to locate msiexec.exe, and your product's product code is available as the [ProductCode] property.
I'm not entirely sure if VS2005 will allow you to create shortcuts that point to files that you didn't install.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
i need exercise c# website, begginer until advance and with solution or exercise ebook, pliz tell me i need a lot of.
tnx
|
|
|
|
|
Buy a book.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
Hi guys
We have this exe file on the internet for the people to download, the problem is when somebody downloads the exe and tries to install it, the program asks them to download dot net 3.5 first. And the user is asked if he wants to download dotnet3.5 and when you click yes, you get a messagebox saying "downloading otnetfx.exe", followed by another messagebox saying download failed.
The only thing I have figured out is that it should be downloading "dotnetfx.exe" and not "otnetfx.exe". So there is a spelling mistake by a coder somewhere.
I have done a quicksearch of "otnetfx.exe" in the current project, but nothing came out of it.
So guys can anyone tell me where to find this code and how to fix it
|
|
|
|
|
humayunlalzad wrote: The only thing I have figured out is that it should be downloading "dotnetfx.exe" and not "otnetfx.exe".
Correct. You will need to change/correct the setup application to download the correct file.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
So where will I find this setup file, or how does it look like
|
|
|
|
|
If you aren't the original creator of the setup program that is being downloaded you will need to contact that company/person and have them fix it.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|