|
I haven't been able to find any classes that do Secure Shell in .NET or anything else for that matter. I have found various projects on SourceForge and other OpenSource websites. You can try this[^] Java example for code ideas.
RageInTheMachine9532
|
|
|
|
|
Why not just establish an ssh tunnel and send RPC commands to the local port, which is presumably forwarded to the remote RPC port. If the client has the ssh client install, you could simply invoke the command with the necessary parameters using the Process class.
There is one SSH client for .NET that I was able to find with a simple search on google for "SSH .NET": http://www.nsoftware.com/products/ipworksssh.aspx[^]. It's from IP*Works which, IMO, makes pretty good libraries.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I am working an n-Tier application, and I have a component which is a representation of database tables (just collections of structs), I use this component as a container of data that can be sent between the tiers.
When I try to use an adding function on the server, I put the data from the client into one struct and send it as parameter to the server function but I am getting the following message
"Because of the security restrictions, the type Entities.Suppliers cannot be accessed"
as long as I try to get a list of the suppliers (returns a datatable) I have no problem.
|
|
|
|
|
Hello,
I'm fairly new to C# and I've got a syntax question. I've seen some C# syntax on the CP located above some function declorations, syntax like [sometext("more text")]. What does that mean? Where can I find documentation describing this?
An example of this syntax would be [DllImport("wininet.dll")], which I understand tells the compiler that you're importing the wininet.dll and are going to use a function in that dll.
Thanks!
|
|
|
|
|
These are called attributes. Attributes are used to further define or enhance certain metadata.
Attribute classes in .Net always end with "Attribute", although that part of the class name doesn't have to be provided when applying the attribute in code. For instance, if you wanted to look up information on DllImport in the MSDN library, you would actually look for the DllImportAttribute class.
For more information and a better starting point on attributes, try starting with this page in the MSDN library:
Introduction to Attributes[^]
Grim (aka Toby) MCDBA, MCSD, MCP+SB
|
|
|
|
|
Either in the Visual Studio Help or on MSDN here[^].
You can also search for keywords on MSDN.
RageInTheMachine9532
|
|
|
|
|
Any ideas on how to go about serializing a winform using C#.
|
|
|
|
|
Easy enough. Forms aren't serializable...
RageInTheMachine9532
|
|
|
|
|
As said, the Form class isn't serializable. But it should be enough to serialize step by step the most important properties like Size and Font.
|
|
|
|
|
...or extend Form and attribute the class with [Serializable] . By default, all private and protected fields are serialized if they themselves are serializable. If you want more control on how your class is serialized, implement the ISerializable interface. More information about the SerializableAttribute class and ISerializable interface can be found in the .NET Framework SDK documentation.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
hi
i have a problem accessin the arraylist i made in a form by another form as i had to make static array and when i put data in it in for loop it just saves the last data the loop put what can i do?
thanx
|
|
|
|
|
A static array exists only once. Anything you do to it will reflect elsewhere. Make it non static so that each instance has it's own array.
If you are using a form, try calling the array from a non static method. You are probably trying to read it from main.
Cata
|
|
|
|
|
thanx
but i don't need that each instance have its own array as i need the data from the array that i put in the 1rst form in the second to do changes in it then i need the changed array in the 3rd form
|
|
|
|
|
Ok, you could always use the array.clone() method, to copy it into a local array, and then apply the changes there. THEN forward the modified array.
This will keep the origional array unchanged, but enable you to manipulate a modified version.
|
|
|
|
|
You might want to post some code samples of your array and what your doing to modify it.
RageInTheMachine9532
|
|
|
|
|
((Offices)(OfficesNames[i])).OfficeAtt= new ArrayList(AllNodes);
Offices ->class
OfficesNames->array of object of offices
officeAtt->arraylist have object of another class called attributes
this line of code to intialize the arraylist of attributes of each office
for(int i=0;i
|
|
|
|
|
When you enumerate a collection or list (anything that implements IEnumerable , it is documented behavior to throw an exception. This is to ensure that changes to the list or collection aren't skipped when looping. You can either clone the list or collection or use an iterative loop (for , as opposed to foreach ).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
hello dave,
remeber me?? today i am asking about keystrokes in every applications...i want to trace keystrokes and specify in which application were they typed..wait ur reply...give me hint in which way to search..thanks in advance
|
|
|
|
|
|
You talking about capturing keystroke and logging what is typed and in which application they are typed?
Since your requirements include loggin WHICH application recieves the keyboard message, you've added a new layer of complexity to your app. You can't simply use just the keyboard hooks function anymore since you will never receive any notification of where the message is going. To get that, you also have to use the CBTProc callback function (or hook) to keep track of the window that's currently activated. You have to get the name of the window using the window handle that's passed in during certain events that get sent through your CBTProc procedure.
RageInTheMachine9532
|
|
|
|
|
I m so and feeling bkz i m
CommandBarComboBox
i m making Add ins for outlook .I have added a ControlEdit button in
CommandBar collection using the following code...
oEdit = (JOffice.CommandBarComboBox)
oCommandBar.Controls.Add(JOffice.MsoControlType.msoControlEdit,oMissing,oM
issing,oMissing,oMissing);
oEdit.BeginGroup = true;
oEdit.Text = "Search";
oEdit.Tag="URL";
oEdit.Caption="Search Word";
now the problem is when i m fatching the value from edit box ,it is not
returning me the value.I m not able to get the value which i have
written inside the edit box .the code i have written for this is following
private void oButton1_Click(JOffice.CommandBarButton Ctrl, ref bool
Cancel)
{
try
{
CommandBarComboBox tempCom;
tempCom =
(CommandBarComboBox)oCommandBar.FindControl(JOffice.MsoControlType.msoCont
rolEdit, "oEdit", "URL", false, false);
Sval=tempCom.Text;
System.Windows.Forms.MessageBox.Show(Sval); // here no value
Test1.JOutLookLib.SearchURL("http://www.google.co.in/search?q="
+Sval+"+&ie=UTF-8&oe=UTF-8&hl=en&btnG=Google+Search&meta=");
}
->NOTE : JOffice is an Alias for Namespace which I have included in My Code
when i write any value inside the edit box and click the button the new
value is auto clears and again the old value appears .I don't know how i
can solve it .I need the new values and it is returning old values .,...
mean it is not refreshing .
Please solve it it is very .....
Thanks for Help and ur time
|
|
|
|
|
I've just finish my project so I want to create a setup project but i do not known how to include the .NET Framework, Crystal Report into setup project.
Please help me.
Thanks
Mr Duc Linh Nguyen
|
|
|
|
|
You can't include the .NET Framework - it must be bootstrapped. Read Redistributing the .NET Framework[^] in the .NET Framework SDK for more information, including how to get example source and use that to bootstrap (i.e., run installations required for your installation PRIOR to running your installation).
To install the Crystal Reports managed runtime (includes unmanaged code as well), read Deploying Crystal Reports in .NET Applications[^]. There are four merge modules (.msm) that you include with your Windows Installer setup project. These are merged (hence the name) with the installer package when built. The regwiz MSM requires a license key that you can get for free by registering the Crystal Reports designer when you use it for the first time. This would've been emailed to you. For Windows Forms client applications, you have royalty-free redistribution rights. Read Incorporating Reports into Applications[^] for more information about licensing and different scenarios.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
|
i do not know how to catch error in data grid cell. this is the code i writed:
private void ColumnChangingHandler(object sender,DataColumnChangeEventArgs args)<br />
{<br />
switch(args.Column.ColumnName)<br />
{<br />
case "accID":<br />
{<br />
DataGridCell oldCell= new DataGridCell();<br />
string values=args.ProposedValue.ToString();<br />
if(!this.IsNumber(values))<br />
{<br />
MessageBox.Show("value must be number");<br />
}<br />
else<br />
if(!IsLengh(values))<br />
{<br />
MessageBox.Show("It must be 4 characters");<br />
}<br />
break;<br />
}<br />
..............................<br />
after catch error i want to return the focus on error cell.
Please help me as possible as you can.
Thanks.
Mr Duc Linh Nguyen
|
|
|
|