|
You try to assign empty image list in your code. That's why items in the second list view have no images.
I think the simplest way to solve it is to assign the same image list for the second ListView in the "import".
private void import(object sender, EventArgs e)
{
...
this.listView2.LargeImageList=this.listView1.LargeImageList = imageList;
}
...And remove strings where you assign empty image list
private void listView2_DragDrop(object sender, DragEventArgs e)
{
...
this.listView2.LargeImageList = imageList;
}
...And in conclusion the folowing loop is meaningless
foreach (ListViewItem each in listView1.SelectedItems)
{
listView2.Items.Add(item.Text, item.ImageIndex);
listView2.TileSize = new System.Drawing.Size(100, 80);
}
|
|
|
|
|
thanks 4 ur reply but it didn't work......
|
|
|
|
|
any idea.....actually is there any way to add image to image list ....by using item....bcz item contain image....when i debug i can c...image image index and sub item....
|
|
|
|
|
hi am doing my mca final year,now am doing my project on .net my project name is two way sms thru modem .please tell me is it suitable project or not to my course?
|
|
|
|
|
No - because the only way to do SMS is to use an external library, which means you won't really write much code.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Nope: 'two way sms thru modem ' doesn't look as an acceptable project name.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
if you want to make SMS gate way then its good. other wise there are many gateways that expose api to send message by using there api you can easily make. but its not for Mca Project
|
|
|
|
|
hi all,
i have a string
string date= "09/02/27, 12:23:04"
the above string is in yy/mm/dd format, i want to convert it into a DateTime variable. When i convert i am getting the output as 9/2/2027, 12:23:04 PM which is wrong. I have tried the below code:
DateTime dt = Convert.ToDateTime(date);
so i suspect its not the way, i think there are something to do with the Globalization namespace? any help will be much apreciated.....thanks..........
|
|
|
|
|
Yes.. Datetime objects acts according to your globalisation settings in yout machine/Application. The easiest way is to use Datetime.Tostring(yy/mm/dd) whenever you want ot display it
|
|
|
|
|
DateTime.ParseExact() is what you need.
Cheers,
Vıkram.
I've never ever worked anywhere where there has not been someone who given the choice I would not work with again. It's a job, you do your work, put up with the people you don't like, accept there are probably people there that don't like you a lot, and look forward to the weekends.
- Josh Gray.
|
|
|
|
|
i will be gratefull if u can provide me a sample code, what are the values inside parseExact()??
|
|
|
|
|
Gosh, those buggers at Microsoft have been hiding that in the documentation[^] again havent they.
|
|
|
|
|
for cross thread communication i use a delegate and the method registered with the delegate takes a parameter.how can i pass this parameter to the method through the delegate?
|
|
|
|
|
You can pass it just like in a method call.. Delegate is actually hloding a method pointer.
|
|
|
|
|
thanks, i get the way..
this.invoke("delegatename","parameters");
|
|
|
|
|
If you have the delegate localy.. say delegatename is your delegate then call it like delegatename("parameters")..
|
|
|
|
|
Dear All,
i am sending it again please tell me how to use message in c sharp
the following code with is bold this line is highlighted in my code and error is the MessageBox.Show does not exit in current context.
PLEASE tell me solution.
MessageBox.show = c;
c = a - b;
MessageBox.show = c;
c = a * b;
MessageBox.show = c;
c = a / b;
MessageBox.show = c;
|
|
|
|
|
OK.
1 - it is RUDE to post your question again like this
2 - you are STILL not telling people you're using ASP.NET. We have an ASP.NET forum
3 - Overall, you're obviously not at a level where you should be doing this stuff, buy a basic C# book, learn that, then move on to web development.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Dear sir
pls help me i am build a project by in c# application some project idea or any suggetion for me pls send my email
thank u
mulla mdfozail
|
|
|
|
|
If you;re not trolling, you must be retarded. Buy a book on C# and read it before you try to get help online.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Dear sir
pls help me i am how to build project by in c# sharp some project idea or any suggetion pls send for me my email id
thank u
mulla mdfozail
|
|
|
|
|
dear
I am also new in C sharp and searching for some one who can guide me that's why i am posting questions on forums.
My suggestions is you have to find in books or on internet forums.
Thanks
|
|
|
|
|
|
Except, if you look below, he's doing an ASP.NET project. He will think this works, until he deploys it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
dear
Tell me where should i put this like i just want to display text Hello.
MessageBox.Show(c.ToString("Hello world"));
But problem is this when i build application then this error acquire like Messagebo.Show does not exist in current context.
why this is happening i just want to know this and what should i do to solve it.
Thanks
|
|
|
|