|
there error appear in frist open the vb.net in "location : C:\program files\microsoft visual stdudio 8\common 7\ide \devenv.exe" and the can not run the project
|
|
|
|
|
|
i do this and the same error
|
|
|
|
|
maybe you can give us the error message?
|
|
|
|
|
the error message is"
location : C:\program files\microsoft visual stdudio 8\common 7\ide \devenv.exe
visual studio 2005 has aknown compatiblity issue with version of windows
then i download the "Visual Studio 2005 Service Pack 1 Update for Windows Vista" and appear this error
"the upgrade patch cannot be install by the windows installer service because the program to be upgrade may be missing , or the upgrade patch may update different version of the program . verify that program to be upgraded exists on your computer and you have the correct upgrade patch"
|
|
|
|
|
OK:
first you need the Service Pack 1 (without Update for Vista) and install this (make sure to take the right language).
then you can install the "Service Pack 1 Update for Vista" !
|
|
|
|
|
I've seen people ignore this message and continue on without any adverse affects.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
How can i add a text and a corresponding value for it?
When i fill date to a combox from database,i need to get the corresponding value ie primary key of the selected text when i select a item from combobox.
Thanks
Yesu
|
|
|
|
|
Each Item of a combobox have Text and Value associated.For example
Dim oItem As ListItem = New ListItem()
oItem.Text = "your text"
oItem.Value = "Some ID"
you can use the SelectedValue property of a drop down to get the selected value
|
|
|
|
|
Hi,
I have one query that
"SELECT Incharge_Name, COUNT(Incharge_Name) AS [Incharge Name] FROM t_Showroom GROUP BY Incharge_Name"
I declare two arrays
Dim arrValues1() As Integer
Dim arrLabels1() As String
Now I have to assign values of Incharge_Name(int value) to arrValues1 array and Incharge_Name to arrLabels1 array
I am using dataset to retrive the value
Thanks,
sjs4u
|
|
|
|
|
All you have to do is loop that DataTable in your Dataset and assign the values to your array.
Here a link on how to work with arrays [^]
|
|
|
|
|
Can Somebody help me here
I have written an application for two different motion controllers
- The code for each controller is placed in it's own module with identical
subs
Depending on the controller selected it will execute the appropriate code
Here is the problem .. after setting the project to OPTION STRICT = ON
I get the late binding not allowed message and I just can not get it fixed
Below is a sample code that should help understand my issue easier (I l know it's an easy thing - I just can not figure it out)
It's important for me that the Variable [SelectedController] that holds the object to the selected module is accessible throughout the whole project !
PS the code below doesn’t work = The variable [SelectedController] is not accessible outside the subs !
Where I try to call the actual subroutine is where I get the late binding error
Example : SelectedController.test()
Thanks
Georg
Public Module DECLARE_VARAIBLES
Public SelectedController As Object ' selected controller
End Module
Public Class Form1
Public Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim SelectedController As New ControllerA
Display_Controller()
End Sub
Public Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim SelectedController As New ControllerB
Display_Controller()
End Sub
Private Sub Display_Controller()
'**************
' HERE IS WHERE I USUALLY RUN INTO MY LATE BINDING ISSUE
SelectedController.test()
End Sub
End Class
Public Class ControllerA
Public Sub test()
MsgBox("running Controller A")
End Sub
End class
Public Class ControllerB
Public Sub test()
MsgBox("running Controller B")
End Sub
End Class
|
|
|
|
|
This is the normal - and desired - result if you try to invoke a method "test" on an boxed object ( indeed you are calling object.test() ).
If you have some classes that each implements the same methods you should use Interfaces like this:
Somewhere outside a class define:
<br />
Public Interface ITest<br />
Sub test()<br />
End Interface<br />
and then in your classes (ControllerA and ControllerB):
<br />
Public Class ControllerA<br />
Implements ITest<br />
Public Sub test()<br />
MsgBox("running Controller A")<br />
End Sub<br />
End Class<br />
(ControllerB similar)
And finally in your Module:
<br />
Public Module DECLARE_VARAIBLES<br />
Public SelectedController As ITest ' selected controller<br />
End Module<br />
-> you will get IntelliSense help and the code will work
|
|
|
|
|
I'm not sure if I'm getting this ...
Am i correct in that Interfaces are intended to be used for code that's exactly the same ?
Public Interface ITest
Sub test()
End Interface
Itest will be the same in both controllerA & controllerB
If this is how it works that that's NOT what I need
I have a user Interface that will call the subs inside to different classes, ControllerA or ControllerB (The SUB NAMES Inside the classes are identical but the code inside the subs will never be!)
I believe it would make my live a lot easier (and Cleaner to maintain ) if I could just call the "same" subs out of my user interface
Sub Jog_X()
SelectedController.jogging
' where SelectedControler.Jog_X will have to point to
'A) ControllerA.Jog_X
'or
'B) ControlerB.Jog_X
end sub
Georg
|
|
|
|
|
Can anyone give me any idea on how to monitor client on a LAN through vb.net
the features like key logging and screenshots are working only on my system
plz tell me how to implement this on multiple systems
|
|
|
|
|
How can i save the values which is addes to a listview control. It may have more that one rows of data in a listview.Please help me with a example
Thanku
yesu
|
|
|
|
|
ypki wrote: How can i save the values which is addes to a listview control.
What do you mean by 'save'? To a file? A database?
You should provide enough information in your question for someone to be able to assist you with a solution.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
sorry..i mean to save in database
Thanks
|
|
|
|
|
sorry...i mean to save in database
for eg.
i have some textbox controls, after entering some values in it and hit enter,the values move to listview,more than one rows may enter into listview.There is another button, hiting on that the values in the listview need to save in the database.
Thanks
Yesu
|
|
|
|
|
You need to provide more information as to how you want to save. You can save to a file or a database.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
sorry..i mean to save in database
for eg.
i have some textbox controls, after entering some values in it and hit enter,the values move to listview,more than one rows may enter into listview.There is another button, hiting on that the values in the listview need to save in the database.
Thanks
Yesu
|
|
|
|
|
You just do an insert query into your database, however it is set up. Then, when you run the app again, you query for those items in your listbox and populate it from the query results.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
but i am not getting the value to insert.
i use
Dim lstSel As ListViewItem
lstSel.SubItems(2).ToString and val(lstSel.SubItems(2).ToString)
to take value from the cells of the listview.
only string value is getting for insert.
thks
yesu
|
|
|
|
|
Sorry, I haven't got back to you in a while. Is this working now or are you still having trouble?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I am trying to do a game of pong. My problem is, i can't get the ball served to a patricular point or location. By changing a valriables value i can get the ball served either to the left or right, up or down. the ball is located in thr middle of the form. When i serve the ball it will either do up or down and then bounce off the top or bottom, so if i want to serve a ball directly to a point say in the top left hand corner. i can't.
here are the variables i am using and a bit of code trying to explain what i mean
i'm using a timer for the ball speed
Dim XChange As Integer = -5
Dim YChange As Integer = 5
Dim BallDirX As Integer 'for direction
Dim BallDirY As Integer 'for direction
Dim X, Y As Integer 'unused just in case
If picBall.Top < 0 Then
picBall.Top = 0
XChange = -5
YChange = 5
Here I want the ball to bounce off the wall and goto a YPoint say 50 and the xpoint as zero as the ball bounces in thay direction
End If
thnks from Zeldacat
Regards
Zeldacat
|
|
|
|