|
They are both right in their own way.
They count words differently from each other. There are many control codes in a Word document which are only interpreted correctly by Word itself. Any other program may consider the control characters themselves to be words or beginning of words or ending of words or garbage etc...
The only way to get a consistent answer is to use the application from which the file was created in the first place.
...Steve
|
|
|
|
|
how to add checkbox control to a subitem in a listview?:->
Militiaware
|
|
|
|
|
militiaware wrote: how to add checkbox control to a subitem in a listview
If you simply Google the title of your post - add checkbox control to a subitem in a listview - you'll get the answer you seek.
...Steve
|
|
|
|
|
When loading a (txt, rtf, Doc ,bhk) file
this exception appears:
An unhandled exception has occured in yoyur application....etc
the process cannot access file "c:\Test.txt" because it is being used by another process.
so, how can i solve this problem, and why this problem came up?
Militiaware
-- modified at 18:20 Wednesday 23rd November, 2005
|
|
|
|
|
Trap the error in a Try..Catch block and wait for the file to become free. By the looks of it you have it open in another program (Notepad, etc...) so simply close the other app and away you go.
You may also want to see how you are attempting to open the file and change the lock type accordingly. If only for reading you may have a chance of accessing it whilst another process has it in use (unless it is locked for exclusive use of course). Ditto for writing. In either case the OS is protecting the file from inadvertent damage when two processes attempt access concurrently.
...Steve
|
|
|
|
|
I wanted to make a tool to change my avatar on yahoo messneger ever so often.
So I started a vb project a pulled in what i could from the yahoo install folder.
there is a function YPAGERLib.IHTMLFriendIconsCallback.friendIconsSelectIcon(string)
that i think will do what i want. So I started with "Imports YPAGERLib" then later "dim yahoo as YPAGERLib.IHTMLFriendIconsCallback" and eventually tried calling "yahoo.friendIconsSelectIcon(string)"
Oh I also tried this http://plugins.yme.music.yahoo.com/plugins/docs/vbnetplugin_page.html
method for setting up the interop dlls not an exact fit but i thought it would get me close to my goal.
The code compiles but will not run i get a message saying "retrieving the COM class factory for component with CLSID {some numbers}failed due to the following error: 80040154"
I am assuming there is something i am missing hopefully simple
thanks
|
|
|
|
|
How can I change the text value of a label on a form from a module?
Thanks
|
|
|
|
|
In proper OOP design, you shouldn't be. Modules are for library functions and should have absolutely nothing to do with user interface maintenance at all.
But, to answer yhour question, you'll have to add a parameter to the function that accepts a reference to a TextBox. Once the function has that, it's easy.
Public Sub DoSomething(ByRef tbControl As TextBox, ByVal value As Integer)
tbControl.Text = "Some text..."
End Sub
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Ok thanks for the response. Let me back up and explain what I want to do.
On my form the user clicks a button which calls a function in a module. The function has a Do Loop in it and I want the user to see how many times (in real time) the function is looping by setting the value of the label.text = numberofloops. What is the best approach to this?
|
|
|
|
|
I'm new in vb.net.
I need to send and recieve dat form a textbox to sql server.
Thanks...
|
|
|
|
|
Hi. You're obviously also new to the internet. There's this thing called google[^]. If you search there, or even on this site using it's own search, you're bound to find articles on such a basic, common task.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Who can tell me hao to use SetWindowsHook in VB.net?
and give me a example, thank you~
Cappie
|
|
|
|
|
|
Thank you very much~
Cappie
|
|
|
|
|
Dear friends
how can i export data from datagrid into html file or word file.Actualy i have some varibales in vb.net which i need to display in tabular format either in word or in html.
help me pls.............
uttam
share the knowledge
|
|
|
|
|
Open question and several possibilities.....
1) Reference the Office DLL, learn to use the object (methods) and use it. Create a Word file and insert in it your data
2) Output from your program a "simple format", like a pure CSV text file and then import it in to word.
3) Learn HTML tags (quite easy) and then output your data to a text file, rather easy using pre-built FW classes.
You can choose your favourite way.
briga
|
|
|
|
|
Hi all,
Can you please let me know how to create .exe file in vb6, there can be only single instance is running at a time?
For example if i double click on exe file, it start running. I minimize that exe and again double click on same exe file, it should display me message that program is already running.
Can anyone help?
Thanks.
Atul
-- modified at 1:33 Wednesday 23rd November, 2005
|
|
|
|
|
For me one of the best code to answer your question is the following but you need to rewrite it in VB6 (you'll learn something in the meantime):
http://www.codeproject.com/threads/singleinstance.asp
Otherwise you can look here a find it already done, how to create a mutex in VB6:
http://www.vbaccelerator.com/home/VB/Code/Libraries/Shell_Projects/Registering_File_Associations/VB6_Startup_Demonstration_zip_mMain_bas.asp
If you'll move to FW 1.x then it's much easier:
http://www.codeproject.com/vb/net/ActivateSingleAppInstance.asp
And with VS2005 and FW 2.x then even more beacuse you just need to tick a box!
|
|
|
|
|
Hi Briga,
Thanks a lot for your suggestion.
Atul
|
|
|
|
|
>And with VS2005 and FW 2.x then even more beacuse you just need to tick a box!
Where?
|
|
|
|
|
Go under the Project Properties, then Application tab.
Enable the Application Framework and one of the options is: Make Single Instance Application. Tick the box.
|
|
|
|
|
It has been staring me in the face for hours!!
It seems to work well. If I try to run the program again there is a short delay and then the first instance comes bak in foucus.
|
|
|
|
|
In vb6 this couldnt be any easier.
There is an app object which has a property called PrevInstance.
In the form load event of your startup form simply check it as follows:
If app.previnstance then
msgbox "I really Should google for simple stuff like this"
'To do it properly you should put code here to set focus to the
'existing instance
else
' code to either do something or leave blank to continue
end if
Jon
|
|
|
|
|
Hi Jon,
Thank you very much for your valuable suggestion.
Atul.
|
|
|
|
|
Yes, although I don't know why, but lot of programmes consider that object unreliable and that's the reason why some of them use a mutex and also a market has opened up (i.e. the activex oneonly, but there are more around).
|
|
|
|