|
Only thing I can think of is Capture Screen. But that will capture the whole screen.
Bo Hunter
|
|
|
|
|
see the API function BitBlt
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
Ok, so I know I'm missing something very basic here but I am having a problem understanding how ConfigurationSettings work. I've looked at the various examples but still can't get it to work for me.
I have a Windows application ... application name testapp. I've created a configuration file named testapp.exe.config and copied the file into (in this case) the bin\debug directory along with the EXE file. The config file looks like the following... copied from one of the examples:
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<!-- The following code uses the predefined appSettings section. -->
<appSettings>
<add key="Application Name" value="test application name" />
</appSettings>
</configuration>
In my code I have the following statement.
string appName = ConfigurationSettings.AppSettings["Application Name"];
What I get is appName = null and the config file is removed form the debug\bin directory.
So, 1st, should the config file be being deleted..if so, are the actual settings stored someplace? and 2nd, what am I missing by not being able to read the value for "Application Name" give the above code and config file.
Thanks for the help
Neil Lamka
neil@meetingworks.com
|
|
|
|
|
Hi,
This could help:
Add a file named "app.config" to the project and compile your solution. Visual Studio .NET will automagically search for a file with that name (app.config) inside your project and create an output file to bin/debug (in this case), then, if you need to change the contents of that config file, modify app.config and it will be reflected on the output file.
If you change the output file (when I say "output file" it means "testapp.exe.config") directly it will be overwritten by VS.NET on the next build.
Hope this helps.
(if I wasn't clear, please tell me and I will try to be )
Andres Manggini.
Buenos Aires - Argentina.
|
|
|
|
|
It should work. Works for me. Make sure the spelling is correct. The AppSettings are case sensitive.
|
|
|
|
|
Is it possible to have 2 different C# Class Library Projects which individually compile to their own dll and then add the 2 projects to a solution and make them both compile into 1 dll while still allowing for them to individually compile into seperate ones when accessing only the individual project?
FYI: I am using VS.NET 2002
Thanks
Mark Sanders
sanderssolutions.com
|
|
|
|
|
Mark Sanders wrote:
Is it possible to have 2 different C# Class Library Projects which individually compile to their own dll and then add the 2 projects to a solution and make them both compile into 1 dll while still allowing for them to individually compile into seperate ones when accessing only the individual project?
FYI: I am using VS.NET 2002
Thanks
Yes: you create another empty project, and, when adding the files to your project, on the open file dialog, instead of clicking on the "Open" Button, click on the small down arrow on its right, select "Link file", and you're ready to go.
My latest article: GBVB - Converting VB.NET code to C#
|
|
|
|
|
Daniel Turini wrote:
select "Link file", and you're ready to go.
You sure that is in VS.NET 2002? I dont see it....
<a TITLE="See my user info" href=http:
|
|
|
|
|
would like to change/modify the appearance of the tab page label text... all tabpage properties related to this are for the items in the tabpage itself, not for the label...
thanks for any help.
vince
|
|
|
|
|
Is it any component/control that allows loading a webpage in my forms?
"When I look into your eyes, there´s nothing there to see, nothing but my own mistakes staring back at me"
|
|
|
|
|
Customize your tool box,and select com component Microsoft Web Browser.;)
|
|
|
|
|
Hey All,
I was wondering if anyone uses or knows of a .net skin control out there somewhere for sale. I would really like to spice up our app, and I dont have the time to spend writing various skins.
Thanks,
Ryan
|
|
|
|
|
http://www.kwise.com/kskin/
There site seems to be down at the moment (at least for me) but I have heard good things about their product
|
|
|
|
|
Yea,
I just ran into it, they must have changed their company name, heres the url:
http://www.kruseinc.com/kskin/default.asp
Thanks,
Ryan
|
|
|
|
|
In windows you can define your own user-defined messages and send these messages between threads to notify each other, can someone tell me whats the eqt. for this in c#/.net, is there a native technique of doing this (event/delegate) or how do we do this thru p/invoke.
thanks
Kannan
|
|
|
|
|
Are you talking about SendMessage Api?
Bo Hunter
|
|
|
|
|
Yes..you are right.
I know that its possible to use this by p/invoke mechanism, but is there a native way.
thanks
Kannan
|
|
|
|
|
You can do anything in native code but it is just that Native.
If you want a native way then you need to go to the c++ forum.
Bo Hunter
|
|
|
|
|
I'm sorry
Its not "native" , I meant managed code here.
thanks
Kannan
|
|
|
|
|
Hi.
I'm currently working on a "PreView" Windows Form Control. I will use the control to preview multimedia content to the user, sutch as audio and video files. I need some help on finding out witch approatch to take.
Should i use Windows Media Services 9 Series SDK, should i use Windows Media Player 6.4 SDK, or should i use Managed DirectX and build some custom control playing the media file?
And, can this be done using managed code, or do i have to write a COM wrapper for the WMP9 COM object? Or, what about WMP6.4 ActiveX control, would that be a better choice?
Hope to get some feedback from people who have written applications like this before.
|
|
|
|
|
|
Hi Øyvind.
Thanks for feedback on my question. The only disadvantage by using DirectX9, is that it's more likley the user have WMP6.4 than DirectX9 installed on the computer. And, can i include DirectX as a part of my MSI package?
|
|
|
|
|
|
Found that link after some browsing on MSDN. I'll do a test to do a
audio/video player in Managed DirectX9.
Thanks alot for the help so far! Btw: From Norway?
|
|
|
|
|
can't hide my home country with that name, I guess
Hipp hurra for 17. mai!
Øyvind
|
|
|
|