|
Steve,
I need to get back to you on that next week as I am away from the test beds due to a training I have to attend.
Appreciate your help.
Thanks,
Ahrvie
Ahrvie
|
|
|
|
|
I am coding a program which i would like to send strings of words to Internet explorer and i've played around with the sendkeys function built into .net but with no success
i've read a few articles about using keybd_event and user32.dll however I haven't had any success with that either...
i was looking for either some helping words to guide me in the right direction... i can get the sendkeys function to output to programs like notepad, however, it does not work to internet explorer (note: i'm not tryin to type into a textbox in IE)...
as far as the keybd_event i'm not exactly sure how to call to the user32.dll and then use that to output to IE..
i really feel like this should be simpler thatn what i'm making it, but really any advice would be really appreciated! Thanks!
|
|
|
|
|
gatorlaid wrote: (note: i'm not tryin to type into a textbox in IE)...
Where are you hoping for the text to go then ? Sounds like the problem is one of focus in IE, the right place doesn't have input focus when you send the key strokes.
gatorlaid wrote: as far as the keybd_event i'm not exactly sure how to call to the user32.dll and then use that to output to IE..
www.pinvoke.net is the place for info on calling native APIs
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: Where are you hoping for the text to go then ? Sounds like the problem is one of focus in IE, the right place doesn't have input focus when you send the key strokes.
I've actually able to get focus to the IE window, but for some reason the Sendkeys function must not actually simulate keystrokes... i'm sending the string to the window in general, the text does not actually show up anywhere... this is why i simply need to simulate the actual keys being pressed
thanks for the site tho! i'm definitely looking into it further
|
|
|
|
|
These are two questions posed by my profesor..........how can this be done?
1. The table below gives the 2002 and 2003 sales for the five top restaurant chains.
a. Place the data into an array.
b. Calculate and display the table and the yearly change in sales for each restaurant.
2002 Sales 2003 Sales (in millions)
McDonalds 20.3 22.1
Burger King 8.7 7.9
Wendys 7.1 7.5
Subway 5.2 5.7
Taco Bell 5.2 5.3
2. The scores for the top three golfers at the 2005 Buick Invitational are shown in the table
below.
a. Place the data into an array.
b. Compute the total score for each player.
c. Compute the average score for each round.
Display the original data and the computed data.
Round 1 Round 2 Round 3 Round 4
Tiger Woods 69 63 72 68
Luke Donald 68 67 67 73
Bernhard Langer 69 69 67 72
Thanks for any help that can be provided
|
|
|
|
|
ualr wrote: These are two questions posed by my profesor..........
Then it's homework. How do YOU think it should be done ? Do you know what an array is ? What do you know about working with arrays ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi!
In my current windows form. i have a button to generate a powerpoint which uses a standard one slided powerpoint template and the data is fed in and power point is generated. now i want to divide the each row of records returned into two seperate slides (1 slide template is changed in 2) so my code is sumthing like
for each database.rowcount
write to ppt slide for each record
next
but no record is going to 2nd ppt slide for each row how could i use a loop in it so that each row goes into both ppt templates and go on loop
please help
-- modified at 23:45 Wednesday 4th April, 2007
|
|
|
|
|
|
Hi to all,
1.can I create a formulas for columns like in excel
2.can I navigate through a row by pressing enter key
|
|
|
|
|
1 - no, not without writing the code yourself. It's not Excel, it's a grid
2 - sure, just write the code to handle the keypress and change the selection.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I am trying to simulate the Microsoft Excel "Freeze Panes" function on a Visual Basic .NET form using two ListView controls.
Key_ListView: The control on the left will have one column entitled "Key" and have a numerical value.
Data_ListView: The control on the right will have about 30 columns. The 30 columns can't fit onto the screen at the same time. The user has to use the horizontal scroll bar to see the columns out of view.
When the user scrolls the Data_ListView to the right (horizontal scroll bar) they will not lose "sight" of the key value in the Key_ListView. This is the functionality my users demand.
When the user scrolls the Data_ListView Up and Down (vertical scroll bar) I want the Key_ListView to scroll Up and Down as well. I want the records to stay in sync with each other in a vertical nature.
Using the .EnsureVisible property doesn't set the scroll position; it just makes sure the specific item is "somewhere" in the client window.
Thanks in advance for your help.
|
|
|
|
|
i want to make any application executing just once at the same time ..
i mean that when i run my application exe file it's opened and if i double clicked the exe file again it runs again..
how can i prevent that ?
pleas help
regards
|
|
|
|
|
Goto your project's properties and check Make Single Instance Application .
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
i use VB.net 2003 , there's no option like you wrote in project properties
many thanks for attention
regards
|
|
|
|
|
|
thanks Ben too much , but is there any way short than all that code ?
regards
|
|
|
|
|
You can leave out the windows message part since that is only used to activate the application if it is already running. All you have to do is use the mutex to know if your application is already running.
Ben
|
|
|
|
|
hi buddy...
if you are working in VB try this...
Private Sub Form_Load()
If App.PrevInstance = True Then
MsgBox "application already running", _
vbInformation, "Message"
End
End If
End Sub
|
|
|
|
|
i have tried internet for it,,, but of no use
please if can then just give the code for it
""""""""""i m using currencymanager,, the radio button does not change when at run time i navigate my records"""""""""
the default button that i checked always remain checked
please help
|
|
|
|
|
What is currencymanager ? Is it a control on your form ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i m usin data reader in my login form.
wat i want to do is by data reader i can read data from tables
that i created. n be able to open other forms accordingly.
.....the problem is that that when i run the application,,no matter what i type
it only shows me the matter of first text box "you r logged on as student".....
here is the code
Imports System.Windows.Forms.Form
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.SqlClient.SqlCommand
Public Class logon
Inherits System.Windows.Forms.Form
Dim objsqlconn As SqlConnection
Dim logonselect As String = "select * from logon"
Dim objsqlcmd As New SqlCommand(logonselect, objsqlconn)
Dim dr As SqlDataReader
Public Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
objsqlconn = New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Documents and Settings\Administrator.WINXP_PRO_CORP.002\Desktop\WindowsApplication1\WindowsApplication1\Database1.mdf;Integrated Security=True;User Instance=True")
objsqlcmd = New SqlCommand
objsqlcmd.Connection = objsqlconn
objsqlconn.Open()
objsqlcmd.CommandType = Data.CommandType.Text
objsqlcmd.CommandText = "select * from logon"
dr = objsqlcmd.ExecuteReader()
Dim str As String
Dim a As New mdiparent
While dr.Read()
str = dr.GetString(0)
If str = "student" Then
MessageBox.Show("you are loged on as student")
a.Show()
End If
If str = "administrator" Then
MessageBox.Show("you are loged on as administrator")
a.Show()
End If
If str = "lass1" Or "lass2" Or "lass3" Or "lass4" Or "lass5" Or "lass6" Or "lass7" Or "lass8" Then
MessageBox.Show("you are loged on as lab assistant")
a.Show()
End If
End While
dr.Close()
objsqlconn.Close()
End Sub
Private Sub logon_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Focus()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Dispose()
End Sub
End Class
can somebody please tell me where the problem is????
|
|
|
|
|
You are not doing any filtering on your query. Do you only have one row in the database? Have you checked what str = dr.GetString(0) actually returns?
|
|
|
|
|
and also to make sure that the changes have been made.
i m using vb.net express edition 2005. i m being able to delete the row at
rum time.but it appear again,,if i stop n run the form again
please help
|
|
|
|
|
Hi,
The datagrid control only shows data, and allows you and/or the user to manipulate that data. deleting a row from the datagrid doesn't automatically delete it from the datagrid's data source.
So the question is, what do you use as the data source for your datagrid, and how did you bind it to it? If it is a datatable, how do you populate it? If it is a dataset, where does the dataset get its data from?
Or in other words, deleting the row from the datagrid only affects what you see at that moment. You will have to delete the row from the data source as well.
Good luck,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
I know this is probably real simple but for some reason I can't figure it out...
how can I code my own custom eyedropper? Or something which can get the color of any specified pixel on the screen?
thanks!
|
|
|
|