|
sir
plz help me i have a lot of problem because i take the project of
VIDEO BASED SECURITY OVER IP it is the client server application means that we detect video frame from client site and then send to server in server we comparison and calculate the oldframe(calculated frames in client side) with the new frames and on the basis of this we generate the alarm plz help me in C#
Struggle calls a life ,but the rest calls a death.
|
|
|
|
|
Hi gurus,
How can I get the list of installed network adapters (hardware & virtuals) and get their informations? (IP address)
Can any one show me a sample code to do so?
Thanks.
Best regards.
There is no spoon.
|
|
|
|
|
Add a reference to the System.Management dll, which gives you access to WMI (Windows Management Instrumentation). WMI can give you the list of network adapters and IP addresses; MSDN has several good examples, I suggest you search there.
Any remotely useful information on my blog will be removed immediately.
Judah Himango
|
|
|
|
|
Hi~
A C# program calling a C++ dll to create a window using P/Invoke.
After the C# program was KILLED (not terminate the program normally), the window created by C++ dll still exist. I would like to ask how to clean up the C++ dll (process? or thread?) after the C# program is KILLED.
THanks~
|
|
|
|
|
Hello,
I am currently working on a Smart Device Application with a TabControl and four TabPages. I want to add a vertical Scrollbar in one TabPage. Does anybody know how I can realize that??
Best Regards
mathon
|
|
|
|
|
I tried it in that way: with the following lines in the constructor:
this.vScrollBar1.Maximum = tabPage1.Height + this.ClientSize.Height;
this.tabPage1.Controls.Add(this.vScrollBar1);
and the following EventHandler
private void vScrollBar1_ValueChanged(object sender, System.EventArgs e)
{
this.tabPage1.Top = -this.vScrollBar1.Value;
}
Unfortunately this does not work. Nobody an idea how it works to scroll within a tabpage of a Smart Device Application
regards
|
|
|
|
|
Can anybody tell me how to play a wav
theough a modem
Thanx
|
|
|
|
|
What kind of modem? Is it Telephony capable?
Are you talking a about so a person can hear it on the other end of the line or a computer?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Ever resolve this? I'm in the midst of applying working proofed wav functions but lacking a good choice for a good modem.
|
|
|
|
|
Hi ,
My project needs to create a folder broswer to allow user to choose folder path. however, I can find any build in control to do this.
I have found from MSDN, it has one called FolderNameEditor.FolderBrowser, inside System.Windows.Forms.Design namspace, but I still can't use it. My computer is using dotnet 1.0 verison. is it impossible to use this control ?
Does it only support for dotnet 1.1 or above??
One more, I would like to load current user desktop path, and MyDocument etc. to a tree, but how I can get these type of paths?
Thank you.
|
|
|
|
|
If you're not bound to the 1.0 Framework use the FolderBrowserDialog class which is supported in Version 1.1 of the Framework.
www.troschuetz.de
|
|
|
|
|
That's a UITypeEditor and is meant only for use at design-time.
As Stefan mentioned, if you can upgrade to the .NET 1.1 Framework (and remember they install side-by-side) you can use the FolderBrowserDialog . If you must support .NET 1.0 you'll need to P/Invoke SHBrowseForFolder or interop with the shell32.dll COM server. For both methods, there are articles here on CodeProject. I recommend searching for "SHBrowseForFolder" since P/Invoking that shell method would give you the most control with the smaller dependency.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Just for documentation sake (we should add this to the article):
[StructLayout(LayoutKind.Sequential)]
public struct BrowseInfo
{
public IntPtr hwndOwner;
public IntPtr pidlRoot;
[Out] public StringBuilder displayname;
public string title;
public int flags;
public BrowseCallBackProc callback;
public IntPtr lparam;
public int iImage;
}
[DllImport("shell32.dll", CharSet=CharSet.Auto)]
static extern IntPtr SHBrowseForFolder(ref BROWSEINFO lpbi);
- Nick Parker My Blog | My Articles
|
|
|
|
|
Thanks for the suggestions, Heath.
I still have one question, how I can get the user Desktop folder, MyDocument Folder etc. ?
I was tried to use Environment.GetFolderPath(); function, but the specialFolder Emun is not in namespace, is it also not supported in dotnet 1.0 version ?
I'm going to make my folder tree, but seems has no method to get the special folder. Do you have any suggestions? Thanks
|
|
|
|
|
Here is the situation, I have a windows form and I want to pass some info from the form to another one, so I thought about puting it in a global variable like in a session based application, how do I do so, and is this the best way to aproach the problem??? If not what should I do then, and how???
Thanks
Oakcool
|
|
|
|
|
Hmmm... I can smell spaghetti... can you?!
|
|
|
|
|
If you can pass the data directly - that would probably be better. However if you really need something like a what you are talking about you can declare a static Hashtable and store whatever you want in there.
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
There's no such thing as a "global" variable in the .NET Framework. But, you can use static classes to simulate such functionality. There is an article on MSDN, in the Smart Client Developer Center that describes such a technique. The example code is written in VB.NET, but it demonstrates the concepts and is easily converted to C#. Just look for the section header called "Global data in .NET".
Working with Multiple Forms in Visual Basic .NET: Upgrading to .NET[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks the article was exactly what I needed
Oakcool
|
|
|
|
|
Implement the singleton pattern using a static class:
public class MyGlobalClass
{
private MyGlobalClass()
{
// Init any local info
}
public readonly static Instance =
new MyGlobalClass();
private int someField;
public int someProperty
{
get { return someField; }
set { someField = value; }
}
}
Gary
While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named 'Manual.'
- Dilbert
|
|
|
|
|
were should i start, im still reading about neural networks and how to implement them, but how would i make it in a real-life situation, i would like to scan documents from my scanner, save them to a bitmap, and then get the text from it. I would like to expirement and this is just a project i am interested in doing..
|
|
|
|
|
There are some books on Amazon that talk at length about OCR. I've never seen useful info on the web, nor have I done it myself.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Hi, I have a question about the function SendInput from the Win32 API. Does it send the input to the active application? The documentation states that it puts it serially into the keyboard and mouse streams, but I am calling it as follows: with Notepad or Microsoft Word open
SendInput(1, ref input, Marshal.SizeOf(input));
where input is define as follows:
public struct INPUT
{
public int type;
public MOUSEINPUT mi;
public KEYBOARDINPUT ki;
}
I am getting the information to fill in the structs from another computer, and they are the same, but it does not actually send a keystroke. For example, if I type 'a' on computer 1, then it should SendInput 'a' on the second computer.
Thanks for your help.
Keith La Force
|
|
|
|
|
The SendInput API function only works on the local machine. SendInput sends keyboard and mouse message to whatever application has the input focus at the time. It will NOT inject input into a remote machine's message queues. There is no function that will do this for you.
In order to do something like this, you'll need to write two applications. One to receive and interpret commands and data on what to do (like posting keyboard messages and what keys to post), and a second app to send appropriate commands to tell the first app what to do.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi, I'm sorry for the confusion. The app that you describe is exactly what I have setup. I have the SendInput calls in the recieving application, which interprets the data from the sending application, and proceeds to call SendInput.
|
|
|
|