TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Aisha Srivastava
NA
230
28.7k
create automatic tableid during every insertion of nw table
Feb 13 2015 4:47 AM
Hi,
I am making a html editor ,in which we are using windows form and web browser control in which we are using html table,
when we insert a table in editor i want to assign a unique tableid counter(auto) each time when a table is inserted so i can use other functionality
for specific table.
Really stuck....
Thanks In Advance,
If further clarification is needed let me know..
suggestions r heartily welcome..
//Table Insert Prompt
public void TableInsertPrompt()
{
// if user has selected a table create a reference
mshtmlTable table = GetFirstControl() as mshtmlTable;
ProcessTablePrompt(table);
} //Table Insert Prompt
/
/Process Table Prompt
private void ProcessTablePrompt(mshtmlTable table)
{
using (TablePropertyForm dialog = new TablePropertyForm())
{
// define the base set of table properties
HtmlTableProperty tableProperties = GetTableProperties(table);
// set the dialog properties
dialog.TableProperties = tableProperties;
DefineDialogProperties(dialog);
// based on the user interaction perform the neccessary action
if (dialog.ShowDialog(this.ParentForm) == DialogResult.OK)
{
tableProperties = dialog.TableProperties;
if (table == null) TableInsert(tableProperties);
else ProcessTable(table, tableProperties);
}
}
} // ProcessTablePrompt
Reply
Answers (
0
)
How to i write to a file in xml?
How to implement OCR in C#