|
Hi!
I would like to know if there is a way to
1) center your message in a message box
2) move down a line in the box
(have part of the message on the first line, and a second part on the next)
Thanks, any help would be breatly appreciated!
Erin
|
|
|
|
|
In your string add CHR$(13) where you want the line to break.
"line 1"+CHR$(13)+"line 2"
There may be a newer syntax these days.
As for centering, do you want each line centered or the overall
message. If it is just the message, I believe centering is
automatic. Don't know how to center each line.
|
|
|
|
|
Anonymous wrote:
There may be a newer syntax these days.
"Line 1" & vbCrLf & "line 2"
|
|
|
|
|
1) I do not believe that there are any settings to center the text in your message box.
2) You can add a newline character to your message to make the message skip to the next line. The newline is the chr(10) command. You can also add chr(9) in order to do a tab sequence.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
kilowatt wrote:
The newline is the chr(10) command
10 is line feed. I'd suggest a combination of 13 [carriage return] and 10 [line feed]
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
you've all been a great help! (i'm programming monopoly - insane amounts of code! :P) (for school)
|
|
|
|
|
Just for your information, the message box and other window controls that display text ignore the carraige return, and since you need to type this in VB to get a carraige return:
& chr(13) &
I suggest to not use it at all.
You do need a carraige return when you are dealing with files though.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
In the properties window under justification click center
|
|
|
|
|
Anonymous wrote:
In the properties window under justification click center
The MsgBox doesn't contain properties like you are talking about.
Nick Parker
|
|
|
|
|
Can you pass an integer higher than 127 to the Chr( ) function and returns the correct hex value? I'm doing Chr(192) and gets hex 00 in return. Does someone have a suggestion on how to convert decimal 192 into the correct representation in hex? Thanks a lot in advance!
|
|
|
|
|
Hex(192)
Try that.
Jeremy L. Falcon<nobr>
Homepage : Sonork = 100.16311
xenophobic Xanthippe – xerophthalmic Xanadu
Perseverance pushes past painful promenades - providing precious peace.
Surely some striving souls survive symptomatic stress?
Maybe my mangling might misguide malicious miscreants?
|
|
|
|
|
I want my Program to be able to email. Can anyone help
Daniel Burnham
|
|
|
|
|
If you are on NT, 2K or XP you can use the CDONTS library. Somebody has an article here that shows how you can do that from ASP. It should be same in VB
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
I'm new to VB.Net, but in previous versions of VB I used MSComm to send commands to various ports on my computer. I have been unable to find the equivalent on VB.Net. Is there something new that must be used? I only have VB.Net Standard. Is it possible that I am missing the necassary components?
Thanks to anyone who can help,
|
|
|
|
|
I have one a Lan (Client - Server), and I want update file everyday, but I don't know how to copy one file thought Lan
please help me, thanks!!!
|
|
|
|
|
Depends on the network. Is there a Windows network running with at least one mount point on each machine? If so, you could just do a normal copy with a UNC path (e.g.; \\mymachine\mymountpoint\somefolder).
If not, you could always FTP it either interfacing with ftp.exe or writing something yourself.
Jeremy L. Falcon<nobr>
Homepage : Sonork = 100.16311
xenophobic Xanthippe – xerophthalmic Xanadu
Perseverance pushes past painful promenades - providing precious peace.
Surely some striving souls survive symptomatic stress?
Maybe my mangling might misguide malicious miscreants?
|
|
|
|
|
Hello everyone, VB isnt right for me but my friend was wondering would it be possible to make Forums with VB.NET. Do you think it would be possible?
|
|
|
|
|
|
I would like to design a program that could be used to fill out website forms, it would need to be able to take user input and place it in several different forms on different websites. Is there a simple control to do this?
|
|
|
|
|
Hello,
I'm working with VB.NET and want to write a programm which includes a
Listview, that should work like the view in the explorer.
The problem is that i can not move the items (shown as LargeIcons) in the listview.
Every Item should be able to be placed everywhere within the Listview.
(e.g. it should be possible that one Icons is over an other Icon)
I also want do drag and drop Listviewitems between to ListViews,
i created a new DataObject wich includs the ListViewItem and send it with the DoDragDrop function.
But if i drop the item on the other ListView, i first have to clone the Item and then delete the one in the origin ListView.
Is there any simpler method to realise that ?
Thanks in advance
Robert
|
|
|
|
|
I am trying to make it so when I select an Item In the list box text will appear in my text box can anyone help me.
My email is burnhamd@hotmail.com
Daniel Burnham
|
|
|
|
|
in the List1_Click event, put in Text1.Text = List1.Text
--
David Wengier
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
Hi there, I need some help with ADO. Right now i have a
program written in VB using ADO. I have the connection
string hard coded to a specific database. How do make it
so the ado will look in an ini at the second line and change the connection string to the one in the ini file. Do i have to remove the connection string in the program? Please help.
|
|
|
|
|
If the connection string has been entered into a property in the properties window, you will need to delete it.
Then, you will have to read in the ini file yourself (using either standard file access methods, or GetPrivateProfileString API call) and set the ConnectionString property to be the string that is read out.
ADO wont automatically go looking in an ini file.
--
David Wengier
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
Hi
could anyone out there give me a jump start on handling xml docs in VB.net. I am especially confused by the nodes and elements, or rather, what's the difference?
would apreciate any help
thanx
Samy
|
|
|
|