|
Hey,
I was looking at making a rather simple application to keep track of my movies and I was looking at implemanting a search bar in it. So the user can just search for movie files like that and will then information will be transported to a .txt or .html file. Can any of you guys tell em what to look up to find how to do this? I have looked around and can't find anything associated with making a search bar in visual Basic. Or can you guys give me a guide or something over it.
Thanks,
Rat
|
|
|
|
|
I want to use the propertygrid control in my app.
So, no problem for one class, but when I try to browse a class made by "shared properties" nothing is displayed ...
Any suggestion?
Thanks /// Angelo
|
|
|
|
|
Hey all,
First off I'm a vb n00b. Only my second day. =(
Anyhow how can I set ListBox.DataSrouce to xml and have display a nodes value?
For example:
<library>
<book>
<title>Foo</title>
<author>John Doe</author>
</book>
<book>
<title>FooBar</title>
<author>Jane Doe</author>
</book>
</library>
' Book Title List:
Foo
FooBar
' Book Author List:
John Doe
Jane Doe
I've been able to figure out this much lol:
Dim ds As DataSet = New DataSet
ds.ReadXml("c:\temp\AttendeesList.xml")
ListBox1.DataSource = ds
but have no idea how to have the ListBox to display Title or Author Info???
Thanks!
-- modified at 17:33 Wednesday 21st September, 2005
|
|
|
|
|
Forgot to mention that I have tried:
AuthorListBox.DataSource = ds.Tables("library")
AuthorListBox.DisplayMember = "author"
TitleListBox.DataSource = ds.Tables("title")
TitleListBox.DisplayMember = "title"
So I am also wondering how my XML data is structured in my DataSet
|
|
|
|
|
Dear all,
I created several listboxes and comboboxes in a form and made databinding and collections.
When I run my form, the listboxes and comboboxes seems to be empty, but when I open de combobox and select a line (It'looks like it's empty) the value appears in the box.
The text in the box is not visible.
What is going on here. I tried everything and every setting.
I even reinstalled my software (Visual Studio.NET enterprise) on a different computer. But I still have this problem.
HELP
|
|
|
|
|
hi there i have a textfile like this
34 wrere
32 rewr
44 erre
i have to perform binary search on it i dont get it if some one that would be helpful
thank u
i think something the index /2 ....
sam
|
|
|
|
|
A binary search only works if a file is sorted. Then you can check the record in the middle, see if it's higher or lower than the result you wanted. If it's higher, check half way through the upper half, otherwise check the lower half. You keep dividing the number of records you are searching in two, making it a lot faster than iterating through them all. But it won't work unless the records are sorted.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
hey thanks 4 ur reply i see what u mean and the records are sortedby the index number for example
0 xxxxx
1 xxxxx
2 xxxxx
3 xxxxx
4 xxxxx
5 xxxxx
6 xxxxx
7 xxxxx
8 xxxxx
Well the thing is i know what binary search is but i dont know how to apply in vb.net and on a file so if u can help ill appreciate it thanks a lot.If u can give me an example or a code thank u.
sam
|
|
|
|
|
Dude, it's really very simple. You have an arraylist, and you search by creating an index to start ( length/2 ), then you keep splitting the index up or down in order to bring down the range you're searching. It's a simple enough problem that I can't give you example code without doing your homework for you. How about you give it a go, and post your code ? If you've tried to do your own homework, and you get stuck, I'll be glad to help.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
A very good resource for this type of algorithm is The Bible ... "The Art of Computer Programming", Volume 3 - Sorting and Searching, by Donald Knuth.
...Steve
|
|
|
|
|
I see what you mean man and i i understand i know i should do my homework i always do
but the thing im new to vb.net and this is for university project about indexing and im late th deadline tomorrow i know your right
thanks anyways
really thanks;P
sam
|
|
|
|
|
man ur my last chance do u have any code for binary search on a file
thanks
sam
|
|
|
|
|
The new Visual Basic Express looks like it would be cool to try out. Will it mess up any of my Visual Studio .net 2003 projects, and asp .net 1.1 sites? Thanks
|
|
|
|
|
I would HIGHLY suggest making copies of them BEFORE you attempt to open them in Express. Opening your current projects in the new 2005 editions of VS.NET will upgrade the projects to the VS.NET 2005 Project formats, making them unusable in VS.NET 2003 and below.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I was only going to open my old projects with Visual Studio .NET 2003. If I didn't open them in the new version, will they still get messed up? I'll make a backup just in case though.
|
|
|
|
|
Nope. So long as you don't do anything with them in 2005, there's no problem.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am trying to get convert rtf to plain and then plain back to rtf if the data in the text box has changed...
thanks,
tom
|
|
|
|
|
Hi im using crystal repor to print students info
but i need like to filter the student id from xxxxxx to xxxxxxx(2 text boxes)
to print if someone can help me that would be great thanks in advance ....;P
sam
|
|
|
|
|
|
Please submit your answer. That will help others.
Sreejith Nair
[ My Articles ]
|
|
|
|
|
Hi, please submit your artical on Code Project. I really need this and as many more member may be require this thing.
Waiting for your positive response
|Muhamad Waqas Butt|
waqasb4all@yahoo.com
www.sktech.freewebspace.com
|
|
|
|
|
Ok sure well the thing is i got my answer from a sample i found its very nice it filters the reports by a number or two numbers
Dim a As New Form2
Dim Fltr
Fltr = "{StudentInfo.StudentID}>=" & Trim(txt1.Text) & " and {StudentInfo.StudentID}<= " & Trim(txt2.Text) & ""
a.CrystalReportViewer1.SelectionFormula = (Fltr)
a.Show()
do u know how i can attach my project i dont know the link
sam
|
|
|
|
|
It is nice that you upload your code on Code Project.
There are two way:
First is upload your code on Code Project. Follow this link on the main page of Code Project: http://www.codeproject.com/info/submit.asp[^] and just follow the guildline. You can easilly upload your code. When you successfully upload your code then send me your artical url.
Second is send me your code through email and then i upload it on for you. [ you name must mention on the artical and author]
Anyways, Thanx and please do it.
|Muhamad Waqas Butt|: )
waqasb4all@yahoo.com
www.sktech.freewebspace.com
|
|
|
|
|
Hi there well my situation is that i have two textboxes and i need to write the text in them to a file but whenever i try to write the first time it works but the second time it writes over the old text i need to know how to write the other data into new lines
if u have an exapmle or a sample that would be great thanx....
sam
|
|
|
|
|
MSDN is your friend. FileStream[^] class, with examples of Appending text.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|