I'm trying to create a custom control based on TreeView, to be used in other programs.
The control should read the disc folder structure and display it.
The control builds OK, finds the data and builds the tree items.
Trouble is, in the host program, nothing is visible.
Any help will be appreciated.
Since you have not given us any information about the problem, that is going top be difficult. Remember, we cannot see your screen or source code. You need to do some debugging and provide some actual details of what is happening in your code.
To add to what jibesh said - please don't do it like that! Never store passwords in clear text - it is a major security risk. There is some information on how to do it here: Password Storage: How to do it.[^]
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
i want to detect mouse over on title bar or mouse out from title bar in my c# winform apps. i got a code sample which works but the problem is when i place the mouse on any area of win form then mouse leave occur and when i put mouse on title bar then right event call. actually i want that if i place my mouse on any area of form except title bar then nothing should happen.only when i will place mouse on title bar then a notification should come to me and when i will remove mouse from title to out of my form then label should display mouse out message but if remove mouse from title bar to form body then label should be blank.
here is code. just run this code and tell me what modification i should do to get my expected result. thanks
i have a database called power,i'm trying to save data into it.
after insertion the graph is initialised with new values.So everything seems to work perfectly,But when i restart my application i don't find the new value,it's not saved.
powerdbDataSet db = new powerdbDataSet();
// TODO: This line of code loads data into the 'powerdbDataSet.powertable' table. You can move, or remove it, as needed.//this.powertableTableAdapter.Fill(this.powerdbDataSet.powertable);this.powertableTableAdapter.Fill(db.powertable);
chart1.Series.XValueMember = "time";
chart1.Series.YValueMembers = "power";
chart1.Series.IsVisibleInLegend = false;
powertableBindingSource.DataSource = db.powertable;
I suggest that you are only updating the values in your table adapter but the table adapter does not store the data into the database - the data stays in the memory (table adapter). There must be a method to force the table adapter to update the database - Don't ask me how it is called exactly but you might want to have a look into the corresponding MSDN article[^].