|
I have this listview that is populated using an arraylist, I have check boxes assigned to this listview, whenever the user selects a check box the index of the checked item must be returned and the item at that index within the arraylist must be removed.
My problem being the following. The actual item.checked can only be used when the itemcheck event has completed, so you can't do that within the event cause it hasn't occured yet.
Anyone any ideas?
Thanx in advance.
|
|
|
|
|
Hi
What then do you want !!
Ahmad Shaban
|
|
|
|
|
the index of the checked item must be returned and the item at that index within the arraylist must be removed.
|
|
|
|
|
Hi
single click your listview then hit F4 in your keyboard select "Events"
scroll down to ItemCheck Event and double click it then type
MessageBox.Show ( "The Index of the checked item is " + e.Index.ToString() +<br />
"\n Its state was" + e.CurrentValue.ToString() + "\n and now its state is " <br />
+ e.NewValue.ToString());
put some could so you can get help with the array
Ahmad Shaban
|
|
|
|
|
|
I m working on a c# and sql server based application...
I m fetching data from csv file and saving it's record One by one in to the database.
there is a column colled Description in my csv file as well as Sql server table.
In Sql i have given the data type "text" for the description column...
And it's working fine on my local machine but on server description gets truncated...
I have checked the csv file There is no comma in description
Everything is same StoredProcedure...DLLs...
I m not getting this...
If any one has any idea abt this pls help me out...
thanx & regards
Anuj Kamthan
Software Developer
Solversa Technologies,
Pune - 411007, India.
http://www.solversa.com
|
|
|
|
|
Try to change column type of Description from text to varchar(255)//varchar (increase by yourself)
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
Nop Body,
I have tried this also...
Same result working fine on local machine but not on server.
Anuj Kamthan
Software Developer
Solversa Technologies,
Pune - 411007, India.
http://www.solversa.com
|
|
|
|
|
How did you come to the conclusion that the data gets truncated? Did you check the data in the database, and if so, what program did you use?
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I have problam with convert.tostring(),
this function take alot of CPU power.
there is anather function or way to do this
action?
thank you
and have a nice Day!!:
|
|
|
|
|
if you try to convert byte to string try this:
Convert.ToString(your bytes)
or can you explain more your problem????
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
this is what I doing
---
byte Number;
convert.tostring(number);
Number++;
---
in thread
and the CPU Process is over working
|
|
|
|
|
if variable Number increase by one try to sign in for loop, example
string s="";
for(byte Number=0;Number<=15;Number++)
{
s=Convert.Tostring(Number);
}
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
|
Hi
Try this
<br />
byte Number;<br />
<br />
Number.ToString();<br />
<br />
Number++;<br />
Ahmad Shaban
|
|
|
|
|
i try this way
and the problam not fix
but thank you anyway.
|
|
|
|
|
Hi
maybe you should check your loop
Ahmad Shaban
|
|
|
|
|
I recommand you to not use muc variables because your project grows and becomes big procces in CPU.
Check ur code and insetad variables use dirctly code.
Use as little bit number of vraiables as is possiblity.
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
You have to look for the code that causes the cpu load somewhere else in your program. Converting a byte to a string is a very simple task that will take mere microseconds to perform.
---
b { font-weight: normal; }
|
|
|
|
|
How can I convert binary data to image then converted binary data i want to save as jpeg or another format
regards...
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
Hi
Load the data into a MemoryStream , then use Image.FromStream . Then use Image.Save .
BTW, you must keep the MemoryStream open until you have finished with the Image .
----------------------------
Be excellent to each other
EasiReports[^] My free reporting component for WinForms.
|
|
|
|
|
Thanks and it works perfectly...
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
hello, im building a web browser in visual c# (vs2005) and while it works fine i cant do it to open new windows in my application, it opens them using external ie windows, any idea how i can force it to pen them in new windows of my application instead of ie windows?
D.M
|
|
|
|
|
Go into the articles section and look for articles in the C# COM Interop section. There are two articles that talk about interaction betweeen IE and a Windows Form application including my article. You probably want to have the IE code fire an event back into the WinForm code which would then cause the WinForm code to open a new window of itself.
|
|
|
|
|
I want to use a font from any where except Windows installed fonts.
I don't want to draw the text, I want to use the font as it is, so is there any way out?!!
alaa
|
|
|
|