Jump to content
Xtreme .Net Talk

redss

Members
  • Posts

    15
  • Joined

  • Last visited

Personal Information

  • Occupation
    Software Developer
  • Visual Studio .NET Version
    2002
  • .NET Preferred Language
    C#

redss's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I overlooked the simplest answer. thanks!
  2. I want to compile a C# program from the command line that (my understanding) requires a reference to system.data.OracleClient.dll How do I add that reference at the command line? I tried the following which didn't work csc /reference:OracleClient.dll program.cs
  3. Exactly what I asked for - thanks!!!
  4. newbie to VS.NET 2003 here... my toolbox no longer slides out from the left and I can't figure out how to fix it. how do reset my IDE so that its like when I started it for the first time?
  5. thanks for the replies!
  6. in VS.NET, how do I find the coordinates of a mousedown event? in VB6, it was provided by the event handler, like so: Private Sub Label1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) But in .NET (C# or VB) I don't know how to find out the coords with the event handler: private void label1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
  7. Well as I started this thread, I can say its about finding out what one language can do that the other can't. I like VB's superior intellisense and I dislike C#'s case sensitivity (well I dont mind case sensitivity in general but who the heck came up with the idea of capitalizing the FIRST letter of all the commonly functions? that convention is totally unintuitive and unheard of in all the languages I've worked in previously, not to mention that intellisense only works if you remembered to capitalize correctly!) Probably my biggest argument for using C# (besides a preference for it other than my above gripes) is a salary survey I read that stated that C# programmers are being paid quite a bit more than VB.NET programmers, even though the languages are now effectively just about equal.
  8. Yeah, as I understand it, you have access to all the same VB6 style functions (Format$ , Left , Chr, Mid etc) in C# as well as VB (through VisualBasic.dll) , but there are better C#-like ways to accomplish the same things. I read somewhere that many of the VB functions are somewhat more bloated versions of the same calls that C# uses, but you'd have to use a disassembler to find that out.
  9. Sure, good insights...thanks...
  10. Help! I am not having any luck compiling a simple VB.NET hello world program from the command line. I'm following the directions at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vaconvbcompileroptions.asp So here is what I type: vbc /reference:Microsoft.VisualBasic.dll form1.vb Using visual studio.net (2002) all I did was create a new windows application, add a button, with a msgbox routine when clicked. (all this code was automatically created by the IDE) Public Class Form1 Inherits System.Windows.Forms.Form #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose to clean up the component list. Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean) If disposing Then If Not (components Is Nothing) Then components.Dispose() End If End If MyBase.Dispose(disposing) End Sub 'Required by the Windows Form Designer Private components As System.ComponentModel.IContainer 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor. Friend WithEvents Button1 As System.Windows.Forms.Button <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() Me.Button1 = New System.Windows.Forms.Button() Me.SuspendLayout() ' 'Button1 ' Me.Button1.Location = New System.Drawing.Point(120, 96) Me.Button1.Name = "Button1" Me.Button1.TabIndex = 0 Me.Button1.Text = "Button1" ' 'Form1 ' Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13) Me.ClientSize = New System.Drawing.Size(292, 273) Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Button1}) Me.Name = "Form1" Me.Text = "Form1" Me.ResumeLayout(False) End Sub #End Region Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MsgBox("hello there world...") End Sub End Class I get errors like the following: vbc : error BC30420: 'Sub Main' was not found in 'Form1'. C:\temp\Form1.vb(15) : error BC30002: Type 'System.Windows.Forms.Form' is not defined. Inherits System.Windows.Forms.Form ~~~~~~~~~~~~~~~~~~~~~~~~~ C:\temp\Form1.vb(30) : error BC30284: sub 'Dispose' cannot be declared 'Overrides' because it does not override a sub in a base class. Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean) Anybody have any ideas what I'm doing wrong???? Thanks in advance...
  11. Trying to convince coworkers to go with C# instead of VB.net... What are some things that C# supports that have no equivalent in VB.net?
  12. ok thanks!
  13. I'm learning C# (and vb.net as I go also) with Visual Studio 2002, and am trying to get over a little hump... Can someone please give me a descriptive example of the following process: 1) looking up any function in the Visual studio help that is not included in the default namespace 2) describe how to add that reference to the project so that when I compile it will be found. Its apparently not as simple as in C where (for example) I can look up strtok() and see that all I have to do is put "include <string.h>" at the top Any examples (both C# and VB actually) will be appreciated!
  14. ok, thanks!
  15. In VB.NET how do I choose which the event handler I want to edit? I.e. when I select a textbox I get taken to TextBox1_TextChanged but what about the other events? (in VB6 all events were in the dropdown list, and C# has a lightning icon that brings up a list of all events)
×
×
  • Create New...