|
I've heard that some of these features can be found in the System.Management namespace. I have personally found it easier to just wrap the pertinent SDK calls using PInvoke. I seem to recall reading an article or two related to WMI and PInvoke/DACL stuff on this website. Try doing a search.
|
|
|
|
|
Can anyone explain to me why the text retrieved from a mutli-line textbox has CRLF instead of LF for new lines? And can I alter this behaviour?
I thought we'd seen the last of the whole dos vs unix thing
|
|
|
|
|
Well I guess a simplistic replacement strategy would be:
using System.Text.RegularExpressions;
...
someTextBox.Text = Regex.Replace(
myMultiLineString, "\n", "\r\n" );
and vice versa for reading text from a TextBox.
Does seem rather ugly to me though.
|
|
|
|
|
Hello
I want to customize my VS7 for editing php files.
The goal is :
1. that I can make file >> new and choice new php file
2. that I can use the Outlining functions
3. I can use the SPACE+CTRL for reconizing php keywords (Like userdat VC6 file.)
thank for help
|
|
|
|
|
I have created a Windows Form control and also an application that uses it.
When I reference the control, if I don't choose "copy local = true", the it throws a System.IO.FileNotFoundException.
What may be the reason?
|
|
|
|
|
Is the directory that contains the assembly in your search path? Your executable will need to be able to load the assembly at runtimne...
|
|
|
|
|
Yes, you are right...
In fact, the correct place for this assembly would be the GAC (Global Assembly Cache). However, I don't know how to tell my setup program to place the assembly into the GAC. (I am creating a Deployment Project)
|
|
|
|
|
Does anyone have any source examples that can read the metadata from a PE file? I have Serge Lidin's book _Inside Microsoft .NET Assembler_, but there seems to be a few errors in it, and some of the descriptions are a bit confusing.
Any help would be appreciated,
cmpwiz576
PS. This is my first post to CodeProject!!
|
|
|
|
|
Has anybody had any problems with the included version of Crystal Reports for Visual Studio after upgrading to VS.NET 2003/.NET Framework 1.1?
It seems like it's not liking to use a DataSet as a ReportSource anymore. If I go back to 2002/1.0 everything works just fine.
Ron
|
|
|
|
|
I'm running on Visual Studio.NET 2003. Is there a quick way to implement an interface via a keystroke or menu option? Some of the interfaces in .NET have many member that need to be implementented, so what I'm looking for is some sort of keystroke or menu option that will fill in empty functions for all the members that need to be implemented.
Thanks in advance.
Kyosa Jamie Nordmeyer - Cho Dan
Portland, Oregon, USA
|
|
|
|
|
OK, I figured out how to do this, but for some reason, the 'Implement Interface' is not on the context menu. Any ideas why?
Again, thanks in advance.
Kyosa Jamie Nordmeyer - Cho Dan
Portland, Oregon, USA
|
|
|
|
|
Is there any tracker rect in .Net WinForms (like CRectTracker in MFC) ?
|
|
|
|
|
Hi,
I need to access a particular .NET Windows Form DLL as ActiveX Control.
<OBJECT id="myControl1" name="myControl1" classid="PrintCtrl.Dll#PrintCtrl.Class1" VIEWASTEXT width="0" height="0">
< PARAM NAME="File" VALUE="http://localhost/" >
</OBJECT>
Now that this Dll needs to access and print from IE, I had to package as CAB file using VS.NET Setup and Deployment Project (CAB Project). Instead of DLL, I gave PrintCAb.cab. But now it is saying 'Object does'nt support this property/method'
How to refer the methods in the DLL if I give this CAB now?
Please advise...
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
I was wondering what kind of memory I use when I, for example, declare a new variable... Is it Ram, or disk swap? Do I have any control over that? Can I find out how much free memory a system has?
Thanks,
Andrei Matei
andreimatei@home.ro
|
|
|
|
|
When you declare a variable it gets created in RAM. If your available RAM is low then the system might swap some stuff to disk in order to free up some RAM, but even in that case your variable would stil reside in RAM. As far as I know you really don't have much control over that.
|
|
|
|
|
i want to know what kind of options does one have to capture video using .NET Framework?
urgent reply would be appreciated!
|
|
|
|
|
try searching for "video"...
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
well i did for that matter, but the thing is i came up with a few techniques, i want to know if someone has implemented video capturing in .NET......so that i can get a jumpstart!
|
|
|
|
|
search THIS site for "video" there are loads of .net examples for video
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
have you used WMI(Windows Managment Instrumentation) for capturing video? or anyone in this site?
using tool Visual C#
|
|
|
|
|
use the SEARCH box! the first item is about wmi using c#
sesh!
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
well if you have a look its not about video capturing...jjust wanted to know if someone has tried video capturing through WMI!
|
|
|
|
|
How do I open an Access database exclusively using the System.Data.OleDb.OleDbConnection class? There doesn't seem to be a Mode property, and I can't find any Connection String properties to do it?
Thanks in advance.
Kyosa Jamie Nordmeyer - Cho Dan
Portland, Oregon, USA
|
|
|
|
|
The easiest way to get a connection string to do what you want is to use the Universal Data Link dialog. To do this:- Create a new text file on the desktop
- Rename it to 'access.udl' (the icon should change to a computer in front of a table)
- Double-click the icon
You should now get a property sheet labelled 'Data Link Properties'.
Go to the Provider tab and select the Microsoft Jet 4.0 OLE DB Provider. Go to Connection and browse to the database you want to open, then ensure the username and password are correct. Choose 'Test Connection' to check you're all right so far. On the Advanced tab, under Access Permissions uncheck Share Deny None and check Share Exclusive. Click OK.
Now open the .UDL file in Notepad. It should look something like:
[oledb]
; Everything after this line is an OLE DB initstring
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Work\MyDB.mdb;Mode=Share Deny Read|Share Deny Write;Persist Security Info=False
I hope that shows alright on your browser; CodeProject converts [semicolon][P] into a smiley...;P
Copy the initialisation string into your code, and you should be done.
--
Mike Dimmick
|
|
|
|
|
Cool, that's what I needed! I normally don't like using .udl's, but I can, of course, steal it's connectionString, then delete it. Duh!
Thanks a bunch, Mike!
Kyosa Jamie Nordmeyer - Cho Dan
Portland, Oregon, USA
|
|
|
|