|
Hello,
Thanks for your ideas.
This will be developed using a windows .net 2005. Do you know of any good tutorials?
Thanks,
Steve
-- modified at 22:48 Tuesday 30th January, 2007
|
|
|
|
|
just search for .net ftp transfer or file upload
|
|
|
|
|
Hello all,
I am currently working on a project where i want to have a webpage that passes a parameter to a crystal report, which then displays a result based on the parameter. I have built the webpage and the report but am having problems pasing the parameter, i have been following the guidelines outlined on this page;
http://www.codeproject.com/script/comments/forums.asp?msg=1855661&forumid=1646&mode=all&userid=3569060#xx1855661xx[^]
But am geetin an error when trying to pass the parameter.
I have posted an message below this article, but still have found no-one who can help!
Any help would be greatly appreciated!
thanks guys!
|
|
|
|
|
In VB.Net is there a simple way of displaying all the files in a selected folder depending on a criteria and how would you display via a message box the file selected.
Is it something like as follows. Getting mixed up with VB 6 and .net. I have a dirlistbox, drivelistbox and a filelistbox. I can get a connection between drive and folder but what is the syntax for the files. Feeling stupid here.
Private Sub drvLoc_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles drvLoc.SelectedIndexChanged
dirLoc.Path = drvLoc.Drive
End Sub
|
|
|
|
|
You would want to use a ComboBox and a ListBox for this. Like so:
Private Sub DriveComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DriveComboBox.SelectedIndexChanged
FolderListBox.Items.Clear()
For Each Dir As String In My.Computer.FileSystem.GetDirectories(DriveComboBox.SelectedItem, FileIO.SearchOption.SearchTopLevelOnly)
FolderListBox.Items.Add(Dir)
Next
End Sub
Private Sub FolderListBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FolderListBox.SelectedIndexChanged
FileListBox.Items.Clear()
For Each File As String In My.Computer.FileSystem.GetFiles(FolderListBox.SelectedItem, FileIO.SearchOption.SearchTopLevelOnly)
FileListBox.Items.Add(File)
Next
End Sub
Private Sub FileListBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FileListBox.SelectedIndexChanged
MsgBox(FileListBox.SelectedItem)
End Sub
The DriveListBox, DirListBox and the FileListBox are not what you would want to use for this. Microsoft doesn't even offer support for these controls anymore. Plus, ListBoxes are a lot more customizable.
Hope this helps.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
Thanks for this code really appreciate your help.
|
|
|
|
|
Forgot to mebtion I am using visual studio 2003 and the name my and FileIO does not work.
How is this done in 2003.
Sorry for this
|
|
|
|
|
Well, I can't really help much with anything in VS2003, but you could go ahead and use a Drive, Directory and File ListBox (since you are using an older version of VS).
So, try this:
Private Sub DriveListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DriveListBox1.SelectedIndexChanged
DirListBox1.Path = DriveListBox1.Drive
End Sub
Private Sub FolderListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DirListBox1.SelectedIndexChanged
FileListBox1.Path = DirListBox1.Path
End Sub
Private Sub FileListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FileListBox1.SelectedIndexChanged
MsgBox(FileListBox1.SelectedItem)
End Sub
Hope this helps!
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
I have a form where the user can add inventory items. Some items they will have multiple of the same item. I want the user to be able to enter all the information for that item except for the serial number field. I want them to be able to enter ALL of the serial numbers for all of the items at once.
EXAMPLE: A dept. buys 10 bullet proof vests. They go to enter the vests into the system. They type in all the information (make, model, cost, description, etc.) when they get to the last one which is serial number they can click the ENTER MULTIPLE button and have a small form pop up with a control to enter all 10 of the serial numbers for all 10 of the bullet proof vests.
I just need to know what the best control to use would be and any other information on how to use that control to accomplish what I need. THank you guys for your input. I do appreciate it, as always.
-Joey
|
|
|
|
|
How is your database set up ? It sounds like you need a table for item types, and one for individual items ( an item type ID and a serial number, at minimum ).
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Sorry it took me so long to reply. I got wrapped up on something else...
What Im really asking here, is what would be the best control to accept multiple serial numbers from the user. Like how you would enter a combo box's items in vb.net in the designer. You click on items in the property window and a rich text box comes up and you enter each combobox item each on a different line. Something like this. I guess I could do it like that, im just asking to see if you or anyone else can think of a better way to do it, and how... My database isnt built yet. I am writing the front-end first and then the back-end(SQL)...
Thanks for your help...
|
|
|
|
|
OK, I'd imagine your two options are to have a table to which a serial number is added in each row ( so, a combo box ), or, the way I see it mostly done, is a textbox and the serial numbers are semi colon delimited.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
hi guys
please let me know how to destroy an object which is created at runtime. i am using vb as scripting tool
objinfo= new projname.classname()
please give some remedies
thanks and regards
sebastian
|
|
|
|
|
you can always use in case the object have it the dispose method or simply use somthing like this
if not objinfo is nothing then objinfo = nothing
|
|
|
|
|
Norberto Olazabal wrote: if not objinfo is nothing then objinfo = nothing
Why do you check the value of the reference before setting it? It doesn't matter what the value is before, as it doesn't have to reference an object in order for you to be able to set it to Nothing. Just set it:
objinfo = Nothing
---
Year happy = new Year(2007);
|
|
|
|
|
thank you very much
sebastian
|
|
|
|
|
Hello Everybody,
Im learning web application with vb 2005 and I got some question, really I need your help
DS = DataSet
DR = DataReader
1. dsReport.Tables(0).Load(drReport)
My question is why is table(0) ? and If I create more than one one table then how do the dsReport will find the table?
2. Is their anyway I can pass a HyperLink from the report?
Let me tell what Im doing................
I got the top 10 Customer basic information in the report, When I will click CustomerID or CustomerName then another page will be load where I can see the whole details also I would like to put a Button (CustomerActivity) when I will click the button then I would like to see about his transaction like how many times, how much................... what he has done so far.
Top 10 Customer --> One Customer whole details --> One Customer Activity
Also could you please tell me if I would like to pull data from web server then do I need to change..... the following
ReportViewer.LocalReport.ReportPath= Server.MapPath(" Name.rdlc")
or
Just change the DataAccess path ( Localhost to Server ............)
On the other hand, I viewed data in a GridView where I created some property for the table and connect the class file with the gridview.
Can I connect the Class (All Property (Like a Table)) with Report?
Im using VS 2005 Report and ReportViewer, I dont want to use Crystal Report.
Please help me......
Waiting For Your Reply
Thanks
Sarfaraj AHMED
|
|
|
|
|
Hi,
I'd like to know how i can print an image at it's real size.
I know how to print an image at full paper format, but how can i print an image at real format? (Source code pl0x)
--Zaegra--
|
|
|
|
|
Well, you realise if you print at 'real format', you'll get a tiny image, as most printers are at least 300 dpi ( so a 300x300 bitmap will be 1 inch square )
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I'm having trouble creating a vb form that will authenticate to AD. Can someone point me in the right direction please.
Never trust a computer.
|
|
|
|
|
Hi All,
I was wondering if it's possible to make a form pop up in a specific area of the window?
For example if a button is pressed that calls form2, can I get form2 to pop up in a certain area of the window.
Thanks in advance
Jaidev
|
|
|
|
|
just add this line to form load method
Me.DesktopLocation = p
where p is a point.
|
|
|
|
|
how do I specify the point?
for example I want it to be in 559, 546 but when i do
Me.DesktopLocation = 559,546 it doesnt work (doesnt work when it's in brackets either).
Thanks
Jaidev
|
|
|
|
|
here you go...try this
Dim loc As New System.Drawing.Point
loc.X = 559
loc.Y = 546
Me.DesktopLocation() = loc
|
|
|
|
|
You have to declare a New Point . Like this:
<br />
Dim Place As New Point(200, 200)<br />
DesktopLocation = Place<br />
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|