|
If you use XSD's as a definition of your datamodel i would surely choose for one definition. Otherwise you will get the same problems as 2 apps each having a seperate database that must communicate with eachother (how do you maintain integrity then?)
Rozis
|
|
|
|
|
Hi there, hope someone can assist me on this.
Ive got a datatable that gets Data from SQL.
Now what I want to do is add a unbound Image datacolumn to this datatable.
But the image must be a linkbutton.
When its gets click it should redirect to a page carrying over the other datagrid Colums as parameters.For instanse
-------------------------------------------
Col1 | Col2| Col3| Col4 | NewImageColumn
--------------------------------------------
Row1 Row1 Row1 Row1 Row1
Row2 Row2 ROw2 Row2 Row2
Row3 Row3 Row3 Row3 Row3
Lets assume the DataTable has 3 rows
When clicking on the NewImageColumn on lets say row 2
it should Redirect(pgSomepage.aspx? Row2.Col1 & Row2.Col2 & Row2.Col3 & Row2.Col4
|
|
|
|
|
Member 4420534 wrote: redirect to a page carrying over the other datagrid Colums as parameters.
Sounds like this is a web application?
Try the ASP.NET[^] forum.
|
|
|
|
|
|
Hi all,
modified 28-Nov-12 8:02am.
|
|
|
|
|
You should minimized and focus your question, although to give an example of what you need because few persons will try to understand what you need
Shay Noy
|
|
|
|
|
Hello experts!!
I have to move picture box on to form,for static image it works but for multiimages in same picture box dont know how to handle.
if i take all images path into an array then i must show it in picturebox.but dont know how to take path into an array?
Can anybody tell me how to do it???
for any idea always welcome!!
|
|
|
|
|
As you've discovered, a PictureBox only shows one picture at a time. If you want to show multiple pictures, then you need to either have an collection of PictureBoxes, or draw the images onto the PictureBox's Image manually. Look up the System.Drawing namespace for details, or search Google
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
I am not sure about what you are asking for, but following snippet code demonstrating how to work with PictureBox and array:
Public Class Form1
Private arrImages() As String
Const PicNumber As Integer = 3
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
ReDim arrImages(PicNumber - 1)
arrImages(0) = "C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Blue hills.jpg" '"Path1"
arrImages(1) = "C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Sunset.jpg" '"Path2"
arrImages(2) = "C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Water lilies.jpg" '"Path3"
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Static ind As Integer
ind = ind Mod (PicNumber)
PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage
PictureBox1.Image = Image.FromFile(arrImages(ind))
ind += 1
End Sub
End Class
Instead of Button1, you can put a timer that will display your pictures like presentation (you may have to add Application.Doevents in the timer event)
Shay Noy
|
|
|
|
|
thanx,it worked... ...do you know how to add images into array from folder?
|
|
|
|
|
Declare array with 'Image' type
dim Picarray (1) as Image
Picarray(0) = System.Drawing.Image.Fromfile(ImagePath)
Picarray(1) = System.Drawing.Image.Fromfile(ImagePath)
|
|
|
|
|
You know the questions you are asking are very simple for beeing found in google. You only have to work a little and enter in google something like that: "load images from folder to array + vb.net" OR "updload inages from folder" etc...
The snippet code should be something like that: (I didn't compile or run it, but this is the concept)
private sub f()
dim fld as new IO.directoryinfo(YourFolderPath)
dim arrImages() as string 'or images as you need
dim ind as integer =0
for each fil as IO.fileInfo in fld.getFiles("*.your extension")
redim preserve arrImages(ind)
arrImages(ind)=... 'like the first answer I gave you
ind+=1
next
fld=nothing
end sub
Shay Noy
|
|
|
|
|
Your posted code helped me also but i have one more query -How to take images dynamically means i dont know images name.If i replace all images from same folder then what to do??
So i want code for that in which image name is not fix....
|
|
|
|
|
If I understood your question, you do not have to know image name. When you loop into the folder that contains all the images, the name property of the fil (as IO.FIleInfo) variable handle the name of the image file.
Shay Noy
|
|
|
|
|
ok,i got it but can you please tel me code at following line posted earlier by you which solve my problem and confusion...
arrImages(ind)=... 'like the first answer I gave you
In first reply you wrote there path of file...thats why i am confuse..
Kidya
|
|
|
|
|
Option Explicit On
Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim fld As New DirectoryInfo("C:\MyPictures\")
Dim arrImages() As String, ind As Integer = 0
For Each fil As FileInfo In fld.GetFiles("*.jpg")
ReDim Preserve arrImages(ind)
arrImages(ind) = fil.FullName
ind += 1
Next
End Sub
End Class
hope it helps you
Shay Noy
|
|
|
|
|
Thanx ...It helped me more..
|
|
|
|
|
Hi,
Am a student studying information technology and try to develop an online hotel reservation system in visual basic 6.0 as my personal project to improve on my programming skills. I tried to code part of the customer data page and now i,ve failed to proceed. I welcome any kind of help and even on how the system is supposed to be laid.
Any help will be treated with high respect.
Thanks in advance.
Kimbowa Sande
|
|
|
|
|
kimbowa sande wrote: visual basic 6.0
STOP You are absolutely WASTING your time, download a copy of VB.Net express off the internet - it is FREE, no cost, no licence issue, nothing. Microsoft WANT you to have a copy
here is a link [^]
Now go out and buy, yes spend a little money, a book on VB.net. Spend some time getting to know VB.Net and then come back when you have a little knowledge and we'll help where we can.
I suggest you also get a book on database design as well, you will need it.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
kimbowa sande wrote: visual basic 6.0
Don't.
vb6 is ancient, it's no good and never was, it's no longer supported.
Like Mycroft Holmes said use .NET
kimbowa sande wrote: Am a student studying information technology
I find it very hard to believe that vb6 is still being given at schools.
If so please tell me what school so I can personally go set them right.
kimbowa sande wrote: try to develop an online hotel reservation system
Online indicates this is a web application. So better forum might have been the ASP.NET forum.
|
|
|
|
|
Tom Deketelaere wrote: I find it very hard to believe that vb6 is still being given at schools.
I've been interviewing graduates this week. Quite a few have VB6 classes on their CV - it is quite disheartening.
|
|
|
|
|
Tom Deketelaere wrote: it's no good and never was
Despite that fact, it sold well. Lots of small "software" shops that sold VB6-based applications, lots of brownfields left
Tom Deketelaere wrote: I find it very hard to believe that vb6 is still being given at schools.
It is in the countries where the hardware is somewhat older - one has to use legacy-software. I can't imagine Vista on a 486.
I are troll
|
|
|
|
|
kimbowa sande wrote: I tried to code part of the customer data page
What is a "customer data page"?
May I suggest that you start by writing out use cases (short stories of how various users will interact with the system. A customer wants to do X, the hotel receptionist needs to check in a customer, the hotel receptionist needs to check out a customer, the customer wants a room for 4 people, etc.)
|
|
|
|
|
Hi SIR
Iam sorry for delaying. Here is the way i would like it to operate.
A client being able to place an order both locally and online,order and payment details stored and room number allocated.on arrival,the clients finger prints,image(biometrics)entered.the system able to remaind the user about new and old orders still standing and when an order is ending.the user having limited writes and the administrater having all the writes to view new and old orders.system able to sent e-mails to prominent clients usually about new services and greetings.
New and interested in learning visual basic
THANKS IN ADVANCE
|
|
|
|
|
Okay - Now break that down in to smaller pieces. To help you get started here are some questions you need to ask yourself
kimbowa sande wrote: A client being able to place an order both locally and online
How will a client be able to place an order online? What is the process? What information does the system need? What information does the client have?
What does "place an order locally" mean?
kimbowa sande wrote: order and payment details stored
How do you want to store this information? Do you have any constraints? For example, if you are storing payment details then you will have to be PCI (Payment Card Industry) Compliant - Which is very time consuming and expensive. Many companies use a third party payment processor so they don't have to worry so much. They only have to worry about the transmission of payment details and never the storage.
kimbowa sande wrote: the clients finger prints,image(biometrics)entered
Why do you need this? Do you think some customers may react negatively to it?
kimbowa sande wrote: system able to sent e-mails to prominent clients usually about new services and greetings.
Do you really need the system to do this? Normally, you would extract the email addresses needed and use a third party system to send out marketing mails.
|
|
|
|