|
Is it possible to disable all, or most keys out for a short time(1 sec)?
I am using a sendkeys statement, and wonder if disabling key strokes, will disable the sendkeys too.
I overcame the pesky focus problem with a simple do event.
I want to disable key input, during this procedure:
do
dim appid as integer
appid = shell("app.exe", 1)
appactivate appid
sendkeys "{tab}yup!{enter}{F4}"
exit do
loop
Is much smaller and actually more effective than the Dan Appleman reference for putfocus/setfocus in "Guide to the Win32 API". Thanks Balena!
|
|
|
|
|
I want the timer that 1 minute have 100 sec.
Could u post the code for me?
|
|
|
|
|
Timer in vb.net works in milliseconds , setting the timer on 1000, you get 1 second per tic. Thus one minute is 60 seconds -> timer set on 60000 wil tic by one minuets, timer set on 600 will count 100 tic per minute.
sub
DIM T as interger
T=600
Me.Timer1.Start()
...
end sub
|
|
|
|
|
vb.net
How can load a Image in to a TabControl.
normally we can load the Image through property. It's Ok.
The Image is not covered the whole part of the tabControl.
Tabbutton always gray.
How can put a Image on the top of the tabcontrol.
|
|
|
|
|
Hi Everybody,
Could anyone help me with the following problem:
I'd like to make a treeview control in which it is possible to alter the order of the nodes. I'd like to do it by dynamically adding Up/Down buttons behind the currently selected node (like the DomainUpDown control in VS). By clicking on the buttons, the node should move up or down the tree (limited within the parentnode, of course - I don't want a node to climb up all the way to the root element )
Does anyone know how it's possible to accomplish this with a custom control inheriting from the treeview control? I'd like to control the order using a numeric order property attached to the nodes.
Thanks for any help you can give
|
|
|
|
|
I am trying to call a webpage page that streams a text file.
Since the URL is not a direct call to the file, a save dialog box is shown. I can capture the event of when this happens but I dont know how to initiate the save.
Heres what I have:
Private WithEvents objBrowser As New WebBrowser
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
objBrowser.Navigate("http://localhost/binary-write-file.asp")
End Sub
Private Sub objBrowser_FileDownload(ByVal sender As Object, ByVal e As System.EventArgs) Handles objBrowser.FileDownload
'What do I do here? This event is firing fine.
End Sub
Any help would be much appreciated!
Thanks
|
|
|
|
|
I create a DLL in VC++, call VD.DLL, and include file VD.CPP, its contain:
int _stdcall VD(int *index)
{
int i;
for(i=0;i<5;i++)
index[i] = i;
return (i);
}
In VB6.0, i declare to use this DLL:
Private Declare Function VD "my-dll-path" (ByRef intIndex as integer) as Integer
And use this function in VB's body like this:
Dim intIndex(0 to 50) as Integer //Global Integer Array
Sub VD()
Dim i as integer, intI as Integer
intI = VD(intIndex)
for i=0 to intI-1
MsgBox "Value " & i & " = " & intIndex(i)
Next
End Sub
And It shows :
Value 0 = 0
Value 1 = 0 'Unexpectly
Value 2 = 1
Value 3 = 0 'Unexpectly
Value 4 = 2
The second and fourth line is not correct. Because in my case, i must show:
Value 0 = 0
Value 1 = 1
Value 2 = 1
Value 3 = 3
Value 4 = 4
Why this happen? Anything wrong in my code?
Thanks
Ask More - Learn More
JohnJone
|
|
|
|
|
Yep. the int type in C++ is a processor specific widht integer, usually 32-bits. The Integer type in VB6 is a 16-bit integer. In your VB6 app, change your Integer types to Long (32-bit signed integer in VB6) and it should work.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I changed The value to Short Int (in CPP file), and it work exactly
Thanks.
Ask More - Learn More
JohnJone
|
|
|
|
|
Hello Sir,
At present I am building an application, where I am using MSChart to show graphs in vb6. My problem is that I presently in need of VB Code which will be giving the X Axis & Y Axis details as ToolTipText when ever I move my cursor and point on them.
So, I kindly request that is anyone know the Solution, Please help me in executing the application.
Thanks In Advance,
Vinay
|
|
|
|
|
hi all
i want to set a time gap between the sending data.I dont know how to do that. Pls anybody help me to do that.
Arun
Arun
|
|
|
|
|
I am looking for a SQLHelper class for an access vba application. I am in a time crunch on a project and would like to find an exsisting piece to start working from.
|
|
|
|
|
I started programming VB with the Learners addition 6.0. It did not come with several of the more advanced components, especially MAPI. Instead of move to the VB6 Professional, I purchased VS.Net 2003. Now I am really lost.
I am trying to create an application that will create an email using the default mail client and I am going to pass some variables to, like message text and an attachment. I do not see that MAPi came with VS.net. I see system.web.mail, but that does nto appear to use the mail client on the local machine.
Is MAPI part of VB.net? Is there a way to do what I describe without owning the MAPI OCX from VB6?
Chris
|
|
|
|
|
MAPI doesn't come with any version of VB. The Messaging API (MAPI32.dll)is only installed with Exchange Server, Exchange Client, the full version of Outlook (not Express!), or Windows Messaging.
The System.Web.Mail namespace in the .NET Framework wraps the CDOSYS (Collaboration Data Objects for Windows 2000) and will either send mail using the SMTP mail service built into Windows 2000 and above, or use an arbitrary SMTP server. CDOSYS is a COM component that wraps the CDO API 2.0, NOT MAPI. Lost yet? Read this[^].
Now, in order to launch the default STMP client (not MAPI!), you would do the same thing that IE does. Shell the command line:
mailto:someone@somewhere.com?subject=Some subject?body=Some message body
But, attachments are not supported this way!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am looking for a way to make scroll bars that come with text boxes to scroll down automatically when the text box fills up. If anyone can help me i would greatly appreciate it.
Thanks in advance
P.S feel free to email me the solution as well to iamydd@bellsouth.net
|
|
|
|
|
hi
U pls give the Multiline property of text box to true and also scroolbar property 1 or 2 or 3.
try it
Ok
Bye Arun
Arun
|
|
|
|
|
Thanks, but the multiline property is already at true and i cant find scroolbar propertys. The only thing it has it for me to set scrollbars to vertical horizontal both or none.
|
|
|
|
|
Hey
I am having trouble, i have a filepath and i am trying to ad the following steps to a button click:
- Select a Printer By name
- Send it my file path
- Print file
Any help would be greatly appreciated
thanks you for your time
Chris
|
|
|
|
|
Possibly using a process?
|
|
|
|
|
You can do that with Crystal Report.
That´s a VB component to print.
Very easy to use.
|
|
|
|
|
How to do that? Do you have any document or resource on the web to demonstrate about this technique?
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
You can see this page: http://www.businessobjects.com/products/reporting/crystalreports/appdev.asp .
But it is really easy. In VB you have to add the Crystal Report Component; in VB.NET it is named ReportDocument.
The file you want to print has to be a crystal report document (you can download the software in the site above). Then you have just to work with properties and methods.
Ex in VB.NET: reportDocument1.PrintOptions.PrinterName = ""
|
|
|
|
|
File path to what kind of document? There printer object cannot interpret every kind of document. Actually, it can't interpret ANY kind of document. What you do depends entirely on what you're trying to print.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hey thanks for the feedback.
I have an installed PDF printer that i want to send my documents (MS Office Documents) too and also a 'print' command. The printer will do the rest.
Does this make it harder or easier to print the files or is the situation still the same?
Thanks
Chris
|
|
|
|
|
That's better. Word will actually have to do the printing. The PDF printer will just render into a .PDF what Word outputs when it prints. If you're just going to convert Word documents, you can use the Word (Office) automation model to load the document, select the printer, then print the document. It's been covered dozens of times in the forum, just search for Word using the "Search comments" link.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|