15,898,938 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 10012743 (Top 15 by date)
Member 10012743
12-May-13 22:22pm
View
try this method:
in a for loop, add the cell values of the column by incrementing the rowindex.
and assign the value to the cell you need the output.
you can do it automatically by writing the code inside the cell validating event(and dont forget to check the column value)
Member 10012743
7-May-13 8:39am
View
could you send the coding?
Member 10012743
6-May-13 14:31pm
View
instead of :
SqlCommand command = new SqlCommand("select * from subject_table", con);
type:
SqlCommand command = new SqlCommand("select * from table_articles", con);
its would be ok.
just change the values according to your need.
just follow the format or the idea how its been performed.
if you like it use it.
better dont try to copy and paste.
First understand how it is done; so you can do this type of problems by yourself.
-Irshad
Member 10012743
6-May-13 14:27pm
View
try to add this statement before assigning values to listBox1:
listBox1.Items.Clear();
which will clear all the data in listBox1 before assigning new values.
Member 10012743
6-May-13 6:51am
View
or do one thing :
change the event;
private void listBox1_SelectedValueChanged(object sender, EventArgs e)
{
}
try this one:
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
string url = listBox1.SelectedText;
webBrowser1.Navigate(url);
}
Member 10012743
6-May-13 6:38am
View
System.Windows.Form.Lisbox ?
or is it :
System.Windows.Form.Listbox
please check the class name for listBox1
or are you doing asp.net or windows forms
Member 10012743
2-May-13 6:54am
View
Deleted
private void add_child_node(TreeNode NodeName,int noofnodes) { string temp=NodeName.Text; for(int i=0;i
Member 10012743
2-May-13 6:47am
View
Deleted
private void add_child_node(TreeNode NodeName,int noofnodes)
{
string temp=NodeName.Text;
for(int i=0;i
Member 10012743
1-May-13 8:21am
View
write the sql command.
Member 10012743
30-Apr-13 16:16pm
View
thanks
let me check it out.
Member 10012743
30-Apr-13 11:39am
View
Thanks OriginalGriff and CHill60.
So I will have to create a dynamic panel with the controls right ?
So how could I add the events (when pressing a button) and invoke them dynamically?
Member 10012743
30-Apr-13 11:25am
View
I was doing a project based on billing.
I have done almost in the project. But now I just thought of a new way which looks good than the old method.
Which would be more classic (if I say).
So I am thinking of any chance not altering the work I have done so far, and just by doing some arrangements I could accomplish the goal.
So for that;
I have made many forms;
In the main-form :
If I click Add_Button, The Add_Item form appears and I can add an item.
If I click Bill_Button, The Billing form appears and I can do the billing.
So instead of these Add_Item form, Billing form, I extended the main form (mainform.WindowState = Maximised).
And I added a panel. And in left hand corner a treeview.
so If I ever click the item on treeview, I could call the form in this panel along with the event handlers.
So a simple and good looking right?
NB: sorry for not pasting the design here. I cant copy paste the diagram. And I dont have the snapshot tool.
hope you get my part.
and as OriginalGriff had said, I will have to dynamically add the controls of Add_Item form along with the event handlers of that form.
so sergey, is there any other way out?
Member 10012743
30-Apr-13 11:05am
View
sorry johan,
i just cut and paste the question. No need of that statement.
private void add_child_node(TreeNode NodeName)
{
TreeNode tn = new TreeNode(NodeName.text+ ".1" );
NodeName.ChildNodes.Add(tn);
}
I think you would be more clear now.
Just send the parent node to function.
and if he needs to create n no. of child nodes, he would better use this in a loop function [for, do-while].
Member 10012743
30-Apr-13 10:29am
View
see Mr. Sergey,
I just need a help in a matter. I ask for your favor.
I am not a professional, so please help.
How could I add an event handler dynamically?
Member 10012743
30-Apr-13 9:56am
View
yes.
and it works as just as the old form itself.
Show More