|
Hi!
Does anyone know, how I can access the extended file-properties that comes with the NTFS FileSystem ? There are for example: Title, Author, Comment, and so on.
I want to read and write in these fields from a programm. I searched the whole MSDN documentation and Knowledge Base for hours and the result is: Null, Nothing
Can anyone help me?
Thanks Peter
|
|
|
|
|
Use NTFS as keyword. Cp article[^] (Richard Deeming, C# code).
|
|
|
|
|
That's it! This is very helpfull.
Thx Peter.
|
|
|
|
|
How can i disable the ALt+F4 and Alt+Del+Ctrl because i want to disable these function during running my program.
babar
|
|
|
|
|
|
.S.Rod. wrote:
Writing a virus ?
Or a kiosk style program
James
"It is self repeating, of unknown pattern"
Data - Star Trek: The Next Generation
|
|
|
|
|
I have started to execute the instructions in "Creating a Distributed Application" walkthrough from VS .NET docs.
I did everything and when I had to add an web reference in my web and win clientgs. I got the following error, when trying to access the address:
http://localhost/AuthorsWebService/AuthorsWebService.vsdisco
Web Services
(none)
No Web References were found on this page.
Click for help on finding a Web Reference.
Errors
The document was not recognized as a known document type (WSDL, XML Schema, or Discovery document) for the following reason:
- The content type 'application/octet-stream' is not valid for an XML document.
Here is what appears in the browser for the Discovery
- <dynamicdiscovery xmlns="urn:schemas-dynamicdiscovery:disco.2000-03-17">
<exclude path="_vti_cnf">
<exclude path="_vti_pvt">
<exclude path="_vti_log">
<exclude path="_vti_script">
<exclude path="_vti_txt">
<exclude path="Web References">
I was able to add a web reference and to complete the walkthrough after I have accessed:
http://localhost/AuthorsWebService/AuthorsService.asmx
On this page when I click the "service description" link I get an XML file too. Is this correct?
And what is wrong with the Discovery?
And one more question: does a web reference require source code changes and recompilation if the URL for the web service is changed?
Does this mean that a change of an URL requires a change of namespaces?
Thank you!
Z.
|
|
|
|
|
If you plan to post xml content, replace < with < and > with > in the tags.
|
|
|
|
|
yes I have noticed it but I wasn't allowed to edit the message.
|
|
|
|
|
Here the same message again with XML:
I have started to execute the instructions in "Creating a Distributed Application" walkthrough from VS .NET docs.
I did everything and when I had to add an web reference in my web and win clientgs. I got the following error, when trying to access the address:
http://localhost/AuthorsWebService/AuthorsWebService.vsdisco
Web Services
(none)
No Web References were found on this page.
Click for help on finding a Web Reference.
Errors
The document was not recognized as a known document type (WSDL, XML Schema, or Discovery document) for the following reason:
- The content type 'application/octet-stream' is not valid for an XML document.
Here is what appears in the browser for the Discovery
<?xml version="1.0" encoding="utf-8" ?>
- <dynamicDiscovery xmlns="urn:schemas-dynamicdiscovery:disco.2000-03-17">
<exclude path="_vti_cnf" />
<exclude path="_vti_pvt" />
<exclude path="_vti_log" />
<exclude path="_vti_script" />
<exclude path="_vti_txt" />
<exclude path="Web References" />
</dynamicDiscovery>
I was able to add a web reference and to complete the walkthrough after I have accessed:
http://localhost/AuthorsWebService/AuthorsService.asmx
On this page when I click the "service description" link I get an XML file too. Is this correct?
And what is wrong with the Discovery?
And one more question: does a web reference require source code changes and recompilation if the URL for the web service is changed?
Does this mean that a change of an URL requires a change of namespaces?
Thank you!
Z.
|
|
|
|
|
I want to know how to use MS Internet Explore in my own form and automaticly fill some HTML elements(such as Text box, dropdown list box or radio box).
Is there any control that wrap the MS Internet Explore and can access the content(html string) and the Html Element?
I use C#.
Thanks in advance!!
Alan Shen
|
|
|
|
|
CodeProject article[^]. In short, the web browser control is obtained by going in Toolbox \ Customize and then insert the Microsoft Web Browser control. The html itself is provided by mshtml.dll one of the Microsoft.NET primary interop assemblies (c:\program files\Microsoft.NET\Primary interop assemblies\mshtml.dll).
|
|
|
|
|
Thank you very much.
Do you know how to control the Html elements in a HTML FORM?
|
|
|
|
|
I could put a few urls, but quite honestly programming is all about enjoying time discovering things yourself.
|
|
|
|
|
Hi All,
I have a program that assigns one TabPage to equal another.
tabControl1.TabPages[1] = tabControl1.TabPages[0]; The problem is this: the TabPages have controls on them and when I assign the pages as above the controls are no longer displayed. The controls are still there (one of the controls is the webbroswer and the page it points to has a popup) but I can't see them and they don't appear to be enabled because I can't tab to them or anything. Does anyone know how to fix this problem? I've tried using the Refresh and Update methods of the TabPage.
I made a small program to demonstrate this. You can d/l it from http://members.shaw.ca/theory/Tabs.zip[^]
Any help or ideas are appreciated. Thanks.
- monrobot13
|
|
|
|
|
What are you complaining about? Assigning a tabpage to another tabpage is wrong, utterly wrong code.
|
|
|
|
|
Well then could you give an example of how it should be done? What I'm trying to do is have an insert function that I can use with a tabcontrol, to insert a page at a specific location.
|
|
|
|
|
As I have said in another post, there is no TabPage insertion helper. If I was asked to insert a tabpage, and TabControl derivation is not an option, I would use Add/Remove and clone the controls of all moving tabpages, to mimic Insertion.
Another option is to create a property sheet from the available WIN32 common controls (probably requires some comctl32 dll interop).
|
|
|
|
|
Do you know how to use the data in “textbox1.Text” (Form1) in a method on another form (Form2) all within the same namespace???
Kevin@upgrade1.com
|
|
|
|
|
You can do it a couple of ways depending on the relationship between Form1 and Form2. (e.g. Form1 creates Form2, Form2 creates Form1 or Form3 creates both).
For "Form1 creates Form2", you can pass an instance of Form1 to Form2
<br />
public Form2<br />
{<br />
public Form2(Form1 f)<br />
{<br />
}<br />
}<br />
...<br />
and then when Form1 is constructing Form2:
Form2 f = new Form2(this);
if "Form2 creates Form1", then you can just setup a public property in Form1 that gets the text from the label but you must keep an instance of Form1 as a field in Form2 so that your function can access it.
And the "Form3 creates both", then construct Form1 first, and then pass its instance to Form2.
--Adam Turner
|
|
|
|
|
kvnsdr wrote:
Do you know how to use the data in “textbox1.Text” (Form1) in a method on another form (Form2) all within the same namespace???
That's only a matter of public/protected/private member visibility.
|
|
|
|
|
Visual Studio 2003 has been released to manufacturing (RTM), and is available for MSDN subscribers to download. In addition, MSDN subscribers should receive a special shipment with VS 2003 in the next 7-10 days. Retail availability will be on April 24th.
See http://msdn.microsoft.com/vstudio/productinfo/vstudio03/default.asp for more information.
The .NET Framework V1.1 has also shipped, and can be downloaded for free at http://msdn.microsoft.com/netframework/productinfo/
|
|
|
|
|
And I'm downloading it right now!
Thanks, Eric!
117,8 Mb remaining...
It's not the fall that kills you: it's the sudden stop - Down by Law, Jim Jamursch (1986)
|
|
|
|
|
Using C# in a Winform, I have a tab control with 2 tabs... I added methods for Enter and Leave events for tabpage1, but the events never fire when I switch tabs... breakpoints in these methods are never hit...
what am I forgetting or doing wrong...???
thanks.
|
|
|
|
|
The Enter and Leave events are for the TabPage not the TabControl. Once you switch Tabs if you click in the TabPage your event will fire. If you want to do something when the TabControl switches pages it's best to put the code in the SelectedIndexChanged event of the TabControl.
Hope that helps.
- monrobot13
|
|
|
|