|
Guy, I have no idea how to use VB6.0 to open command prompt and type this string in the command prompt
Bin2text test.jpg test.text 200 vbCrLf
After that i want to drag this test.text entire character into a sting and display out in text box_change()
|
|
|
|
|
You can execute the command using the Shell statement. After that, you just open the file for reading and read the entire contents of the file into a String variable. The rest should be very easy.
|
|
|
|
|
Hi,
Is there any performance difference between "<" and CompareTo() function in comparing strings
Best wishes
|
|
|
|
|
Why don't you write a small program to compare the two methods yourself? Run each method through about 1,000,000 iterations and time how long it takes to get through them. Oh, and I also suspect that what kind of objects your are comparing would also affect the results, like comparing two integers will be different from comparing two strings.
|
|
|
|
|
Is ther a way to execute a VB script that would resize a video players window position and size--or at least position
|
|
|
|
|
Only if that script is part of the web page the play is on and it has access to the properties of the player AND the player supports such functionality.
|
|
|
|
|
hi all,
i am creating a outlook plugIn . i sent a mail with Read Receipt property (using MailItem.ReadReceiptRequested=True). so whenever a new item come in Inbox, then how can i identify that this is mail or receipt?
|
|
|
|
|
You can't really. There is no difference between an email that someone writes and a read receipt. There is no special property to look at. You have to examine the contents of the email for certain phrases and you MAY get the information you need.
Though, you may also never get a read receipt either. I never allow them to be sent from my machines.
|
|
|
|
|
hello everyone!
i want to do a project of timetable scheduler, which should be enough intellegent to automatically resolve all clashes regarding to availability of teachers, rooms and resources etc, keeping in view: the time slots. Is there anyone who could help me......
|
|
|
|
|
Burning Candle wrote: Is there anyone who could help me......
Lots of people, but you need to post such questions to the Jobs forum. Nobody is going to do this without being paid for it.
|
|
|
|
|
Help with what part of this project? You haven't asked a question anyone can really answer.
|
|
|
|
|
Hi,
Iam using vb.net 2008.
I have richtextbox. I save as wordpad format [rtf] file. Now I need to view it in inside the panel of my form.
Is it possible?
RichTextBox4.SaveFile("C:\vb_net\sample.rtf")
Thanks.
|
|
|
|
|
The only thing that can view it is a richtextbox. Handle events like keypress in a rich text box and swallow them, to make a read only rich text box.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I have a form with a text box in a toolstrip. I would like to make the width of the textbox relative to the form size when the form is resized. The following code works fine except when you click the restore button from a maximized state.
Private Sub frmMain_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
ToolStripTextBox1.Width = Me.Width - 325
End Sub
Is there a way to get the restore button to work properly?
Thanks
Got this From another forum
Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
ToolStripTextBox1.TextBox.Width = Me.Width - 325
ToolStripTextBox1.Overflow = ToolStripItemOverflow.Never
End Sub
modified on Sunday, October 25, 2009 11:25 AM
|
|
|
|
|
You don't need this code. Click on the TextBox in the form designer and use the Anchor property appropriately to anchor the textbox to the sides of the form as desired.
|
|
|
|
|
The anchor property is not available for a toolstrip textbox.
|
|
|
|
|
I'm mostly asleep right now, so...
How about overriding the OnPaint method of the ToolStrip and setting the width of the TextBox in there.
|
|
|
|
|
Tried that too, doesn't work.
|
|
|
|
|
Shouldn't you set the TextBox Width relative to the ToolStrip Width?
I don't speak Idiot - please talk slowly and clearly
'This space for rent'
Driven to the arms of Heineken by the wife
|
|
|
|
|
|
I did some tests this morning, and found the same thing as you. Resize or ResizeEnd etc don't fire when using maximise.
But i have found that the SizeChanged event of the form does. using this you can set the width of the text box in relation to the form size.
|
|
|
|
|
Damn! I'm just getting around to this question again and you stole my thunder!
|
|
|
|
|
Sorry!
It doesn't happen often....you are waaaaaay to smart and I know about 0.000001% of what you do!
|
|
|
|
|
Hi There
I am making a text to speech application which says a word from a text file on load and contains a button to repeat the word. The voice says the text from the file on load but crashes when I click the repeat button. My code is below.
Any and all help is appreciated.
Dim open As StreamReader
Dim word as String
Dim voice As New SpeechLib.SpVoice
Public Sub TTS_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
open = New StreamReader(path)
word = getword()
voice.Voice = voice.GetVoices("Name=Cepstral David").Item(0)
voice.Rate = -1
voice.Speak(word)
End Sub
Public Function getword()
Return open.ReadLine()
End Function
Public Sub btnrepeat_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnrepeat.Click
voice.Speak(word)
End Sub
modified on Saturday, October 24, 2009 11:46 PM
|
|
|
|
|
Standard Question #1: What does the error message say, exactly?
|
|
|
|