|
ok... but why the coder choose to add the value of the file attributes
to FileAttribute.Directory(10000)
example of directory
10110 and
10000
------
10000
example of file
100000 and
010000
------
000000
why is both cases we have to add the value(10000)
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
You're not adding, you're comparing. The AND operator returns true if a flag is present on both sides.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
ok thank you
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
Hi
How can I program Text2Speech Engine in VB6 of my defined voice quality.
If it cannot be done in vb, then do suggest me wer to find it.
bye
pitchu
|
|
|
|
|
Hi ,
u can do it by installing ms-speechengine speechsdk51 (available to download)
there is sapi controls would be added inside ur toolbox.u can activate these controls using adding items in toolbox.u can find help in vbcode.com by search of sapi.
|
|
|
|
|
Hi
I think u didnt get it
"I wanna progrm my own engine"
pitchu
|
|
|
|
|
Then start Googling to do your own research on what's involved since you appear to know nothing about what you're getting into.
Also, VB6 is probably not the best language to choose for this. Visual C++ would be much better since you'll need the performance benefits.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hello,
I have the code below in a combo boxes keyup event. I want to do something then the user presses the tab key. But it does not work. I have tried this with other key i.e. enter, shift, letter, and numbers. But does not work when the user presses the tab key.
Does anyone know why this is.
<br />
If e.KeyCode = Keys.Tab Then<br />
'Do something then the user press the tab key<br />
End If<br />
Thanks,
Steve
|
|
|
|
|
The tab key moves focus to the next control. If you want it to do something else, I'd guess you need to catch KeyDown, not KeyUp.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I am stuck on a project. I have a .txt file with 8 separate lists in it. Each list is separated by a "#" sign. I need to use StreamReader to read each individual list from the file and transfer each list into a separate combo box for user selection. I can read the file but I am having trouble passing each line of a list into the combo box. Basically I only get the last line.
My Code is as follows:
Dim SongStreamReader As IO.StreamReader
Dim Record As String
If IO.File.Exists("Country.txt") Then
SongStreamReader = IO.File.OpenText("Country.txt")
Do Until SongStreamReader.Peek() = -1
Record = SongStreamReader.ReadLine()
Me.uiList1Combo.Text = Record
Loop
SongStreamReader.Close()
Else
MessageBox.Show("File Does not exist", "Country", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
End Sub
Any Suggestions?
|
|
|
|
|
|
Hey all,
I was wondering if I'm even looking in the right direction on this one.
What I want to have happen, is in the client's PC, call CreateObject('ObjectOnServer.MyClass') then begin using the methods I built into the class on the server. Something like... getXML('identifiy where the xml is') and that will pass me back the XML.
Can the CreateObject access a class on the web? If so, any pointers on how would be appreciated.
Thanks,
Mike
Gaming at the GuildofBlades.com is the only way to really experiece the level 99 Soul-Sucking Sword!
|
|
|
|
|
This will only work if the component you want to call is registered on the clients machine as a remote-call object. You cannot specify the path to the object in the ProgID string you pass to CreateObject. Your object registration file must include this information. You'll use RegSvr32 to register the component using this file, just like any other. The registration file you use depends on the component you're registering.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
How to : key enter to next focus right cell in datagridview ?
|
|
|
|
|
use keydown... for next row... but if your talking about next cell right side using enter key then get the tab code then apply it to the enter key event...
nothing is impossible.....
|
|
|
|
|
Hi Everybody,
I am a new member in this forum and in fact on this site.
I need a link to a good tutorial on vb.net.
I will appreciate somebody's assistance.
Thanks.
"YOU CAN MAKE MORE MONEY ONLINE... STARTING TODAY!"
YOU CAN MAKE MORE MONEY ONLINE... STARTING TODAY!
No Start Up Costs! I will pay your way in Today! Join NOW!
http://www.trafficwave.net/members/webwareshop
|
|
|
|
|
Your best bet when starting out is to buy a book, not to read stuff online, which can be disjointed.
I'd sure love it if you removed that spam from your sig.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Christian Graus wrote: I'd sure love it if you removed that spam from your sig.
I second that
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
Hi, using VB net(2003) in a Windows Application, my question, How upon a button click allow calculation to be done if certain character are present in textbox like A to E, a to e, a dot, and finally the word cost. All other character must produce an error message. I try with ARRAY it does not seem to work. Could someone show me the way or a little tutorial would be greatly appreciate.
Thank you in advance.
|
|
|
|
|
A regex seems the best way to go. Better yet would be to only allow valid characters to be entered. The textbox has a KeyChar event, in this event, the eventargs include a boolean flag called Handled. If you set this to true, the keypress will be ignored.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I got 2 quick questions:
1> System.Diagnostics.Process.Start("Explorer.exe", "%USERPROFILE%\My Documents\") returns folder doesn't exist because I have my documents in there, but I need to goto my documents, what should I do?
2> How do you set a global variable in .net that is accessable across multiple forms. Like Dim blah as Global?
Thanks...
|
|
|
|
|
arunforce wrote: %USERPROFILE%
You can't do this, you need to look up the path and pass the full path in.
arunforce wrote: How do you set a global variable in .net that is accessable across multiple forms. Like Dim blah as Global?
The only way is to have a class that holds it, and make it public and static. Consider making it a property, at least, and consider overall if it REALLY needs to be public. If you need to share stuff between two forms, a delegate is a better way to do it.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Then how do people do things such as that, with programs? It opens their my documents, I can do %userprofile% fine, I just can't attach my documents to the end. I don't think you know much about that.
And, how would I go about doing a class in VB.NET?
|
|
|
|
|
The Environment.SpecialFolder enum allows you to ask for the path to folders such as the userprofile.
arunforce wrote: And, how would I go about doing a class in VB.NET?
There is no way to write code in VB.NET outside of a class. Do you know what a class is ? If not, you need to take a step back and learn some basics.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hey all,
I was wondering how to right an application that sits on a server and connects to clients.
I have an application that users download and right now they pull files off my server, but I need to also be able to pull files out of a MySQL database... so I need to write a server side application for the client to talk to which pulls the information from the database and pushes it down.
Any ideas how I would accomplish that?
Thanks,
Mike
Gaming at the GuildofBlades.com is the only way to really experiece the level 99 Soul-Sucking Sword!
|
|
|
|