|
Try to check the information from here.[^]
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
hi i visited this site but i didnt find any thing in it which i look for, could u please send me a code if u have
Thanks alot
Metal Man
|
|
|
|
|
we can send a file using file streams but how to send a folder ??
what is the code for that..?
|
|
|
|
|
You'll have to write the code to send each file individually. There is no way to send an entire folder all at once.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have a 32x32 256 color cursor that I want to add to a VB resource file. The problem is that when it gets added, it changes the entire cursor to black. Any ideas?
What I would really like to do is to save an icon file in the resource. If anybody knows how to do this also, it would be greatly appreciated.
Thanks,
Tim
|
|
|
|
|
Have you tried to use the cursor when your application is running? I have no much idea about that but make sure that your icon file is originally create with the program that create icon (I mean don't change the file extension from the other file). Check your monitor color... to make sure that everything is running properly. The best idea is find any machine that have VB6 and load any cursor file. If it work fine then copy the cursor file to the machine that have a problem and test it, and vice versa.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
I hve a text box in my projet where user has to input Lastname.
The first character of the the last name shld be upper case.
Also i shld check wheater the input is alphabet.is there anything like isAlphabetic function in the vb.net
|
|
|
|
|
I don't think there is any function in .net which can convert string to proper case and to check validation try creating ur own function which can validate input by grabbing keyascii on keypress event.
|
|
|
|
|
There is no isAlphabetic function anywhere. You'll either have to write your own where the function will go through the string, character by character, and verify that it is an alphabetic character, or you could probably use a Regular Expression to verify that it is in the proper format. I'm far from an expert on Regular Expressions, so I don't know what the expression string would look like.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You have to write your own code. In my opinion you should write the code as the following concept.
1. Write the code in the KeyPress or KeyCode event to check whether the textbox is blank or not.
2. If the textbox is blank, then any letter between a to z have to plus with 32 (I mean the ascii code of that letter must pluse with 32, maybe 32, try to check in the ascii code table). Then the small letter between a to z will display in capital letter A to Z .
3. If the textbox is not blank, then don't do anything.
Try to do it and wish you good luck.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
I don't know if this is the right forum but I have a question about microsoft script control (msscript.ocx). I need to call scripts (VBS,JS...) from my app (C++ or whatever). I wonder if msscript.ocx is the right tool for that. Is there a more supported by Microsoft API for that?
They talk a lot about Scripting host but in terms of writing the scripts, not how to call them.
Thanks a lot!
|
|
|
|
|
Hi all,
I use DDE with API and it runs fine with texts. Now I need to "transfer" a picture from my app to MS Word. I have a picture in the PictureBox, and I need to move it to a ByteArray.
How may I do that ?
Best Regards
Christian
|
|
|
|
|
Do you have any examples of retrieving a Word Document (Blob) stored in SQL Server into Microsoft Word using VB.NET?
Arthur D. Lorenzini
Database Analyst
State of South Dakota
arthur.lorenzini@state.sd.us
|
|
|
|
|
You'll have to convert the BLOB back into a file, then open it with Word. Three distinct steps. There are many example of retrieving blobs all over the Web. Try this[^] for a start. The rest is easy, save it to a temporary file and the launch it using ShellExecute.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I try, but a message appears! "Can't use event from base classes (or similar)"
so I wrote a shadows Event in the inheritate class to replace the original Event, but no other object what subscribs to the shadows Event don't capture it!
What can I do?
Example
Class BaseCls
public Event OnMessage()
End Class
Class A
Inherits BaseCls
Public Shadows Event OnMessage()
......
Sub DoSomething
Raise Event OnMessage
End Sub
End Class
Class Other
private withEvents Obj1 as A
sub new
...
addhandler Obj1.OnMessage, AddressOf SubDel
end sub
.....
sub SubDel()
'this don't work???
'Event capture don't work
End Sub
....
End Class
Gabriel
|
|
|
|
|
Hi Gabriel,
Just implement a function or sub in your base class that actually contains the code to raise the event, then call that function or sub from your derived class.
Pete
|
|
|
|
|
How to insert a Document File (Word Doc) into a form in VB6.0.
And user cannot change anything , just show ints contain to user.
If the contain too long , It will show scrollbar so that user can scroll it and view.
How can i do that?
(Use OLE, i dont know how to use it?)
Thanks
Ask More - Learn More
JohnJone
|
|
|
|
|
You'll need to locate a 3rd party "viewer" control you can drop on your form an use. Or you can use the components that are installed with Office. There's a catch with that though, the controls are heavy and are a pain to use if all you want to do is view a document.
\
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Tell me the detail please.
I dont know what to do now.
Ask More - Learn More
JohnJone
|
|
|
|
|
I want to check a string if it has " charector or not in VB... how can i check for it??
Thanks
Boomi.
|
|
|
|
|
You have to use a regular expression :
<br />
Imports System.text.RegularExpressions<br />
<br />
Module RegExpTest<br />
<br />
Sub Main()<br />
<br />
Dim Str As String = "fazerty""uiopqsd"<br />
<br />
Dim RegQuote As New Regex("""")<br />
<br />
Console.WriteLine(RegQuote.Match(Str).Success)<br />
<br />
Console.ReadLine()<br />
<br />
End Sub<br />
<br />
End Module<br />
And, by the way, it's "character", not "charector"
|
|
|
|
|
Actually i'm asking how to check this in VB... how to use regular expresions in VB..?? I think u have given the code in .NET... pls help..
Thanks
Boomi.
|
|
|
|
|
Ow sorry I thought you asked in VB.NET
|
|
|
|
|
If you use the InStr func, it will look something like this:
Dim WhereIsTheQuote As Integer
WhereIsTheQuote = InStr( 1, original_line, Chr$(34), vbTextCompare)
As you might have guessed already, 34 is the ASCII Chr$acter code for the quotes. If there are any quotes, the place where they first appear on the string will be returned. If there are some more quotes, other than the first ones, they will not be reported by InStr(), keep that in mind.
Pablo.ar
|
|
|
|
|
Thank u... i got the solution now...
Thanks
Boomi.
|
|
|
|