|
first of all u get max of localid and then increament 1
|
|
|
|
|
i cannot understand...image index mean just a index of image or...it carry together with image also...???? i mean, is image index contain the image that related to index?????
if i call image index could i able to get the image????
A S E L A
|
|
|
|
|
|
|
Sit back and think as to what you want to do.
imagelist
A S E L A wrote: imagelist1.Images.Add(???????????????????)
what do you think 'Add' takes as parameter? It got to be an Image Object. Don't you think?
Now look at your
A S E L A wrote: foreach(listViewItem each in listView1.SelectedItems)
ListView is just a collection of, well, items. You got your selected index, kewl, now go get your Item. What kind of object is your item? Is it am image? if not not what do you need to do to convert it to Image? Now take that Image object and give it Add().
I'm not working on windows forms, but it does not take much to figure it out. What I said may not be entirely correct, but should give you general idea.
Yusuf
|
|
|
|
|
hi yusuf
thanks a lot to ur reply it perfect....
i need to ask one more question
on application run time....when i bring my curser to "each" it shows listview:- ListViewItem:{****(name of image)***.jpeg}
so can i use that to conver to image ???
actualy im new to programming....thanks 4 ur help....
A S E L A
|
|
|
|
|
A S E L A wrote: actualy im new to programming....thanks 4 ur help....
Buy a book on C#, read it, and start with the basics. Abandon what you're doing now, you obviously don't know enough to do it well. I assume you're not being paid for it ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus
im tring to do is drag drop selcted images from imagelist in listViewBox into another imagelist which also im listViewBox.
my item drag can work
dag enter can work
and i have done rest all the thing...im just stuck in this part only....dragdrop part.....ya i already bought books and reading....and im willing to learn everything soon....
if u know the answer to my question pl tell me the answer...
one more how can i get the Image from ListViewItem each....???
A S E L A
modified on Tuesday, March 3, 2009 9:36 PM
|
|
|
|
|
You may want to go back and read what Christian wrote.
There is nothing wrong with been new and wanting to learn. But the way to learn is first to read and understand the basics.
Yusuf
|
|
|
|
|
Yusuf...
can u help me to conver ListViewItem each to an image...???
i must do this befor do the other things....
A S E L A
|
|
|
|
|
A S E L A wrote: can u help me to conver ListViewItem each to an image...???
I did, go back and read my posts
A S E L A wrote: i must do this befor do the other things....
send me your teachers email address. I will send him the code on your behalf.
Yusuf
|
|
|
|
|
i don't have teacher's e mail.....
by the way i don't want all of u....ill do it by self.....when i done ill post my code to public....
thanks 4 all of urs help....
A S E L A
|
|
|
|
|
A S E L A wrote: im tring to do is drag drop selcted images from imagelist in listViewBox into another imagelist which also im listViewBox
Either you're biting off more than you can chew, or you're trying to do paid work before you know your basics. Either way, stop it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
remeber....never give up anything untill today....every thing fine.....don't worry about that....k
A S E L A
|
|
|
|
|
|
Drag Drop Bitween two imageLists in listViewBoxes using ImageIndex....
foreach(listViewItem each in listView1.SelectedItems)
{
imagelist1.Image.Add(listView1.ImageList.Images[each.ImageIndex]);
}
A S E L A
|
|
|
|
|
for a project i have to use a database and create a form with it. ive created the form and layed it all out. i have to do sort and then a search feature. the sort part i haev done using the catolougebinding..... the search bit has to bring a new form up. i am able to bring a new form up but do not understand what code to write in there.
here is a link to what i haev to do which is in a pdf format - http://www.megaupload.com/?d=B34ISOYE[^]
that will also explain what i have to do.
any help will be really helpful.
thanks
Alex
|
|
|
|
|
saunders1989 wrote: but do not understand what code to write in there.
this[^] might help
Yusuf
|
|
|
|
|
I dont know it its just me but that link just takes me to my pdf file i uploaded?
|
|
|
|
|
Hi..
I have a form which is like following:
Sup.Id: tbox1
S.Name:tbox6 ->When i select 1 it should populate the textbox6 with the proper name? how to do that?
Prod_Name: listbox1...It should only show product name once not twice how to do that?
Prod_Type: listbox2 -> How to view only product type e.g. F,H and T
CostPrice: tbox4 -> It should calculate from product table?
Prod.TradePrice:tbox5
Now as you see i have two tables Suppliers and Products..
In products table i have e.g.
p.name=prodA
p.type=F
p.Price=100
p.name=prodA
p.Type=H
p.Price=50
Suppliers Table:
S.id=1
S.Name=InStock
I will be very thankful to you pls help out...
|
|
|
|
|
Any help please...
|
|
|
|
|
I have many applications which are using a named instance of SQL Server. They all worked fine until the DBAs reinstalled the sql server. Now the apps can not create connection to the sql server. The exception does not really help--even googling. Exception is Instance Failure.
I tried everything but nothing seems to work. It is a C# app and the config file does not contain double slashes. Here it is:
connectionString="Data Source=MainServer\NamedInstance;Initial Catalog=Shipping;Integrated Security=True";
I replace the MainServer by the IP address as some people suggested but no luck. Any ideas? What causes this?
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|
|
I thought you needed \\ at the front to show it was a network path ? Can you connect to it in other ways ? Might the reinstalled SQL Server be rejecting remote connections ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
you are using a named instance of sql server. when the DBA reinstalled the sql server, what happen to your named instance? Does it still exist? The first test is to connect to your db through server manager. Can you connect to it using your old connection string? If not, I'd start there.
Yusuf
|
|
|
|
|
Last time I got that it was double-slash buggering things up.
Try flicking Integrated Security to SSPI and see if that helps.
|
|
|
|