|
I don't actually own it yet. But I've heard good things about "Programming Microsoft Visual Basic .NET" by Francesco Balena. Also I own his "Programming Microsoft Visual Basic 6.0" and it is very good.
Good luck.
Dan Morris
_____________________________________
"An eye for an eye makes the whole
world blind." - Ghandi
|
|
|
|
|
As you said you are a programmer with VB 6 experience, I will strongly recommend Moving to VB.NET - Strategies, Concepts and Code by Dan Appleman and published by Apress (ISBN: 1893115976). Dan Appleman is a great writer, and he designed this book to help VB6 programmers move to VB.NET. I read it when I first started learning VB.NET and it really helped me get started.
Thomas Brown
tbrown@plains.net
|
|
|
|
|
You *MUST* pick up Programming Visual Basic .NET by Francesco Balena. Not only is it a comprehensive reference, but you can learn from it too.
I guarantee that you will keep this book around you for your entire VB.NET lifetime.
Don't listen to people who say you should learn C# - after you've gotten the hang of VB.NET you'll easily move back and forth between the two languages. I admit I like C# better since it is terse, but VB.NET is a great launching point if you are already a VB developer.
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
|
|
|
|
|
What, precisely, is the difference between the two? Both are meant to call the parent classes implementation of a member from a derived class, no?
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
|
|
|
|
|
You can use the MyBase keyword to call methods in a base class when overriding methods in a derived class.
The MyClass keyword allows you to call an Overridable method implemented in your class and make sure that implementation of the method in this class is called rather than an overridden method in a derived class.
Hmm...
|
|
|
|
|
Hi
MyBase's explanation goes like this:
The MyBase keyword behaves like an object variable referring to the base class of the current instance of a class. MyBase is commonly used to access base class members that are overridden or shadowed in a derived class. In particular, MyBase.New is used to explicitly call a base class constructor from a derived class constructor.
MyClass's explanation goes like this:
MyClass behaves like an object variable referring to the current instance of a class as originally implemented. MyClass is similar to Me, but all method calls on it are treated as if the method were NotOverridable. Therefore, the method being called is not affected by overriding in a derived class.
For difference between MyClass and Me refer
ms-help://MS.NETFrameworkSDK/vblr7net/html/vakeyMyClass.htm[^] from the .NET Framework SDK Documentation
Ravi Shankar S
Product Designer
iSOFT R&D Pvt Ltd
Chennai, INDIA
Ph: 91-44-4414980 Extn 1103
|
|
|
|
|
|
Does VB have the equivalent of the MFC Scrollview? I am after a scrollable canvas window.
Thanks!
Davy
www.latedecember.com
|
|
|
|
|
In Visual Basic 6, I want to make a mediaplayer executable using MS control: mediaplayer to play mpg files.
I've got a problem if I opened the same movie object twice without knowing whether or not a same application was playing at the moment.
How can I determine the status of a mediaplayer obect so that when I play it for the second time, the first one, if still playing, can be stopped and closed?
I have tried to mediaplayer.stop and end the application when either form and mediaplayer losts its focus. It is supposed to work like this: when I run/play a second movie, the first one may lost focus and thus being stopped and closed. But it failed, i.e when I click the application twice, the second one will pop up and run, however, the first movie will be running simutaneously at background.
Any comments and suggestions?
Thanks in advance!
DJ
DJ
|
|
|
|
|
Hello !!
Is anybody know where I get an ActiveX or dll that can be use in VB and by this object I can create a little moving picture screen which is received from a Web Camera. And I can take a still picture and save it.
I heard about SDK / COM. Where I can find this code, activex, dll, file exactly??
I have WebCam of Creative company.
Thank you !!
|
|
|
|
|
How can i make a asp page get executed(hosted in the local server) thru a visual basic exe.
i am putting the vb exe in the task scheduler of the windows and get the exe executed in a specific interval of time.which in trun calls the asp page.
i have tried using activexdocument.exe it works but when making it as an exe and calling thru the task scheduler,the asp page is not at all excuted.
can any one help me out,with appropriate code example.
Tks
Shiju
|
|
|
|
|
I have downloaded NetComm.ocx (Active-X control for MSComm control in .NET) and run its sample program successfully. However, I could not call the comEvReceive event when I send a message to my modem using AT commands.
Any help or advice is greatly appreciated !! =)
Below is my code snippet :
Private Sub frmSMS_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
NETComm1.CommPort = 3
NETComm1.set_Settings("115200" & "," & "N" & "," & "7" & "," & "1")
NETComm1.Handshaking = NETCommOCX.HandshakeConstants.comNone
NETComm1.InputLen = 0
NETComm1.RThreshold = 1
NETComm1.SThreshold = 0
NETComm1.PortOpen = True
NETComm1.DTREnable = True
MsgBox(NETComm1.CDHolding)
MsgBox(NETComm1.CTSHolding)
MsgBox(NETComm1.DSRHolding)
End Sub
Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSend.Click
Dim strAT, strATTxt, strATSend As String
'Dim busy As Boolean
'strAT = "a"
strAT = "AT" & vbCr & vbLf
SendMsg(strAT)
'-- Select Text Mode
'strATTxt = "AT+CMGF=1" & vbCr
'Call SendMsg(strATTxt)
'-- Send Message
'strATSend = "AT+CMGS=96820277" & vbCr
'Call SendMsg(strATSend)
'strATMsg = "Testing from VB" & vbCr
'Call SendMsg(strATMsg)
'busy = True
'Do While busy
'System.Windows.Forms.Application.DoEvents()
'Loop
End Sub
Private Sub SendMsg(ByRef msg As String)
Dim n As Integer
If NETComm1.PortOpen Then
NETComm1.set_Output(msg)
End If
End Sub
Private Sub NETComm1_OnComm(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NETComm1.OnComm
Static EVMsg As String
Static ERMsg As String
Static Ret As Short
'--- Branch according to the CommEvent Prop..
Select Case NETComm1.CommEvent
'--- Event messages
Case MSCommLib.OnCommConstants.comEvReceive
Dim Buffer As VariantType
MsgBox(NETComm1.InputData)
Buffer = NETComm1.InputData
If InStr(Buffer, " OK ") > 0 Then
MsgBox(Buffer)
End If
Case MSCommLib.OnCommConstants.comEvCTS
EVMsg = "Change in CTS Detected"
Case MSCommLib.OnCommConstants.comEvDSR
EVMsg = "Change in DSR Detected"
Case MSCommLib.OnCommConstants.comEvCD
EVMsg = "Change in CD Detected. CD = "
If NETComm1.CDHolding Then
EVMsg = EVMsg & "True."
Else
EVMsg = EVMsg & "False."
End If
Case MSCommLib.OnCommConstants.comEvRing
EVMsg = "The Phone is Ringing"
Case MSCommLib.OnCommConstants.comEvEOF
EVMsg = "End of File Detected"
'--- Error messages
Case MSCommLib.CommEventConstants.comEventBreak
EVMsg = "Break Received"
Case MSCommLib.CommEventConstants.comEventCTSTO
ERMsg = "CTS Timeout"
Case MSCommLib.CommEventConstants.comEventDSRTO
ERMsg = "DSR Timeout"
Case MSCommLib.CommEventConstants.comEventFrame
EVMsg = "Framing Error"
Case MSCommLib.CommEventConstants.comEventOverrun
ERMsg = "Overrun Error"
Case MSCommLib.CommEventConstants.comEventCDTO
ERMsg = "Carrier Detect Timeout"
Case MSCommLib.CommEventConstants.comEventRxOver
ERMsg = "Receive Buffer Overflow"
Case MSCommLib.CommEventConstants.comEventRxParity
EVMsg = "Parity Error"
Case MSCommLib.CommEventConstants.comEventTxFull
ERMsg = "Transmit Buffer Full"
Case Else
ERMsg = "Unknown error or event"
End Select
If Len(EVMsg) Then
'--- Display event messages in label
Status.Text = EVMsg
EVMsg = ""
ElseIf Len(ERMsg) Then
'--- Display error messages in an alert
' message box.
Beep()
Ret = MsgBox(ERMsg, MsgBoxStyle.OKCancel, "Press Cancel to Quit, Ok to ignore.")
ERMsg = ""
'--- If Cancel (2) was pressed
If Ret = MsgBoxResult.Cancel Then
NETComm1.PortOpen = False 'Close the port and quit
End If
End If
End Sub
Private Sub Term_KeyPress(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.KeyPressEventArgs) Handles txtMsg.KeyPress
Dim KeyAscii As Short = Asc(eventArgs.KeyChar)
Dim Echo As Boolean
'--- If the port is opened,
If NETComm1.PortOpen Then
'--- Send the key stroke to the port
SendMsg(Chr(KeyAscii)) 'use Modem Lights
'--- Unless Echo is on, there is no need to
' let the Text control display the key.
If Not Echo Then KeyAscii = 0
Else
KeyAscii = 0
End If
If KeyAscii = 0 Then
eventArgs.Handled = True
End If
End Sub
|
|
|
|
|
please help me to know
How to Run Project Programming with VB.Net on the win98 or wiMe os.
ÇáÞÑÕÜÜÜÜÜÜÜÜÜÜÜÇä
|
|
|
|
|
How can I implement the zoomin,zoomout,move of a chart on a pannel with VB.net;P
If you think you can,you can!
|
|
|
|
|
the question is:i build a data grid and i wanna print the data in it in A4 format regardless of my screen dimension(15" or 17",etc.) and pixels.
|
|
|
|
|
Hi,
I have two Queries...
First:
Is there any way by which I can Specify (In my Assembly itself) that
the CopyLocal Property of a Reference to my Assembly should be False?
ie: Whenever my assembly is added into any Project (References), the
CopyLocal property for that Reference should be False by default.
Note: It should be possible without making the Assembly Strong Named.
And,
Does the Framework/VisualStudio IDE raise any Event or send any kind of
Notification to the Assembly when a Reference to it is Added or Removed from a Project.
ie: I want to execute some code from within my assembly when that Assembly is
Added or Removed from the References collection of any Project.
Thanks,
Firoz
|
|
|
|
|
NA
modified 14-Nov-12 13:40pm.
|
|
|
|
|
Have you tride declaring long instead off integer..
ByVal hServer As Long, _
ByVal lObject As Long, _
ByVal nObject As Long, _
In your .Net declare you are using int's
Also if the API declaration is from VB6, which used ByRef as default parameter passing.
.Net is using ByVal as default..this you will have to change acordingly.
Hmm...
|
|
|
|
|
Is it always necessary to assign priorities to threads in VB.net, like java wont VB automatically assign thread priorities incase we dont explicitly specify them.
|
|
|
|
|
The default value off ThreadPriority is Normal..so it's not necessary to set it explicit
Hmm...
|
|
|
|
|
I want to dissasemble MsWord macro (.dot file) and I don't know whether this is possible.
|
|
|
|
|
i'm kind of confused by the notion of:
Activated Vs Constructed
Deactivated Vs Destructed
reference namespace: System.EnterpriseServices.ServicedComponent
My understanding is that a pooled component is constructed (meaning memory for the component itself is allocated and maintained). Then, when a request comes in for this particular component, the component is activated, and this is when u want to established your database connection and such. Now, after servicing this particualr request, assuming no further request is coming in, the component is deactivated, thereby releasing database connection and other valuable system resources...
is this understanding correct?
thanx!
norm
|
|
|
|
|
HOW CAN AN EXE DONE IN VB ,BE EXECUTED BEFORE A BIOS STARTS
|
|
|
|
|
Eh. Why would you want to do this????
Regards,
Brian Dela
|
|
|
|
|
Err, nothing can be run before the BIOS starts.
|
|
|
|