|
I am able to load the web page into my application using Webbrowser control but I am unable to access the fields of the Web page, say its button controls, text controls etc. How Can I achieve this. Please help.
Purusottam Mishra
Systems Executive
|
|
|
|
|
I want to make a control which shape is a line(not only horizontal and vertical but also bias) , i tried to use the graphicpath but this class cannot only add a line . i am hurry for the solution ,hope someone can help me thank you !
|
|
|
|
|
neeka wrote: i tried to use the graphicpath but this class cannot only add a line
Yes, it can.
|
|
|
|
|
can you tell me the details or the method directly? i cannot understander you attach files.thank you
|
|
|
|
|
Hi everybody,
I'm trying to get a class to appear in a property grid control, and I can do all the basic stuff (assign descriptions to properties etc and get the object to appear in the property grid), however I also want a more complex form to pop up when I click on a more complex property.
Not sure if the above makes sense (if I knew the correct word for what I'm looking for I would have found it on Google by now!), so an example to help:
For example, a font dialog appears when changing the font on a control, by clicking on "..." in the Properties window next to "font"
What I want is to have a property which when clicked gives a "..." button, and when clicked pops up a form to help the programmer/user to set up the object properties.
Hopefully this makes some sense to somebody.
Any help would be appreciated.
Thanks,
Chris
|
|
|
|
|
Look at TypeConverter and UITypeEditor
|
|
|
|
|
UITypeEditor seems to be exactly what I need!
Thanks (esp for the quick reply!),
Chris
|
|
|
|
|
|
Great, thanks! Leppie just to say beat you to the punch this time, but its good to have better alternative articles then the MSDN entry on the subject!
Thanks,
Chris
|
|
|
|
|
I know of ways to format text in a BoundColumn to decimals, numbers, etc but what I am after is a way of passing the text in a cell to a method I have created. Is there a way of doing this?
Many thanks.
|
|
|
|
|
Hello,
Could you explain your requirement on how and when you wish to pass the value to your
method. Is there any specific action after you wish to pass the data. The normal procedure
to pass the data could be in either of the given forms. For example:
<br />
private void button1_Click(object sender, EventArgs e)<br />
{<br />
<br />
<br />
<br />
int row, col;<br />
row = 3;<br />
col = 2;<br />
<br />
mymethod(this.dataGridView1[col, row].Value); <br />
<br />
}<br />
public void mymethod(Object obj)<br />
{<br />
MessageBox.Show(obj.ToString());<br />
}
I hope this helps.
Regards,
Allen
Allen Smith
ComponentOne LLC
www.componentone.com
|
|
|
|
|
What I wish for is a method to be called each time a row is created that will take the text in a specific column and convert it.
Table:
Row Name Id
1 Ric 123
2 Lou 456
3 Matt 789
As a row is created a method takes the Id, runs it through a custom method I have (for converting ID's into Usernames) and then displays the username instead. I am using a SPGridView (SharePoint Grid View).
|
|
|
|
|
I think there is an event called OnItemDatabound that gets called for every row as they are populated.
|
|
|
|
|
Hi All,
I created a web application which creates(for the first time) and writes to a log file using Log4Net tool.
Now my requirement is to clean the data for 60 days old log data.
Can any tell me how to do this.
Thanks in advance,
urs friend
|
|
|
|
|
Did you look if Log4Net havent got this option already?
|
|
|
|
|
Thanks for the response
but i did not find the option in log4net ( i am new to log4net)
|
|
|
|
|
If you set your log file to be a rolling file appender, then you could just archive off any data in a log file that is older than 60 days.
|
|
|
|
|
Can you explain how to set(or what are the settings need to be set) the log file to be a rolling appender, to archive the data in a log file which is older than 60 days
Thanks,
|
|
|
|
|
Hi,
I don´t know log4net, it´s easy to do it (logs) with sql Store procedures i can help there if you want.
|
|
|
|
|
Hi,
I have several excel file with the same design, but with different content. The files are containing two sheets. Now I want to import from each file the first sheet en put al the sheets into one new excel file. What is the most easy way to do this. Are there any sheet objects in c#.
Regards,
Omy
|
|
|
|
|
Hi,
Do you have Visual Studio 2008 professional edition?
In code project there are some articles with classes to edit MS excel more easyer.
Good Luck
|
|
|
|
|
I 've got VS 2005. I am looking for a code snippet wich can load an compleet active sheet from a excelfile to an another excelfile.
|
|
|
|
|
I have a method which takes a DataRow as an out argument. The method fills out the DataRow with data, and returns it.
So,
public CreateTheFancyTable()
{
DataTable dt = new DataTable();
DataColumn dc1 = new DataColumn("First_Column", System.Int32);
DataColumn dc2 = new DataColumn("Second_Column", System.String);
dc1.AllowDBNull = false;
dc2.AlllowDBNull = false;
DataRow dr = dt.NewRow();
bool fSucceeded = FillOutMyRow(dr);
}
public bool FillOutMyRow(DataRow dr)
{
dr["First_Column"] = 1;
dr["Second_Column"] = "";
}
Please don't focus on the bugs in my quick sample here, the real code is a lot more complex than this.
Now, the last line is going to fail, because dt.Columns[dc2].AllowDBNull is false.
How, in the code of FillOutMyRow(), can I find out the properties of the columns in the row that was passed to me? I only know how to get the column properties of a table, and I don't have the table.
Can I refer directly to the column properties of a row (and if so, how?)? Or do I need to get the parent container of the row (the table), and if so, how?
Thanks,
Joe
|
|
|
|
|
DataRow has a Table property.
|
|
|
|
|
Thanks for the help. Of course, I figured that out about 5 seconds after clicking "Post"
I always assume the more complex answer first (I was starting to research "parent containers" when I noticed Table sitting there...)
|
|
|
|