|
if it can, I wouldnt know how to go about doing it, nor how to access that information
|
|
|
|
|
Cheat, Make your icon and rename it app.ico and place it in the project folder.
|
|
|
|
|
HA HA HA ha . Yes, thats exactly what I did. I couldn't figure out how to do the other suggestions, even the online ones. Also, I decided to turn each text file into its own seperate class . Very time consuming and increased the size of the program, but it worked. Thanks for all the help.
|
|
|
|
|
Hi,
I'm trying to activate a process on a remote machine and doing so successfuly. The only problem is that I' havn't figured out how to know when the process has ended.
here is an example of the code:
private void run_notepad(string machina)
> {
> ManagementOperationObserver observer = new
> ManagementOperationObserver();
> completionHandler.MyHandler completionHandlerObj = new
> completionHandler.MyHandler();
> observer.ObjectReady += new
> ObjectReadyEventHandler(completionHandlerObj.Done);
>
> string stringMachineName;
> string stringCommandLine;
> stringCommandLine="c:\\winnt\\notepad.exe";
> //Connect to the remote computer
> ConnectionOptions co = new ConnectionOptions();
> stringMachineName = machina;
> //get user and password
> if (machina!="")
> {
> co.Username = "aaa";
> co.Password = "******";
> }
> //Point to machine
> System.Management.ManagementScope ms = new
> System.Management.ManagementScope("\\\\" + stringMachineName +
> "\\root\\cimv2", co);
> //get process path
> ManagementPath path = new ManagementPath( "Win32_Process");
> //Get the object on which the method will be invoked
> ManagementClass processClass = new ManagementClass(ms,path,null);
> //Create an array containing all arguments for the method
> object[] methodArgs = {stringCommandLine, null, null, 0};
> //Execute the method
> processClass.InvokeMethod (observer, "Create", methodArgs);
>
anybody knows how to tell when the process exited?
Thanks,
Haim
|
|
|
|
|
can anyone guide me how to access .net webservice from my pocket pc that is ofcourse using .net compact framework. give a simple example of code. your quick response will be highly appreciated.
|
|
|
|
|
Just like you would in a Windows app. Add a web reference. I ran into some trouble once, where the client just threw some exception. Solved that by using a tool that generated a C# code file from the webservice.
|
|
|
|
|
hi,
We are doing a project on Live video conferencing in LAN.File is recoreded on a single PC but the actual thing must do is to send the data on a network.I m using directshow for this in which "IMediaControl Interface" is used for run and stop the file to record.But i need the actual data(streams).The question is:
1.How to get Audio & Video Stream data using Directshow?
2.How to send,replay this data on network?
plz reply me soon.
best regards
shumyla
|
|
|
|
|
Hi all,
I am developing a c# application and there are two version of .net Framework installed in my computer. They are <1.0> and <1.1> I want to know exactlly which .net framework I am using and how to choose a framework to run.
I can run my application successfully with the enviroment that <1.0> and <1.1> frame are installed together.But when I install my application onto anther computer which only <1.1> framework is installed.The applicaiton can not run as same as the previous one.I am wondering?
Any suggestions.Thanks in advance.
|
|
|
|
|
Unless you set up your app.config to target a specific framework version, the one with the highest number is the one you'll be using. But if you specifically target 1.1, then it will refuse to run unless 1.1 is installed, even if 1.0 is installed ( or 2.0 for that matter )
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
hello christian,
how to create a app.config and were to save it? in witch folder? if i have more projects in one soulution explorer should i create for any project own config file?
thanx for help
mirso
|
|
|
|
|
Each project should have an app.config file already, if not, just create a new config file from the add/new menu. Each project has a config file, and for a web app, you can have config files for multiple directories as well. I recommend using google to find some MSDN info on the subject.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hallo Christian,
thanx very mutch for help, i create an App.config file for every Project in my Solutionmap, but they dont work? This is the App.config file for any Projekt:
<xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<suportedRuntime version="v1.1.4322" />
<requiredRuntime imageVersion="v1.1.4322" version="v1.1.4322" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v1.1.4322">
in the *.msi is, when i open them with the notepad :
<xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<suportedRuntime version="v1.1.4322" />
<requiredRuntime imageVersion="v1.1.4322" version="v1.1.4322" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v1.0.3705"> // the old version from framework???
My App.config does not take changes?! What make i wrong????
With best regards
mirso
-- modified at 3:46 Thursday 8th September, 2005
|
|
|
|
|
Hello folks
Did anyone try to detect IP address change events? .NET Framework 2.0 has a class for this but I'm on 1.1 and trying to find out a way with WMI / SENS.
If anyone shed some light, I'll be glad
|
|
|
|
|
Demachina just released a new tool that exposes a large number of Device and Compact Framework statistics remotely using the standard windows performance monitor.
Get it at www.demachina.com/products/perfy
|
|
|
|
|
Cool - thanks for your act of goodwill.
Oh, wait. It's $50. In that case, pull your head in. If you want to advertise on this site, contact the people running it, and pay for your ads like everyone else.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
hi
i want to connect a property grid to a button and only show BackColor in this property grid but not with caption "BackColor" and instead of this i want to show for example "ColorButton"
when user changed this property like changing backcolor , color of button must be change.
i can declare my own property but i can't connect that to my button???
how can i do this ????
Best Regards
-------------
MkhProgrammer
|
|
|
|
|
Because all the properties of a control are visible in a Properties window by default you actually need to force the hiding of any that you don't want to appear. Create your own button class inherited from Button and add a public property called ColorButton that sets the BackColor on the base class.
To remove all the button properties from the PropertyGrid you need to override the properties of the base class and set their Browsable attribute to False. This attribute determines if the property will be displayed in a Properties window. You must import the System.ComponentModel namespace in order to use the Browsable attribute.
I hope that you are not so mad now...although it is a lot of code to hide all of the other properties.
If you are simply trying to create a color selection control of sorts check out The ColorPicker WinForms Control Revisited and do a search for others.
|
|
|
|
|
Hi,
Have anybody tried inheriting from CommonDialog class
I want to know, how to implement the RunDialog() function
in my derived class?
Thanks
|
|
|
|
|
Ive never done it but you could use Reflector to look how Microsofts developers did it
|
|
|
|
|
Hi Robert,
This is a good tool. (for the source code view)
I will try it.
Thanks.
Zor
|
|
|
|
|
Dear Sir/Madam,
I Karuna, Iam an MCA, I want the sourcecode for - connecting to the FTP server using VB.net and upload and download files from and to the FTP server using VB.net
Send me(kurasala3@yahoo.com) as early as possible,Please help me for my project
Thank you
yours sincerely
Karuna Das
|
|
|
|
|
I want to create an Access database on my PocketPC (WinCE4.2, PocketPC 2003 OS). Then using C# to populate tables, query tables, ...
From a simple search on Google.com I find that I must use ADOCE.NET but I didn't succeed to download it and also didn't see any control that I can use from Visual Studio 2003 (I created a project for Smart Mobile Device).
Is there any one has experiences doing such kind of work?
Best regards,
A. Riazi
|
|
|
|
|
I am trying to send mouse right click event thru SendInput API.
Its working on XP but not on longhorn.
Can anybody tell me why so?
Is there any other way to simulate mouse right click event on longhorn using win32 APIs or .net freamework classes?
Please Help !!!
|
|
|
|
|
Hi,
Here's the problem. We have an XP Embedded box that is mobile and goes in and out of Wireless (Cisco) coverage. Occasionally the box will roam from one Access Point to another and sometimes this causes a "LEAP Authentication" problem. That is, a bunch of dialog boxes pop up and the user has to click "OK" and re-enter their network password.
Now I've successfully implemented a Windows Service in C# that will call FindWindow() and SendDlgItemMessage() etc to do all the work; testing on my laptop while I'm logged on has made me a happy camper. Note that it is very similar to the article here:
Using P/Invoke to Automate Database Signon
The biggest problem is that the series of dialog boxes that pop up can pop up while Windows does not have a user logged in. That is, the logon prompt is showing with these Cisco dialog boxes patiently waiting for user input. My service runs while this is happening, but it never ever sees these dialog boxes. And I even have the service set to "Interact with Desktop".
Has anyone had any luck with a similar problem? Do I have to do more than "FindWindow()". Is this a service setting?
I apologize if this isn't the correct forum for these problems.
Thank you for your time!
-Chris
|
|
|
|
|
For those of you who are interrested, I just started my blog (yes, even me!). It's about my experience with Whidbey Beta 2 (and up). We just started using it internally and I'd like to share my problems, workarounds, thoughts, tips, tricks and so on with the world.
If you feel like it, come and see http://whidbeybeta.blogspot.com/[^]
I will use this mainly as a log of the bugs and problems I experienced and how I managed to fix them.
|
|
|
|