|
... you can ... Why do ask?
SkyWalker
|
|
|
|
|
Hi folks,
I am new for .Net 2.0, i want to use the appsettings values now i have using
following code and i add reference for configuration component manually but its not working.
|
|
|
|
|
- English please
|
|
|
|
|
hi folks,
I am new to .net , Now i have work with Windows application and i want to read the file from specific path. I have using filestream object for file access but it shows following error.
Access to the path 'C:\\Program Files\\AAA' is denied."
my code is,
FileStream FS = new FileStream(@"C:/Program Files/Psis/Conf.xml", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
is anybody face this problem before plz tell me the solution.
|
|
|
|
|
You don't have permission to either read or write or both to that directory. Maybe you can't create a file in that directory, or that directory doesn't exist.
The most likely cause (if you're running as an Admin / Power User) is that the Directory "C:\Program Files\Psis" doesn't exists.
Ps. Not sure if it likes the forward slashes in the path, if the directory exists and you have permission to write to it then this maybe the cause, note that the @ symbol disables character escaping in the string so \ means \ rather than the prefix for an escaped character.
|
|
|
|
|
I'm wanna write a application that can control the iis,such as create virtual web site,set virtual directory,configure parameters,delete virtaul web site.
whether .net 2.0 have provide the such class??
where I can find such component??
have other method to finish such work??
whether you have wrote such application?can you teach me how to do??
KSCsoft
|
|
|
|
|
KSCsoft wrote: I'm wanna write a application that can control the iis,such as create virtual web site,set virtual directory,configure parameters,delete virtaul web site.
This is possible.
KSCsoft wrote: whether .net 2.0 have provide the such class??
Not sure but possibly available through some interop / WMI.
KSCsoft wrote: where I can find such component??
Here[^]KSCsoft wrote: have other method to finish such work??
Eh?
KSCsoft wrote: whether you have wrote such application?
No
KSCsoft wrote: can you teach me how to do??
Yes but no.
|
|
|
|
|
hey dude, you really go direct to the point! LOL
|
|
|
|
|
Well the way the question was asked deserved an appropriate response.
|
|
|
|
|
why? did he say: "hey, short answers please, cause i don`t like to read so much"?
|
|
|
|
|
No, basically just asking someone to write a program for him. If he wants someone to do that they he should visit RentACoder.
People here help out more if you ask specific questions, and show some initiative...
|
|
|
|
|
using MS Visiual Studio.NET 2003, I'm trying to deploy smart device project to PocketPC but deploy fails. I got only messagaes:
"Error: Cannot establish a connection. Be sure the device is physically connected to the development computer."
but the device is connected and I transfer data and files. What could be the reason for deployment failure?
thanks.
|
|
|
|
|
Hi! problem is - when I press the button in grid (see - private void AddButtonColumn()) for the first time, counter adds 1 to row nine, when I press it repeatedly it works only on every second click. I want it to work on every second click at all times! how can I fix that? as you can see - on a button click timer is trigered. Counters job is to count how many times timer has been started. But now - for the first time it counts when timer starts and ends, but later on it does the job right. Heres the code Im having trouble with:
...
namespace Bonuss
{
public partial class frmList : Form
{
public frmList()
{
InitializeComponent();
dataGridView1.CellClick += new DataGridViewCellEventHandler(dataGridView1_CellClick);
}
void frmList__myElapsed(object sender, long Ticks, DataGridViewRow row)
{
if (dataGridView1.Rows[row.Index].Tag != null)
{
dataGridView1[7, row.Index].Value = Ticks.ToString();
}
}
private void ReloadData()
{
for (int i = 0; i <= dataGridView1.Rows.Count-1; i++)
{
if (dataGridView1.Rows[i].Tag == null)
{
dataGridView1.Rows[i].Tag = new rowTag(dataGridView1.Rows[i]);
((rowTag)dataGridView1.Rows[i].Tag)._myElapsed += new rowTag.myElapsed(frmList__myElapsed);
}
else
{
int err = 0;
}
}
}
DataGridViewButtonColumn buttons;
private void AddButtonColumn()
{
buttons = new DataGridViewButtonColumn();
{
buttons.HeaderText = "Opcijas";
buttons.Text = "--";
buttons.UseColumnTextForButtonValue = false;
buttons.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
buttons.FlatStyle = FlatStyle.Standard;
buttons.CellTemplate.Style.BackColor = Color.Honeydew;
buttons.DisplayIndex = 8;
buttons.DefaultCellStyle.NullValue = "<+/->";
}
dataGridView1.Columns.Add(buttons);
}
public void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (dataGridView1.Columns[e.ColumnIndex].HeaderText=="Opcijas" )
{
try
{
rowTag currentRowTag = ((rowTag)dataGridView1.Rows[e.RowIndex].Tag);
if (!currentRowTag.isRunning)
{
currentRowTag.Start();
}
else
{
currentRowTag.Finish();
}
}
catch (Exception)
{
int a = 0;
}
try
{
if (dataGridView1[7, e.RowIndex].Value == "X")
{
if (e.ColumnIndex == buttons.Index)
{
dataGridView1[7, e.RowIndex].Value = 0;
}
}
else if (dataGridView1[7, e.RowIndex].Value != "X" )
{
if (e.ColumnIndex == buttons.Index)
{
dataGridView1[7, e.RowIndex].Value = "X";
float ft_Counter = 0;
try
{
ft_Counter = Convert.ToSingle(dataGridView1[9, e.RowIndex].Value);
}
catch (Exception)
{
ft_Counter = 0;
}
dataGridView1[9, e.RowIndex].Value = ft_Counter + 1;
}
}
}
...
|
|
|
|
|
Use the pre tag when you post code, so that the indentation is preserved.
---
b { font-weight: normal; }
|
|
|
|
|
done.. sorry about that, Im new here.. now can someone help me?
|
|
|
|
|
I´m trying to programmatically convert xsd schema to xml file, can anyone help me with this please?
cellardoor
|
|
|
|
|
There are tools that can do this. Remember, a tool can only create one possible XML file from an XSD, as an XSD will list groups that are not fixed size, optional nodes, etc.
There's no way I know of to do it trivially using code.
|
|
|
|
|
Isn't there a possibility in the DataSet object??
ReadSchema and WriteXml
- - - --[ i love it when a plan comes together ]-- - - -
|
|
|
|
|
hi..
In my application on a form , I want to list some paramter values as old & new. User entered values should be there in new column. But in c# we can use 'table' & 'DatGrid' for this. So which one is better for my application as i want user to enter those parameter values in a perticuler range only. Can i give dropdown combobox in table or datagrid so that user can select with only values given in that combobox. Can i do it with both Datgrid & table.
Can any body give me any good document to do this using datagrid/table in c#.
Thanks in adavance,
Vinay
|
|
|
|
|
Your terminology makes me think that you're using ASP.NET ? If so, you need to say so. I assume that GridView is not on your list because you're using .NET 1.1 ?
|
|
|
|
|
Thanks for reply...
But i am not using ASP.NET & i am using .NET 2.
In my application i just want to set some parameter valuse to new values & at the same time i've to display old valuse on form with table/datGrid (old values i'll read from SerialPort communication & display it in 2nd column). My 1st column will be my parameter name & last column will be new vallues entered by user.
On another button click event , i've to send those new values on serial port.
Thanks,
VInay
|
|
|
|
|
vinay.p wrote: But i am not using ASP.NET & i am using .NET 2.
Then, what do you mean by table ? Why is GridView not an option ?
|
|
|
|
|
i am new in C#. So while going through some document i came to know that we can use table(table means 'tableLayoutPanel') & DataGrid(DataGridView). But since i want user should not enter wrong values i am confused which one to use & how to use...? Can u suggest me any document to learn it.
I am using Visual Studio 8.
Thanks,
Vinay
|
|
|
|
|
Hi, Dear Respected Programmers
Kindly give me source link of RichtextBox using OpenfileDialog.
Thank you
|
|
|
|
|
You mean somthing like :
<br />
..<br />
..<br />
OpenFileDialog openFileDialog = new OpenFileDialog();<br />
<br />
DialogResult result = openFileDialog.Show();<br />
<br />
if (result = DialogResult.OK)<br />
{<br />
myRichTextBox.Text = openFileDialog.selectedPath<br />
}<br />
..<br />
..<br />
..or you mean something different? Be clear please
-- modified at 4:05 Tuesday 14th November, 2006
.:: Something is Wrong ::.
|
|
|
|