|
I have take about 500-600 no of images in a group and i am putting the titles in a menuitem called images.
but when items goes more than almost 42 it gets a scroll at the bottom of it and its too slow to go to the like 350th item.
another thing i got in my mind is that to separate images in like groups of 25 images and put them into sub menu items.
what say?
Jwalant Soneji (BE IT)
Mobile: +91 9969059127
http://jnsoneji.spaces.live.com
http://jnsoneji.blogspot.com
|
|
|
|
|
unless you're giving them some sort of preview of what the images are when they go to pick them, I think a menu is out of the question. More like a dialog box with a preview of each image would be more appropriate.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
ohh thats a great idea, thanx, but then question arises for me is that, what contol is good if i am fetching images path from database and not all the images from a folder are available to the user?
and how the preview is achieved?
thanks,
Jwalant Soneji (BE IT)
Mobile: +91 9969059127
http://jnsoneji.spaces.live.com
http://jnsoneji.blogspot.com
|
|
|
|
|
A ListView or a ListBox would be good. You'll probably have to owner draw either of them.
Which images are available would be easy enough. All you do is put the images into the list that the user can see. How that is done depends on your secutiry system.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi, someone, I have a problem, I want to print priview listview how can i do? Give me example?
Socheat
................
|
|
|
|
|
try use PrintDocument and Printpreview Object to report the content of the listview.
ssonu
|
|
|
|
|
have try but it does only on the richtextbox but listview comes a blank page
|
|
|
|
|
I am designing a program for my father and he wants to be able to access a file from anywhere through the internet. He has an ftp space available on AOL, and I have got it to be able to download that file but I am unable to upload a file to it. I have code for it and it goes through the process and I never get an error saying that something went wrong, I even have it when it is finished I get a message box telling me it is done, and I get the message. Here is my code for the upload.
Dim c As WebClient = New WebClient
Dim FileName As String = Path & "\Limo Bookings\LimoBookings.run"
Dim URL As String = "http://members.aol.com/XXXXXXX/"
Dim responseArray As Byte()
Try
responseArray = c.UploadFile("http://members.aol.com/XXXXXXXX", "POST",FileName) c.Dispose()
MsgBox("Upload Completed!")
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Error")
End Try
I appreciate any suggestion you have! And I Thank You in advanced!
|
|
|
|
|
I think that AOL doesn't support HTTP uploads.
However you may use the FTP Upload, .Net framework provides a class for this.
Bye,
Webmaster of: www.thetotalsite.it
My web blog: blog.thetotalsite.it
|
|
|
|
|
you can use ftp access from ms-dos in a hidden process, you system must create a bat file with the ftp commands to upload these file, example
ftp -A -i -s:ftp_file_instructions.txt ftp_address
where
-A anonymous access, sorry, i don't know how access with permisses
-i no confirmation to each operation (yes or no to upload/download files)
-s param to describe the text file with instructions, this text file contain each ftp command in the current session.
|
|
|
|
|
Hi friends,
I had asked a question in the thread previously (Custom Bar chart - Guidance needed). I think my question was a bit complicated and no one answered :->. Let me rephrase it.
I want to create an object, a rectangle / box, with its own properties like name, color etc. I also want to get the properties from a database. How do I make it. Can anyone point me to any article or posts in this forum or on the web?
Thanks in advance...;)
Sammy
|
|
|
|
|
Probably because there isn't anny one article that show you how to build everything you want in this control. For now, start simple. Just create a custom control that draws what you want with a few of properties. From there, you can add data binding support.
You can start with this[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave,
Thanks for the link . I will go through that.
Sammy.
|
|
|
|
|
Iam having a code on if-else statement:
If RST("Rep_enq") = Null Then
txtfindings.Text = ""
Else
txtfindings.Text = RST("REP_ENQ")
txtfindings.Locked = True
End If
If I want to write this code using iif statement,How?
Thanx in Advance
Priya
|
|
|
|
|
With txtfindings
.Text = IIf(RST("Rep_enq") = Null, "", RST("REP_ENQ"))
.Locked = IIf(RST("REP_ENQ") = Null, False, True)
End With
"You can't trust code that you did not totally create yourself."
Ken Thompson
|
|
|
|
|
mnXtreme wrote: "You can't trust code that you did not totally create yourself."
Which of course not means that you can trust the code that you did create yourself.
---
single minded; short sighted; long gone;
|
|
|
|
|
i hv a form which xactly looks like a notepad.
it has menus like File & Edit. wen clicked on File it has options OPEN, SAVE, & SAVE AS.
wen clicked on Open Menu it takes the data only of *.txt files and the data is shown in textbox.
the problem is i want data of *.doc file that need to be shown in textbox so
how to convert data stored in *.doc file directly to *.txt file
plzzz reply as soon as possible
thnx in advance
|
|
|
|
|
|
Hello,
I used two Timer Controls.
one is in main project, the other is in Usercontrol.
(I made UserControl with Timer control)
This UserControl has included in project , not by ocx.
But, sometimes this timer in UserControl has stoped and restarted automatically.
I don't know why!
Anyone know about it?
Thanks.
sunny4252
|
|
|
|
|
Post your code here for examining and then I tell you why?
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
<br />
[Main Form]<br />
Private Sub Timer1_Timer()<br />
UserControlMiniPLC1.Output3 = True<br />
UserControlMiniPLC1.OutputCommandStatus = True<br />
.<br />
.<br />
UserControlMiniPLC1.Output3 = True<br />
UserControlMiniPLC1.OutputCommandStatus = True<br />
.<br />
.<br />
End Sub<br />
<br />
[UserControl]<br />
Private Sub Timer1_Timer()<br />
If m_OutputCommandStatus = True Then<br />
Call WritePLC<br />
m_OutputCommandStatus = False <br />
Else<br />
Call ReadPLC<br />
m_OutputCommandStatus = True <br />
End If<br />
End Sub<br />
<br />
Public Sub WritePLC()<br />
.<br />
.<br />
iOutput2 = IIf (m_Output2 = True, 1, 0)<br />
iOutput3 = IIf (m_Output3 = True, 1, 0)<br />
wdata = ~~ & iOutput2 & iOutput3 ~~<br />
MSComm1.Output = wdata<br />
.<br />
.<br />
End Sub<br />
<br />
sunny4252
|
|
|
|
|
There's nothing in this code that does anything with timers. How are you stopping and starting the timers?? Are you doing this based on some condition that has to be met? Have you instrumented and/or traced your code to see what it's actually doing?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Just checking the account... sorry..
|
|
|
|
|
Hi,
I m doing attenance automation project.I hv one form named Leave Details..tht form mainly contains four buttons namely
ADD
MODIFY
DELETE
SEARCH
But I want to use only one submit button for all the four...How can I do ths?Plz help me...
|
|
|
|
|
You are not clearly stating what you want. Try to be more specific. If you need a Button named as SUBMIT, so go for it. Define another button for submit and place the code inside of this button's click event. When you click it, it will be executed.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|