Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


[save] Need some help saving listbox without showing save dialog [VB.NET] filter_list
Author
Message
[save] Need some help saving listbox without showing save dialog [VB.NET] #1
Thanks for first thing.

EDIT:

how can i save the contains of a listbox without save filedialog poping up???

i know hoe to do the other way
[Image: 6caf54.gif]

Reply

RE: Need some help with something [VB.NET] #2


Removed. coder explained all and i had a mistake... X_X
(This post was last modified: 01-19-2011, 08:04 PM by Skullmeat.)
Pierce the life fibers with your drill.

Reply

RE: Need some help with something [VB.NET] #3
Code:
If ListBox1.Items.Contains(TextBox1.Text) = True Then process.start(TextBox1.Text)

I think this is what you are looking for.
[Image: rytwG00.png]
Redcat Revolution!

Reply

RE: Need some help with something [VB.NET] #4
coder's code is better then me. try his mine is Fa1lure X_X
Pierce the life fibers with your drill.

Reply

RE: Need some help with something [VB.NET] #5
(01-19-2011, 07:55 PM)Coder-san Wrote:
Code:
If ListBox1.Items.Contains(TextBox1.Text) = True Then process.start(TextBox1.Text)

I think this is what you are looking for.

that doesn't work im afraid don't know why, this problem has been annoying me for ages
[Image: 6caf54.gif]

Reply

RE: Need some help with something [VB.NET] #6
It assumes that you have the word chrome, and other application names added in the Listbox. Now when you enter "chrome" for example, it will look in the ListBox Items and if found it would start the Process.
I believe that is what you wanted.
[Image: rytwG00.png]
Redcat Revolution!

Reply

RE: Need some help with something [VB.NET] #7
! then try
Code:
If Listbox1.items.contains("Chrome") then
process.start("chrome")
elseif listbox1.items.contains("Firefox") then
process.start("firefox")
elseif listbox1.items.contains("Internet Explorer") then
process.start("iexplore")
end if

see if this works... Smile
Pierce the life fibers with your drill.

Reply

RE: Need some help with something [VB.NET] #8
(01-19-2011, 08:08 PM)Coder-san Wrote: It assumes that you have the word chrome, and other application names added in the Listbox. Now when you enter "chrome" for example, it will look in the ListBox Items and if found it would start the Process.
I believe that is what you wanted.

yer thats exactly it

looks in the listbox if it has chrome and textbox1 says chrome chrome is started
[Image: 6caf54.gif]

Reply

RE: Need some help with something [VB.NET] #9
(01-19-2011, 08:09 PM)frostbyte Wrote:
(01-19-2011, 08:08 PM)Coder-san Wrote: It assumes that you have the word chrome, and other application names added in the Listbox. Now when you enter "chrome" for example, it will look in the ListBox Items and if found it would start the Process.
I believe that is what you wanted.

yer thats exactly it

looks in the listbox if it has chrome and textbox1 says chrome chrome is started

That's exactly what the line of code does. You would just have to add the names in the ListBox first.
[Image: rytwG00.png]
Redcat Revolution!

Reply

RE: Need some help with something [VB.NET] #10
i seem to this i did it all right but i will give it another go just incase

yer it was my fail thanks so much you have helped me a lot
[Image: 6caf54.gif]

Reply







Users browsing this thread: 5 Guest(s)