|
Is the file located in the web folder? If not, then you might need to grant access to it for the user account running the web service. Usually it's the IIS_WPG or ASPNET account.
---
b { font-weight: normal; }
|
|
|
|
|
It's not in the web folder. How can I grant access with XP Pro SP2?
If not, moving the file to the web folder does the trick? What path should I use then? Maybe C:\Inetpub\wwwroot\...?
|
|
|
|
|
sergestusxx wrote: How can I grant access
Open the properties for the file or the folder and go to the security tab. Add the user account to the list if it's not there. Set write permission for the user account.
sergestusxx wrote: If not, moving the file to the web folder does the trick? What path should I use then?
Any folder above the web root would probably do. Start by putting it in the same folder as the web service, that has the best chances to work.
---
b { font-weight: normal; }
|
|
|
|
|
In my Windows XP Pro SP2 I don't have any security tab like in W2000 O_o
|
|
|
|
|
That's because you still have simple file sharing enabled.
In explorer:
Tools > Folder Options > View
Uncheck "Use simple file sharing".
---
b { font-weight: normal; }
|
|
|
|
|
how to create databse through the sql script. simple copy the text from the script file or do any thing extra.
Tasleem Arif
|
|
|
|
|
I just converted from visual studio 2003 to visual studio 2005. The project I am working on has several forms that are inherited from each other, each form added some additional items to the menu of its base form. This worked fine before with vs 2003, but now when editing an inherited form's menu I get a message box that says "Cannot add a new item to this menu because it is inherited." The menu is declared as protected. Can anyone explain what is going on?
Thanks
Karl
|
|
|
|
|
I have a 2 levels of treeview. How do I highlight the child node (2nd level), instead of the parent node, so that the user would know which child node has been selected?
|
|
|
|
|
|
How do I make a panel on a tabpage highlightable so that whatever text on it can be highlighted?
|
|
|
|
|
I've have an annoying iss when trying to print a page in Windows form.
printDocument1.DefaultPageSettings.Landscape = true;
This sets the page to landscape no problem, but when I try to get the PrintableArea it is still in Portrait mode (800x1100) rather than Landscape (1100x800). I've worked around this, but it is annoying, I would expect the PrintableArea to update appropriately.
Does anyone have an explaination or a way to get the settings properly? Did I miss something?
|
|
|
|
|
Hello
Well, we don't have your entire code to look at, but why don't you try using the PrintPageEventArgs.MarginBounds Property instead?
NB.
If you try to change the Landscape property inside the PrintPage event it won't work!!! I geuss you already know that.
|
|
|
|
|
MarginBounds is different from PrintableArea, but thanks for the response. It also has nothing to do with the code but here you go
<br />
private void OnPrint(object sender, EventArgs e)<br />
{<br />
printDocument1.DefaultPageSettings.Landscape = true;<br />
}<br />
<br />
private void OnPrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)<br />
{<br />
e.Graphics.DrawRectangle(new Pen(Color.Red), e.PageBounds);<br />
e.Graphics.DrawRectangle(new Pen(Color.Yellow), e.MarginBounds);<br />
e.Graphics.DrawRectangle(new Pen(Color.Black), e.PageSettings.PrintableArea);<br />
}
The last is what annoys me, I would expect it to in landscape by it is still in portrait.
-- modified at 11:36 Tuesday 27th June, 2006
|
|
|
|
|
Hello
I can see now your problem. I know that printablearea is not updated, that's why I purposed using MarginBounds instead.
Well, if you insist, try inverting them -ie using height as width and vice versa-, but I think this would be a very poor programming practice
a quote from MSDN remarks on PrintableArea:
"The PrintableArea property returns the correct value, whether the page orientation is landscape or portrait."
Do they mean it's changed when you change the Landscape property, or it doesn't matter?? I made a sample and changed the landscape property, but it was the same
I even changed the PaperSize, yet no hope.
Well, I hope this was -somehow- helpful
|
|
|
|
|
As a followup to my previous post here[^], I tried to google to find definitions of how to define the string to pass within a .ToString() call, but all I was able to find was a swath of forum questions like my previous one, and a few answers, but no concise list.
What I'm looking for is a list of what can go into the .ToString() function and what the funcitonality of each character is. Can anyone give me a point in the right direction?
|
|
|
|
|
|
|
.ToString() comes from a base class. All object that you created, will derive this .ToString(). That means each class has its own .ToString(). Which .ToString() do you mean ?
|
|
|
|
|
Start at MSDN[^] The links to various pages therein will tell you everything you need to know.
|
|
|
|
|
|
That was exactly what I was looking for. I completely zoned out and forgot to check MSDN, but this link has more than what I was looking for. Thanks
|
|
|
|
|
Hi.i am still learning C# so i am trying to create a simple class for greeting message so i want to display this message on a label on form.please send me a sample and explanation.
|
|
|
|
|
using System;
using System.Windows.Forms;
namespace TestForm
{
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.ComponentModel.Container components = null;
public Form1()
{
this.SuspendLayout();
this.label1 = new System.Windows.Forms.Label();
this.label1.Location = new System.Drawing.Point(24, 24);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(72, 16);
this.label1.TabIndex = 0;
this.label1.Text = "Hello World";
this.Controls.Add(this.label1);
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(120, 61);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
}
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
}
}
|
|
|
|
|
Not sure what you mean... Probably this?
MessageBox.Show("Welcome!");
There are some overloads to change the title, icon, buttons etc. as well.
|
|
|
|
|
how to find all ip adress in my network???????????
|
|
|
|