|
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.
|
|
|
|
|
I have a problem with setting the datasource property of a datagrid in the compact framework 1.0.
Here's the senario:
I'm making an asyncronous web service call that returns a dataset with one table. This could be any data in the table. From within the thread for the web service call, I want to get the data and then set the datasource property of the datagrid to ds1.Tables[0];. When reaching that line of code the entire application hangs. I have to stop debugging to return to normal state. Now I at first thought this was a problem with my coding, but the more I delve into it I find that it seems to be a threading problem in the framework. I do not have this problem with any other control, be it a listview, combobox... I can set their display member property while in the other thread with no problem. Now I can change the web service call syncronous and it works fine. The problem seems to center around the thread issue. Has anyone seen this before on a datagrid? Also this problem is inherited by ComponentOne's mobile datagrid since it does the same thing. I have tried converting the dataset to an arraylist and loading it that way... no juice... I have tried creating another dataset at intialization and creating a dumby table with the same charitoristic as the one coming from the web service. set the datasource property of the datagrid to the table, then in the asycronous web service call actually use the dataset.ImportRow in a foreach statement from the dataset the webservice call returns and it will hang on the first record. I guess because the secondary thread is trying to change the datagrid...
Any suggestions?
|
|
|
|
|
hi everybody,
i want to install MS SQL Reporting Service at 64 bit platform.
Could it be running well, or does anyone ever do before ?
thank you
email : sukasukabo@hotmail.com
|
|
|
|
|
I'm looking for a way using C# or VB.net to reference variables. More specificly, I have a loaded hashtable that was created on my main form. When I open a new form, I need to have access to that information in the hastable. I don't want to pass the table between forms as this would create copies of the original and end up using more memory.
What is the best way to accomplish this??
|
|
|
|
|
No it wont take up much memory! If you pass your HashTable to another form only a reference to that single HashTable is passed. So the memory usage is just 4 byte (on a 32 bit os). This also means changing the HashTable in one place also changes it everywhere else you passed the reference to.
If you still dont want to pass the HashTable around and you only need one instance of it in your whole application declare the variable in your main form public static. This way everyone can access it with MyMainFormClassName.MyPublicHashTableVariable .
|
|
|
|
|