|
What do you mean by "not working"? Do you get any exceptions? I have a suspicion that your not loading the picture correctly. You might want to try this:
Dim newImage As New Bitmap(dlgopen.FileName)
pb1.Image = newImage
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
Any one suggest me how to unlock the locked session in POP3 server due to improper shut down.
I am trying to access the mail from the mail server using vb.net, while runing the programe due to some error my application closed with out the closing the session. Due to this i cant able to login in my account. How to clear the session.
Cheers
Exelio
|
|
|
|
|
If you don't have control of the server, you can't. You have to wait for the session to timeout. If you do have control of the server, go into it's Management console and clear the connection in there. How you do that depends entirely on your mail server, so noone can tell you exactly how to do it.
Can you do this programmatically? No...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
How i can connect my datareport object to more than one command of a data environment at the same time at the same datareport
although that the data member of data report can not accept more than one command
can i (in the design or in the run time)
thank you
for all scientific lovers
|
|
|
|
|
I am getting this error when i am trying to publish my application. With this another error is "Cannot publish because a project failed to build."
Where as i am able to build the application and run it.
Can any body help ?
Jats
|
|
|
|
|
I´d like to fill a Range("A1:D1") with yellow, how can i do it?? thanks & regards
Dios creo un equipo perfecto a los demas los lleno de extranjeros
|
|
|
|
|
I am using vs 2005 and am creating a program where I need to be able to make the mouse click by pressing a button on the keyboard. I am willing to use API or any suggestion that is simpler.
Thanks in advance for your help.
Posted by The ANZAC
|
|
|
|
|
Hi,
My situation is like this, i have 2 kind of report that i want to view in vb.net, the datasource comes from sql procedure that contain parameters that i already made, anyway i can do that?
thank for the help
Abbas
|
|
|
|
|
I need to open a folder in somewhere using some key choosen throw the form, if I used an OpenFileDialog, it will go to that folder and open it showing its contents of files...it is ok. But I need to access those files in that folder using a ComboBox or abnother control rather than the OpenFileDialog..
Is there any suggestions or ideas.
Kind Regards.
|
|
|
|
|
Hi,
You said that
obarahmeh wrote: I need to open a folder in somewhere using some key choosen throw the form
So if you already know the location of the folder, of which you want to fill the files, then just iterate through the files collection of the directory object and fill the combo box with the names of the files. You can use foreach statement for this.
Hope this helps !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
Anant Y. Kulkarni
|
|
|
|
|
yes, but I need the opposite side, I need to read from a folder which is already known before and fill the contents of that folder in the ComboBox.
|
|
|
|
|
Sorry but i didnt got you this time .
obarahmeh wrote: I need to read from a folder which is already known before and fill the contents of that folder in the ComboBox.
Thats what i have told you. Read the folder contents using the Files collection and populate the combo with file names.
If i havent got ur point still, please explain giving an example of from where to pick file names and what information will come from form ,etc....
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
Anant Y. Kulkarni
|
|
|
|
|
|
Please guide me in the following scenario
I am developing c#/VB application using Visual Studio 2005. I want that when the user executes my application then:
1- The window should create a new Virtual desktop using MSVD.
2- My application should run in the new desktop. Only my application should be allowed to run.
3- I should have the options to modify the start menu in the new virtual desktop
4- When user close application the virtual desktop should shutdown
How can I achieve this?
I will be very thankful.
-- modified at 1:56 Tuesday 8th August, 2006
|
|
|
|
|
Hi all,
Im doing a project in VB.Net and im drawing the lines and rectangle on mouse down event of a label or picture box. And im checking it for redraw..
My question is, Which is the the best way?
1. Loading the image(with cross lines with same text as before) at runtime after clicking the label control or picture box dynamically.
2. Drawing a cross lines on the label or picture box on mouse down..
Which performance will be better, I found that when the form get restored it took some time to load when i use drawing.
Please guide me as its very urgent.
Regards
Mukil
|
|
|
|
|
You need to ditch the picture box, handle the Paint event, and draw the lines direct onto the screen.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thank you very much for your reply.
|
|
|
|
|
Hi, in Ms. access I have one table call tblName which contain two fields: ID and Name. Then I design one form and now think about the control that could help me to produce a dynamic column based on the record in the table. For example, if my table have two record:
ID Name
001 Smith
002 Janny
Then when the form load the control will display
Smith Janny as the collumn header. Then tomrrow when user add 2 more record to:
ID Name
001 Smith
002 Janny
003 Vibol
004 Smey
Then when I load the form, the column should dynamic to create below:
Smith Janny Vibol Smey
Does any one know how to do that and which control that should I used in Ms access form.
|
|
|
|
|
Hi, in my access database I already one table name tblCustomer which store the customer name and other information. Now I have design a form and place a combo box on the form. My purpose it when user type any character in the combobox, the relate query name from table display as the drop down list of combobox. As real example, i prefer the way that its list like the "To:" box in yahoo or gmail message.
|
|
|
|
|
Hi, I used Microsoft Access XP to store my data. Now I have create a user account in my database and assign the password for it. When I access to the database it always prompt me to type user name and password. I have successfull logon to my database in Ms access and now I need to write the code in VBA to get the current user logon name to display on a label on the form. Does any people know how to get the current login name in access database using VBA code?
|
|
|
|
|
Who wants to compile a small program for me in VB 6.0 (or earlier version).
In VB2005 you cannot compile to Win32.
==========
dim loCertCryptCOM as New ccomcryptlib.ccrypt
dim lstrhash as string
dim lstrcert as string
dim lstrerr as string
open "hash.txt" for input as #1
input #1, txttext
close #1
open "key.txt" for input as #1
input #1, txtcert
close #1
locertcryptcom.createhash txttext, txtcert, lstrhash, lstrcert, lstrerr
open "sign.txt" for output as #1
print #1, lstrhash
close #1
open "cert.txt" for output as #1
print #1, lstrcert
close #1
close()
|
|
|
|
|
Good luck with this. I haven't used VB6 in about 6 years now. Also, without that library your referencing in the first line, noone can compile the app anyway.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave Kreskowiak wrote: Also, without that library your referencing in the first line, noone can compile the app anyway.
I can send the library.
|
|
|
|
|
So? I can't compile it because I haven't used VB6 in 6 years now...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
If you do the follwing in VB6
<br />
Dim myVar as Boolean<br />
myVar = True<br />
<br />
Debug.Print myVar<br />
you'll see a 'True' in the debug window, but only on an english system, the string is actualy language dependent.
My problem now is that I need to read a text file that was written with VB6 with C++.
Therefore I need a list of the languages VB6 was shipped and the used strings to represent the value of a Boolean.
Thanks
|
|
|
|