Moving Things From One Listview To Another
Hey guys I have one listview called report on a form call antivirus. This listview has checkboxes.
I have another listview with no check boxes on a form call resuls.
What I would like to do is when an item or items is checked, whatever is in the first column of the report listview on the antivirus form goes in the results listview on the resuls form. The same as the second column, I would like that repeated as well.
But the twist is if the user checks a problem and then presses the delete button. I would like the 3rd column of the results listview on the resuls form to say "Deleted" for that checked item.
OR if the user checks a problem and presses ignore then it would just say Ignored by the item in the 3rd column.
Can anyone tell me how I could do all that?
Thanks!
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Moving Things From A Listview To A Textbox?
Hey guys I have a listview called report and it has check boxes. I have another form called form2 with a text2.text.
Is there a way when I check one item and press a button that checked item goes in the text2 of the form2?
Its just the item from the first column of the report listivew.
Thanks!
Moving Things And Deselecting Things.
Okay, I have two questions. First I'll give you the noobish one. How do you deselect something like a command button so it's not highlighted? I also have a problem with my end of the year project I asked for help with a while ago. I'm trying to make it so that when you click a button, the notes on a measure (of music) move down to the next set of lines instead of going to the right off the screen. It's hard to explain, but here's the code for the command button:
VB Code:
Private Sub Command1_Click()intOMG = intOMG + 1If intOMG > 8 Then Command1.Enabled = FalseEnd IfLine1(Line1.lbound + intOMG).Visible = TrueLine2(Line2.lbound + intOMG).Visible = TrueLine3(Line3.lbound + intOMG).Visible = TrueLine4(Line4.lbound + intOMG).Visible = TrueLine5(Line5.lbound + intOMG).Visible = True End Sub
Here's a picture of the form, which is probably the best way I can show you:
http://img.photobucket.com/albums/v6...r/untitled.jpg
Also, how can I make that scrollbar work? This should be my last question about my project (seeing as it's due tomorrow), so thanks to those who help.
Moving Things*
Ok, i have a shape that moves across the form (looping)
i have a timer that subtracts 10 out of the shape.left every 1 sec. from time to time i want to change the speed of this, like (-20) (-30)
etc......
so far i tried the following
Yellow1.Left = Yellow1.Left & Text1.Text
Obviously this did Not work, lol.
Does anyone have any better suggestions on accomplishing this? Thanks
Moving Things Between Frames
How do i move for instance a label between 2 frames? i tried with label1.container but that didnt work very well, so i guess thats not what its used for or im doing something else wrong.
Moving Things Into Tabs
i have a bunch of labels and text boxes that are in a form. i just discovered the tab function and when i try to move them into the tab they just end up going underneith. how do u get them to go on the tab?
Help With Moving Things In Arrays
Hey people.
Here is my problem.
I have an array of a size 10. Anyway i want to know how to delete and item in the array and move every item in the array down one so that it fills the empty space. So that I have no empty spaces in the middle of my array only at the end of it.
I have puzzled on it for ages.
Any help would be aprreciated.
Need Help With Timers And Moving Things
I'm trying to use a timer that every time it refreshes, it will move the image up a little till a certian point then move it back this is the basic part if some one can answer this for me then i'll ask my next question.
Delete Things In A Listview?
Hey guys I have a listview called lvwfound, and it contains file locations like C:windows
otepad.exe
now I would like to use the kill command, but how would I kill whats in the first column in a listview? would it be something like Kill Me.lvwFound.ListItems(1), 0, 0?
so if there was many items to delete it would have to go through them all one after another, so would it end up being like this...??
VB Code:
Dim Z As Integer For Z = 0 To lvwFound.ListItems - 1 Kill (Me.lvwFound.ListItems(1), 0, 0(Z)) Next Z
??? I would like to test it out, but I am afraid I might delete the wrong thing by accident lol
Moving A Listview Item And Its Subitems To A New Listview
Hey Guys,
Having a bit of trouble. I am attemping to move a selected item and its subitems from one listview to another. I have no problem getting the contents of the first column, but I can't seem to get the subitems over.
Example: I have this in the first listview:
Code:
|Item |Quanity|Price |PQ |
Bananas 2 $.50 $1.00
Then when I try to move that whole row to the other listview I can only seem to get this:
Code:
|Item |Quanity|Price |PQ |
Bananas
No subitems . Any links or help would be appreciated.
Regards,
Max_Power
Moving Through A Listview
Hi!
Does anyone have any idea for coding, to move through a listview (it's in Report Mode). I essentially need to know the statments for:
a) set listview to the 1st item (anything like ListView1.BOF?)
b) move to next listitem
c) do until Listview is at the end (anything like ListView1.EOF?
Any Ideas?
I'm trying to loop through a listview, to check for values. So I'll need to set the listview to select the first item, and then DO UNTIL it's at the last item.
Thanks everyone!
-Matthew-
www.comperfection.com
Moving In A Listview
a) I pass the number of item in a listview to a variable
irecordcount = ListView4.ListItems.Count
b) I (i suppose) set the view to the first item
ListView4.ListItems(ListView4.SelectedItem.Index + 0).Selected = True 'Posicionar en el registro 0
c) In that position a call a routine to save the data
Call DetalleSuscripcionDireccion(txtsuscripcion, Me)
d) the i move to the next item in the view
ListView4.ListItems(ListView4.SelectedItem.Index + 1).Selected = True ' Avanzar
i do a loop from 1 to the number of item in the view.
WHY it is not moving?
What i am doing wrong?
Moving On A Listview
How can i move to the next record on a listview automatic?
I mean read the whole listview from record one to n
Moving Through Items In A Listview
Am I being a complete , or what? I'm trying to move through the items in a listview, so that I can insert the entries one-by-one in to DB - ie each item in the listview represents a new record in a DB table.
Now, I would have expected (as with all things VB) this to be quite straight forward. Something along the lines:
ListView1.selecteditem.movenext
I know this a bit hopeful, but I can't believe there's no way to incrementally move through all the items.
I've been through MSDN and searched this entire forum for a similar thing but I cant find anything.
I must be missing something really obvious here!
Listview Item Moving
Hi there,
is it possible to move items in a Listview control(Up and down the list) and how, this one is baffling me
the pig...
Listview, Moving Columns?
Well, i cant really explain the title in just a few words. I want to add 2 more rows to my listview, but i dont want to add them at design time (alot of code to change then).
The problem is, that i want the two rows that i add, i want to move them so they are positioned in-between two columns that are already there.
So, i added rows 12,13 to my listview during design time. I want 12 and 13 to appear to be inbetween columns 1,2.
Hope it makes sense
Listview - Moving A Selected Row Up Or Down
Hi,
I want to allow the user to order items in a listview according to their choice. So I need to move a selected row in a listview up or down (by pressing up or down command button). How can this effect be acheived ?
TIA
mecracked
Moving Items In A ListView
Hi,
I'm using a ListView to show information. I want the user to be able to click and drag one of the ListView items to move it higher or lower on the ListView. Is there any way to do this? I know that you can do it with command buttons, but is there a way to do it with the mouse?
Thanks!
Disable Moving Of Image In Listview???
I use ListView in Microsoft Windows Common Controls 6.0 (SP6). I can add image to fill background but when i scroll-down, the image is moved!
I want image not to move. How i have to do?
pls help!
Thanks
Moving Multiple Listview Items Up Or Down At Once
Hi, does anybody know how to move multiple selected listview items up or down at once?
I found the subs below, but they only move one item up or down, even if I have selected multiple items.
Thanks.
vb Code:
Private Enum menmDirections MoveUp = 1 MoveDown = 2End Enum Private Sub MoveItem(ByVal penmDirection As menmDirections)Dim lvwItem As ListItemDim lvwNew As ListItemDim lvwSubItem As ListSubItemDim lngIndex As Long Set lvwItem = lstView.SelectedItem If Not (lvwItem Is Nothing) Then If penmDirection = MoveUp Then lngIndex = lvwItem.Index + 2 ElseIf penmDirection = MoveDown Then lngIndex = lvwItem.Index - 1 End If If lngIndex > 0 And lngIndex <= lstView.ListItems.Count + 1 Then Set lvwNew = lstView.ListItems.Add(lngIndex, , lvwItem.Text) For Each lvwSubItem In lvwItem.ListSubItems lvwNew.ListSubItems.Add , lvwSubItem.Key, lvwSubItem.Text, lvwSubItem.ReportIcon, lvwSubItem.ToolTipText Next lvwSubItem lvwNew.Selected = True Set lvwNew = Nothing lstView.ListItems.Remove lvwItem.Index End If Set lvwItem = Nothing End IfEnd Sub
vb Code:
Private Sub MoveUp(lv As ListView) Dim itm As ListItem, itmNew As ListItem, i As Long If lv.SelectedItem.Index > 1 Then Set itm = lv.SelectedItem Set itmNew = lv.ListItems.Add(itm.Index - 1, , itm.Text, itm.Icon, itm.SmallIcon) For i = 1 To itm.ListSubItems.Count With itm.ListSubItems(i) Call itmNew.ListSubItems.Add(, .Key, .Text, .ReportIcon, .ToolTipText) End With Next lv.ListItems.Remove itm.Index itmNew.Selected = True lv.SetFocus End IfEnd Sub Private Sub MoveDown(lv As ListView) Dim itm As ListItem, itmNew As ListItem, i As Long If lv.SelectedItem.Index < lv.ListItems.Count Then Set itm = lv.SelectedItem Set itmNew = lv.ListItems.Add(itm.Index + 2, , itm.Text, itm.Icon, itm.SmallIcon) For i = 1 To itm.ListSubItems.Count With itm.ListSubItems(i) Call itmNew.ListSubItems.Add(, .Key, .Text, .ReportIcon, .ToolTipText) End With Next lv.ListItems.Remove itm.Index itmNew.Selected = True lv.SetFocus End IfEnd Sub
LISTVIEW(stoping Icons From Moving..)
i have been seaching for a way to disable moving of icons in a listview.. and i haven't found anything yet. I see it possible in other programs.. but how is it done??? that i don't know. So i am asking you all if there is a way.. a non API approach would be much better.
Listview Report Moving Items Up && Down
Hi everyone ,
I know how to move the first column field up and down in a listview report.
But now i have 10 columns and the user wants to select a row and puts it one down (if its not already at the bottom) or one up (if its not already at the top).
thx
ListView - Stop Icons Moving
Hi,
I'm using a listview control in the Icon mode, to display a control panel for my application. The only problem is that when a user clicks an icon, when you move the mouse it moves the icon as well.
Is there any way to stop the user moving the icon?
Moving The Selected Item In Listview
****
I solved the problem, thanks to all for your attempt at helping.
Here is the code:
Set ListView.SelectedItem = ListView.ListItems(i)
****
I have a Listview populating from a database and sorts the data alphabetically.
Now when the user deletes an item from the database, it also refreshes the listview.
The question I have is, the listview always sets focus to the last item it added, however it does not add them alphabetically, so after there added and the listveiw sorts them, the item selected could be anywhere!? How can I have this list view set focus to the first entry? Or better yet one that I specify or has been saved (IE save the record ID when they exit the prog, so when they come back I can pull that and set focus to that item)??
Thanks for the help.
Bryan
[This message has been edited by Bryan (edited 01-12-2000).]
Moving ListView Column Headers
Is there a way that the user can move the Column headers of a list view control. Additionally a way to select the whole line rather than the first column.
Thanks.
Moving Columns On A Listview (Report View)
I want to programmatically set the Position of the columns in a list view.
This is an "after thought" so I am trying to do it on already loaded listviews.
I see from a little experimentation that I can easily move the column headers by simply changing the .position property.
But that does not bring over the data for that column. (Just the header)
Do I have to manually move the data or there an easier way?
(By "manually move the data" I mean set up a temp array, copy the column's data, update new column after moving other column into original col number)
Regards,
Stop Item Dragging/moving In ListView
Is there any way you can stop the user from moving the item position in a listview?? I need them to stay the same as i added them first by code, with them being fixed for the user and not allowing any movement of item position!
thanks!
Code For Moving To The First Blank Cell In A Worksheet; Moving Left,right,up Or Down
I have created an application form as a userform in Excel. I need to send the data entered into my text boxes when the program runs to separate excel cells in a worksheet.
My problem is I can use code that will send the textbox entry to a specific cell eg. If my textbox is named Surname I can say
range("a5").value = surname but if I do that when I run the programme to enter the next record for someone else the first record will be overwritten.
I NEED A CODE LINE THAT WILL TAKE ME TO THE FIRST EMPTY CELL AND ALLOW ME TO MOVE DOWN OR TO THE LEFT OR TO THE RIGHT
Moving Balls To Moving Images??
Please take a look at this as it is related to my question
Thread
is it possible for the create images to be an image type that is already drawn?
2 Things
Didn't want to make two posts, but I have 2 questions:
How do I make my program check for a certain file, create it if it isn't there, if it is then add the specified text to the bottom?
Second question:
How do I make tabbed panels?
Thanks in advance
All The Things...
hi, i'm new to vb and i'm new here too.. :-)
i know some questions a lot of people are asking, but i'm asking too.. lol lol, so here goes, i know you all !experts! out will help
Custom-Shaped:
1) How do I make 'Not only it is custom-shaped form' but the edges are
smooth? Is it something like Anti-Aliasing? I saw Winamp3 with this feature.
2) So i mean 'not only it is custom-shaped' but the edges are 'smooth', is it doned by using PNG-24?
Flash:
1) How to integrate Flash into VB?
Others:
1) How does DirectX helps with transparency?
2) How do i deal with animation? Something like 'Ashampoo Media Player' where the 'blue liquid' just flows.. (i think)
I'm not good at VB so i hope everyone can help! :-) Thnx and much thnx!
Two Things At Once?
I have my game loop set out something like this.
Code:
While brunning
DoEvents
Cls
Call Draw_Screen(Me)
Call Artificial_Intelligence(Me)
Call Collision_Detection(Me)
Call Update_Positions(Me)
Wend
and within my AI sub i have these.
Code:
Call AILongVision(FrmUser)
Call AIThreat(FrmUser)
Call AIShortVision(FrmUser)
Call AIWorkPath(FrmUser)
and within my AILongVision sub i have the code that works out my AI's long vision and all that stuff. and when something within the sub is triggered it calls another sub which draws some stuff on the screen using a while loop.
the problem is that when this loop gets called the whole program freezes until this loop finishes. how do i let it keep rendering my game while doing this loop?
About Some Things...
Hello, again my post got deleted or something, im making a shape shootout game with of corse shapes. i have two squares that are going to shoot lines at eachother, its really basic. but now to my question, i want to know how to make it so if the red line touches the shape in anyway then the shape is no longer able to move and it dissapears. can you help?
Using My Db For Other Things
Hi everybody,
I''m making a program in which you can print document but some documents require to be printen with Word. My Database (an access file)
is used with this. The word document requires data from the database how can i open my word file in word with al the data filled in ?
The Best Way To Do Things?
Alright first thanks to everyone who has chosen to help me on my quest to make things more simple K.I.S.S. Anyway, This is a question I hope to dialog on. I'm trying to speed up a proposal process by adding access database support to an excel template. I need to dump some data across several cells depending on the criteria selected in one of two dropdowns in excel. So far I'm querying the DB with ADO and dumping the results into a xlVeryhidden sheet. My logic so far is to have two tables tblBrand and tblProduct. Table brand looks like this:
brand_ID, brand_name
1.............BrandX
2.............BrandY
3.............BrandZ
4................
Table Products looks lilke this:
product_id, brand_ID, prod_model, prod_desc, prod_price, prod_retail
1...............2.............ABC123.......cool.........$1500........$ 2200
2...............2.............ABC333.......cooler......$1800........$2 500
3...............1.............XYZ454.......Sweet......$2000........$30 00
4...............4...................
I'm going to populate the first dropdown with the info from tblBrand. This info is being dumped into the hidden sheet everytime the template is opened to avoid having to worry about an inaccurate DB population. I hope to use the dump to fill the dropdown. If the person choses brandX from the dropdown I would like to requery the DB to select all the products with the corresponding Brand_ID like this:
Code:
dim Sql as string
dim BrandID as integer
BrandID = 'First dropdown brand_id value
Sql = "SELECT * FROM tblProducts WHERE brand_ID = "' & BrandID & '""
Hope this Makes sense so far. I program in PHP originally and can do this kind of thing in PHP any day of the week but I don't know VB/VBA that well So... First Question Is this possible?Second Question Assuming first question works. Am I on track with my thought? How would you do it?
Not Sure How To Set Things...
Okay, here's what's going down.... I want to set a small box down into my
DirectDraw screen at 1024x768, and I can't seem to get this done... I have the "FullScreen" initialization and I want it to display, something.... maybe a box rotating 360-Degrees... If you can help, please do... Thanx!!!
Little Things In VBA :)
Hi all! While working with VBA I stumbled on couple things that I didnt like and couldnt figure way around
1. I created an application in VBA... so when I start it, the Exel workbook loads my first userform. My problem is that this workbook is always in background... its not like workbook has a .Hide method How do I hide it?
2. Is there an elegant way to add 1 to variable? (like i++ in C/C++)
3. Is there any way to export VBA application into independant .exe file?
4. How to get out from While ... Wend?
I cant think of anything else right now... maybe ill remember later
Any help is always greatly appritiated. You guys are real pro's
Two Things
1) Is there any way to change the caption of a command button or is putting a border on a label the only way?
2) How can I take away the top bar, or more importantly, the minimize, restore, and exit buttons in the top right hand corner? The exit button at the top doesn't fully exit my form, mazimizing it makes the program look all weird, and the minimize isn't needed for me.
Thanks!
2 Things...
I'm sure the answers to these questions are here somewhere, but I can't find them... So Here Goes.
How do I make a Cancel Button interrupt a program, while it is querying a remote machine?
And
How can I make the Return Key action the program after entering text in a field? I have to click a button and would love the Return key to do this.
Thanks.
2 Things
OK, 2 things,
1 How do you use the Rnd funtion?
2 How do you create global variables?
3 Things
I am nearly at the end of my current project now, however i have a few remaining problems that i just cant work out.
1. Multiline textboxes - IF i have a scrollbar, they always seem to stay scrolled to the top whenever the text changes. Is there a way to keep the text box scrolled down to show the last entry into it?
2. Automatically detecting if they have disconnected from the internet- Is this possible?
3. An annoying little problem using the shell command. -
My app is a program that runs along side a game, however if i use thr shell command then in the game some things (like key mapping, mouse sensitivity etc) are reset to the default.
Im sure its a prob with using shell() because if i run the game manually by clicking the exe there is no problem - even when the app is running. Any possible ideas to this?
Once again thanks in advance.. im so close to finishing yet cant release it until these little niggles are sorted out.
David
Few Things
how can i make a button open internet explorer?
how can i put the lines in the menu editor like there is in internet explore file thing between save as and page setup
how can i make a *.cur or a *.ico to use as an icon for my program - what program and where can i get it
Two Things.
When I double click on a label, I want to save the name of the label to a variable.
Then I want to use this variable to change several properties of the label, such as caption and background color.
Essentially I'm trying to develop one piece of looping code, instead of pasting and changing the code 42 times for each label and combo box. I declared the variables as label, but I don't know how to get the name from the program.
I tried setting the variable to the label name, just to test the rest of my code...but that wouldn't even work. It said "with object variable or block variable not set" I tried changing the variable type to a string, and it said "invalid qualifier" when I tried to use it as a control name.
Any ideas?
Few Things
Im Pretty New To VB, I have been reading tons of stuff on it and reading this forum has been helpful, but i would like to know a few things.
Im trying to make a unique key for a system that will be unique to that system, so i figured i would encrypt the computer name... but i dont know how to identify the computer name if somebody could help me with that.
And something that may be simple im not sure, how to return a random letter, i know about numbers but not sure about letters.
Any help would be appreciated.
A Few Things I Could Use Some Help With >>;
Well i have a few questions...
I want to have my form/program hold down a key when a check box was ticked. then it would stop when Un-ticked.
Then,
How would I make it so when you click on a menu item it opens up a webpage or an email application to email something/view a website?
Thanks,
Daerd.
How Can I Do These 2 Things...
Totally unrelated but how can i do them...
1. Let my program connect up to the internet and save a file on the site so then they can load it later? This would probably have to include an accounts system.
2. Make it work with a webcam so maybe like one of those webcam games where you can move and then virtual things can bounce off you?
A Few Dll Things...
Gwah... well... im trying to make an anti-software cracking system sorta thinger...
I've got my DLL written with all of its functions... and i was wondering if i could inject the dll into another process (lets say explorer) and then call a function from it? the main thing that i want to see is if its even possible O_o
thanks =]
A Few Things
Ok, I have a few questions, I thought this is the best place to ask, since this place rocks!
Ok, well, First i seen another post like this, bu not sure it it would work, but first I want when my program (Radio program again) opens, It checks right away if theres a connection to the host, If so then it leaves the program be, if it returns that it cant, give a message saying that well it cant like " Sorry, no DJ at this time "
Second, i am going to search the forums and try this one on my own, but if its ewasy tell me, its for adding items to a combo box.
That will about it untill I get this little bit done.
How Can I Do The Following Things
Hello Everybody :
I am a new member here and I really found many important codes and DLL(s) here but I have some questions that I hope I can find the answers of it Here :
Note : I ve searched before writing my topic so please forgive me if I couldnt
find the answers while I was searching :
1 - How can I Insert a PNG Image in VB 6 ? Is there any ocx , code , dll allows me that because
We are all knows that the PNG Image is not available to add in VB 6 ?
2 - Is there any .DLL that allows me to save with all images extensions ?
3 - How can I search for a word in the text in the RichTextFile and make a replace ?
Soooorry for the long questions but i really need the answers
Regards
Black Wolf
|