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.
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 !
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.
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:
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.
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 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#.
I have a method which takes a DataRow as an out argument. The method fills out the DataRow with data, and returns it.
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)
// fetch some data from an outside source here
// fill out the row here
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?