|
you can do it like a classic call
|
|
|
|
|
Usually any functionality i have in an event handler that will be used by anything other than any events it is assigned to i would put in a separate method, which can then be called directly. But that's a suggestion rather than an answer so...
You could try to call it like any other method, i.e.
inputCheckedListBox_ItemCheck(this, new ItemCheckEventArgs());
...but as i said i would never need to do this so i cant say for sure it would work.
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Thanks for your suggestion and help. But i didnt work.
Well why i need this as i want to get selected item in arraylist from chekbox list. For that i want to CHECK whether item is selected or not.
if you could help me out in that...
|
|
|
|
|
Try this one
put this code in your function where u want to call the function
object mysender = new object();
ItemCheckEventArgs mye = new ItemCheckEventArgs();
inputCheckedListBox_ItemCheck(mysender,mye);
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
It didnt work..
error ItemCheckEventArgs():"it wont take zero value"
|
|
|
|
|
try this...
object mysender = new object();
ItemCheckEventArgs mye = new ItemCheckEventArgs(0, CheckState.Checked, CheckState.Checked);
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
Ya.. it works
thanks a lot.
|
|
|
|
|
It depends on what the inputCheckedListBox_ItemCheck actually does. Usually you can call such a method with null as both arguments.
|
|
|
|
|
Hi
I want to create views of sql server tables , i have loaded columns of a specific tables of specific databases in a check list box in form now i want to know how to fill those columns in a grid view in mdi parent and create view through those columns, means how to create views just like they are created in sql server?
plese some one help
Mariam
|
|
|
|
|
mariamkhaqan wrote: i have loaded columns of a specific tables of specific databases in a check list box in form
I have no idea how this relates to anything else you said...
mariamkhaqan wrote: how to fill those columns in a grid view in
Fill a DataTable with the appropriate data from your database, then just set the DataGridView's DataSource proeprty to the DataTable you created.
|
|
|
|
|
I had a small application of BHO made in c#.
when this BHO got injected on IE7, as the windowStateChange Event gets fired as we switch to different tabs (when many tabs are opened in a windows), but how can we Identify the tab that is active among all the tabs?
|
|
|
|
|
how to read data from lan serial port
i have ip abd port number
|
|
|
|
|
Do you people no know how to to basic research[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
how about going to msdn and get the sample there..!!!
|
|
|
|
|
|
can anybody tel me how i can find tables from database which name is like emp,
i m using sql 2005.
my tables r emp1,emp2,cust1,cust2,.......
i have to show only emp tables into combo box.
|
|
|
|
|
Easy.
select name from sys.tables where name like 'emp%'
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
|
KIDYA wrote: my tables r emp1,emp2,cust1,cust2,.......
Thats about the worse database structure you could have gone with. You should have one table for emp's and one table for cust's (employee's and customers?)
|
|
|
|
|
|
Ok how about this - first time it's run, store the date in the settings. Every next time it's run (an periodically while it's running to prevent people from cheating by never shutting it down) check whether the difference in days between the saved date and the current date is greater or equal than 30.
When it finds that to be true, it's up to you what it should do (just shut down? give the option to buy? format c?)
People could cheat by changing the date, but I don't think many people would actually do that.
edit: I know I'm not supposed to complain about votes, but I really really don't believe this to be a bad answer. Last modified: 3hrs 13mins after originally posted --
|
|
|
|
|
would you don't mind , give me some example code for this application issue.
|
|
|
|
|
You want what - oh snd me the codz, sorry you need to do some of the work!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
would that be for off road use?
|
|
|
|
|
Hi..
Can anybody tel me how to find latest table created from database and display first in combo box list.
|
|
|
|