|
Thank you all for your efforts.
unless you have other information,
I understand that I can not use code to manage iis lower than 7.
Eitan
modified on Friday, December 19, 2008 3:41 PM
|
|
|
|
|
I couldn't find resources on adding Verbs or hyperlink in propertygrid. Can you please provide me some links that deals with propertygrid.
Thanks
|
|
|
|
|
In ASP.NET or winforms ? I don't think there is a hyperlink control, I think you need to roll your own.
What do you mean by 'add verbs' ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I was concerned about winforms. Verbs is like a hyperlink which is shown in PropertyGrid just right above the PropertyGrid properties description area.
Simply drag and drop a datagridview and Click on the Visual studio properties and you will see two links "Edit Column" and "Add Column".
I also want to show a link in the propertyGrid so once it is click i can call my function.
|
|
|
|
|
Ah - the stuff that VS does is almost certainly custom code, so you'll have to write code to do it, too.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi I have the following code
<br />
<listeners><br />
<add name="TestTrace" type="MyNameSpace.TestListener, TestListener, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" traceOutputOptions="None" initializeData="MYlog.txt"><br />
</add><br />
<br />
</listeners><br />
<br />
Whatever value I put in initializeData will be passed to the constructor of the specified listener.
My question is, How can I send more that one parameter in the constructor using initializeData. Suppose my second parameter is integer.
Thank you
|
|
|
|
|
If only one parameter is allowed, make it an XML string or a struct, or some other way of passing more than one value, in one go.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Evening all !
I've created a new timer in a form's constructor to make a button on the form flash.
For some reason the program is stepping through the code for the timer tick ONCE and thats it ?
Would appreciate if someone could take a look at it and tell me whats wrong, it's porbably something trivial and i've just been looking at the code too long now !
Thanks in advance
Neil
public Form1()
{
InitializeComponent();
buttonTimer = new Timer();
buttonTimer.Tick += new EventHandler(button_Tick);
buttonTimer.Interval = (50);
populate.BackColor = Color.Black;
populate.ForeColor = Color.Orange;
buttonTimer.Start();
}
void button_Tick(object sender, EventArgs e)
{
if (populate.BackColor == Color.Orange)
{
populate.BackColor = Color.Black;
populate.ForeColor = Color.Orange;
}
if (populate.BackColor == Color.Black)
{
populate.BackColor = Color.Orange;
populate.ForeColor = Color.Black;
}
}
}
|
|
|
|
|
Instead of this:
buttonTimer.Tick += new EventHandler(button_Tick);
Try this:
buttonTimer.Elapsed += new EventHandler(button_Elapsed);
Don't know if it makes any difference, but it's worth a try.
|
|
|
|
|
That's for a System.Timer, not a System.Windows.Forms.Timer. The Elapsed event is run in a separate thread, so that can't be used to update controls in the form.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
|
I had this problem, the cause is that you are setting your event in the load method, which exits so the event is no longer registered.
buttonTimer.Tick += new EventHandler(button_Tick);
Put that in another method so that it is set again.
The way I explained this is probably not the most tech savvy way, but I'm 100% sure that your event gets triggered only once because the form load method quits after your form is loaded.
|
|
|
|
|
That makes no sense at all.
|
|
|
|
|
Looks like you are testing the Color for Orange and if so, setting it to Black.
Right after that you test for Black and set it back to Orange.
After the ForeColor = Color.Orange, add a return ;.
|
|
|
|
|
Bingo! This is just what I was thinking.
|
|
|
|
|
Better yet, use an else:
if (populate.BackColor == Color.Orange) {
populate.BackColor = Color.Black;
populate.ForeColor = Color.Orange;
} else {
populate.BackColor = Color.Orange;
populate.ForeColor = Color.Black;
}
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
it isn't stepping through once - stick a breakpoint in to prove that.
it just has no effect the 2nd and subsequent times...
replace
if (populate.BackColor == Color.Black)
with
"else"
and all will be well.
Inidentally, if I were you, I would put
((Timer)sender).Stop();
at the start of yor buttin_Click event handler, and
((Timer)sender).Start();
at the end.
This stops the timer triggering while the code is still executing - and helps when you are debugging too!
If I knew then what I know today, then I'd know the same now as I did then - then what would be the point?
.\\axxx
(That's an 'M')
|
|
|
|
|
hi all,
i have a xml files which the the data is in attributes like this:
<detail>
<record>
<field name='field1' value='value1'/>
<field name='field2' value='value2'/>
<field name='field3' value='value3'/>
<field name='field4' value='value4'/>
</record>
<record>
<field name='field1' value='value1'/>
<field name='field2' value='value2'/>
<field name='field3' value='value3'/>
<field name='field4' value='value4'/>
</record>
</detail>
since datatables read only xml that are formated without attributes how could i load this into a datatable?
|
|
|
|
|
Seems like you'll create code to parse/load it into a table or use an XSL transform and then load it via ReadXml.
|
|
|
|
|
Any idea of a xsl/xps generator for attributed XML?
|
|
|
|
|
Sorry, you'll have to do some googling. I don't know of any.
|
|
|
|
|
I want to read some files over a network from over 200 pcs. I want to read from 1 pc and if ReadTimeOut has been reached, I want to try a different pc because I do not want to wait forever if I can not read from a certain Pc. How can I do this? FileStream has a property to set the ReadTimeOut but how do I know when this timeout is reached so I can do something else, and try again later.
|
|
|
|
|
|
|
I was actually reading about BeginRead() and IAsyncResult and that is why I asked the question. But the thing I am confused about is would I call BeginRead() on something like 10 different pcs and when each returns it will invoke the delegate in my code? Or do I have to do it differently? Also, can I store the data for all these files read in DataTable objects--1 for each pc--or is that too much resources? The files are not big but just about 50 lines.
|
|
|
|