|
SendKeys will send keystrokes to the currently active window, or the window that has the input focus.
I mention "currently" because the input focus can change from window to window at any time!! Even while SendKeys is posting keystrokes! There is no way to absolutely guarantee that SendKeys sends all of its keys to the application that you want it to.
There is nothing in the .NET BCL that will move the input focus to another application or window, so you'll have to use the Windows API functions SetForegroundWindow and FindWindow to make sure that the window you want to send the keys to has the input focus just before you call SendKeys. But even this is no guarantee that the focus will not change while the keystrokes are being processed!!
Basically, it's just not a reliable method of controlling another application...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
I need to connect to secured web page using VB.Net 2005 (desktop app).
How to do those things:
- connect to web page
- keep connected session
- execute urls with parameters (ex. https://mywebpage/sth.do?firstparam=1)
- log off
Please help me.
Thank You for any response
Robert
|
|
|
|
|
I don't know how write next,
this is example
I have control MenuStrip (have menuitem FileMenu)
I want to add some menuitem
I used code below
FileMenu.Item.Add("New", Image, EventHandler)
I dn't know how to write EventHandler
Thanks
................
|
|
|
|
|
hi
please give me scenarios where i should use the remoting.
simply when i have to use remoting??
thank you all
Tamimi - Code
|
|
|
|
|
Tamimi - Code wrote: please give me scenarios where i should use the remoting.
When you are required to communicate across AppDomain boundaries
Tamimi - Code wrote: simply when i have to use remoting??
When you need to communicate across AppDomain boundaries.
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
thanks
I don't want to bother you, but could you be more Specific
Tamimi - Code
|
|
|
|
|
Approximately, if you have to call a method remotely, you are pretty much there.
Best,
Jun
|
|
|
|
|
i have a form in vb 6.0, and i want to add horizontal and vertical scrollbar on the form, idont have any idea. so please help me.
Thanks
Thanks
|
|
|
|
|
For example you can add components named HScrollBar and VScrollBar to your form.
Robert
|
|
|
|
|
Thanks for answer
yes i add both of them
i have so many controls on my form so form is too length therefore i want to use scrollbars.
but i dont know how i use them
Thanks
|
|
|
|
|
I think moving many controls placed on form isn't a good way.
I would look for better way for example I would place them in frame and move that frame, not separated controls.
Scroll bars have event "Changed". Use it.
By the way: use dotnet - learning vb6 is mistake.
Robert
|
|
|
|
|
Hi,
I'm trying to make sense out of charts in MS Access 2000.
What I want is a report with a record source that will return X rows of data.
My chart should now be displayed X times.
I know how to set this up, but cant get my chart to display the right data.
When I view it, it displays X charts but all with the same data which is the values of all X charts together.
How do I set it up that chart 1 displays only the data corresponding to, say, client 1?
When I set the Child and Master Fields property to that of the client ID for both the chart's row source and the reports record source, X blank charts are displayed!
you can't forget something you never knew...
|
|
|
|
|
how to use/call wordpad or msword in vb.net2005
Thanks
|
|
|
|
|
Right click ur Project and click properties-> select configuration properties from the left hand pane -> then debugging -> from start action, select Start external program radio button and browse the path for winword.exe or in case an application path (c:\Program files\Microsoft Office\ Office\ Winword.exe).
So after running the project u will find Word coming up......Check for VS.NET 2005, this is way for 2003..
I hope it will help.
Bye
|
|
|
|
|
Thank you it help a bit...
|
|
|
|
|
hii there
Use the following recurrsive operation instead. Pass control object instead of Form in the Function.
<br />
Public Sub TraverseControls(ByRef FormName As Control)<br />
Dim LvCont As Control<br />
For Each LvCont In FormName.Controls<br />
If (LvCont.Controls.Count > 0) Then<br />
TraverseControls(LvCont)<br />
End If<br />
<br />
' Process on LvCont<br />
Next<br />
End Sub<br />
regards
Mubashir
Storan Technologies USA.
|
|
|
|
|
If anyone know how make application that can convert code form ASP to ASP.NET or something please help me
Thanks
................
|
|
|
|
|
There's no such thing and no reliable way to do it, other than with your own two hands.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
What is your anwser?
................
|
|
|
|
|
You have to rewrite it by hand!!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
i want to make a project of data migration in VB.net. In which i am able to transfer the data from one database tables to a blank database tables with in the same server
divya
|
|
|
|
|
|
i am not able to get the data from this link
can you please give me another information
divya
-- modified at 5:01 Monday 26th June, 2006
|
|
|
|
|
please can you give another suggesionsor link
divya
-- modified at 6:37 Wednesday 28th June, 2006
|
|
|
|
|
The link that I provide will give you an article of using vb.net and sql server. You should learn how to get data from sql server and save its back to sql server. This is the basic that you need to do with data manipulation from vb.net. Once you get all of its technique to use it, you would be able to solve your currentl problem.
Best Regard,
Kanel
|
|
|
|